I have menu items in a navigation (navigation3) mapped from a querygetNav
that also contains a column (viewIndex) where I am storing the View key that I would like to set on a container (container1). Is there a value I can map in the click handler to pull the view index from the getNav
table that matches the menu item name? Hopefully that makes sense. Here's a screenshot of the components.
Hello! I think you should be able to use the item
variable to access the data in the click handler instead of selectedItem
:
It's a little strange that the linter is giving an error specifically saying that the item
is out of scope since in my Run Script handler it was readily available. If the Control Component is behaving oddly here you can just set the component's value directly in the script:
container1.setCurrentViewIndex(item.viewIndex)
Thanks @pyrrho
I wasn't able to get item to work either but using a script handles the issue.
1 Like