Skip to main content
13-Aquamarine
Nov 27, 2023 11:04 AM UTC
Solved

Selecting an item in the Collection widget based on session variable

Hi,

I and my team are developing a mashup where we use a collection widget to display a list of things. We would like to programatically select and navigate to a specific item in the collection widget (the id is saved to a session) based of one of the items properties.

 

Can that be acheived and if so, how?

Kindly

Oskar Berntorp

Rocko
RockoAnswer
19-Tanzanite
Nov 27, 2023 6:19 PM UTC

Not sure about the "navigate to", because if you selected the first and the last, they might not fit onto the same screen.

But to select programmatically, you would use the SelectedItems property and bind an Infotable to it containing the to-be-selected items.

I think I read something in the forum about the SortField needing to be set (search for "collection" and "selectedItems").

1 reply

Rocko
Rocko19-TanzaniteAnswer
19-Tanzanite
Nov 27, 2023 6:19 PM UTC

Not sure about the "navigate to", because if you selected the first and the last, they might not fit onto the same screen.

But to select programmatically, you would use the SelectedItems property and bind an Infotable to it containing the to-be-selected items.

I think I read something in the forum about the SortField needing to be set (search for "collection" and "selectedItems").

Translate