What Logiak does when a user selects from a LISTING
A LISTING is a list of Objects (instances). When a user makes a selection from a list by clicking on a list item, she is implicitly selecting the whole object (instance) represented by that item.
(For those familiar with databases, the user has selected a row in a table.)
When a user selects an object (instance) from a list, Logiak does two things
- Moves to the component set as the "Select" transition in the LISTING
- Remembers the instance selected by the user
How selected objects are shown in the App Structure
In the App Structure, where there a LISTING component for which there is a SELECT transition specified, you will see that the component which is the destination of the transition will have the name of an object (type) in parentheses after its name.
Look at this example below.
Here you see a LISTING component at the top called Infected which is a listing of an Object (instance) called child.
This means, when the user select from that list, the user is select a child instance.
And in this example, the component which is set as the destination of the SELECT Transition is called Child Tabs. Now please note that the component name is followed by (+child).
This is an indication that at that point in the App flow, a child has been selected by the user.
Selected Object (instances) are available in whole sub-tree
If you look at the components beneath the Listing, you will see that they all have (+child). This means: the selected child is remembered by Logiak and is available to all components within the sub-tree beneath the Listing.
If the user navigates to the component Past Visits, which is a listing of object instances of type visit, and if she then selects a visit you can see that at all points from then on, Logiak will remember both a child and a visit (+child, +visit)