Skip to main content
13-Aquamarine
November 27, 2023
Solved

Selecting an item in the Collection widget based on session variable

  • November 27, 2023
  • 1 reply
  • 879 views

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

Best answer by Rocko

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
November 27, 2023

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").