ActiveNavigator property

ListScreen.ActiveNavigator — Navigator

The navigator that was last activated by the user and is part of this list screen, or a blank value if no navigator has been activated.

Accessing the last-activated navigator from a formula is useful when multiple navigators lead to the same screen, by virtue of their NextScreen properties having been set to the same screen through a formula. If that is the case, accessing this property is the only way to determine the choice the user made.

Learn more about sharing a screen between navigators.

This property is a read-only property, meaning that no formula can be assigned to it.

Examples

ProductChoice.ActiveNavigator = ProductChoice!ProductAProductChoice,ActiveNavigator = ProductChoice!ProductA

Returns TRUE only if the navigator ProductA was selected from the list screen ProductChoice.

ProductChoice.ActiveNavigator.LabelProductChoice,ActiveNavigator,Label

Returns the label of the navigator that was last activated by the user, or an error if no navigator has been activated.

XLOOKUP(ProductChoice.ActiveNavigator.Label, { "Product A", "Product B", "Product C" }, { 10, 20, 30 })XLOOKUP(ProductChoice,ActiveNavigator,Label; { "Product A"; "Product B"; "Product C" }; { 10; 20; 30 })

Returns the price of the product represented by a navigator activated by the user. XLOOKUP expects its first parameter to be the value to find in the array given as the second parameter. If found, the array element at the same position in the array given as the third parameter is returned. Here, the value to find is the label of the navigator activated by the user, which is expected to be either "Product A", "Product B" or "Product C".

SWITCH(ProductChoice.ActiveNavigator, ProductChoice!ProductA, 10, ProductChoice!ProductB, 20, ProductChoice!ProductC, 30)SWITCH(ProductChoice,ActiveNavigator; ProductChoice!ProductA; 10; ProductChoice!ProductB; 20; ProductChoice!ProductC; 30)

Returns the price of the product represented by a navigator activated by the user. SWITCH and XLOOKUP can both be used to look up a value. Here, if the active navigator is ProductA, 10 is returned, 20 is returned if the active navigator is ProductB and 30 is returned if the active navigator is ProductC.