I am trying to solve the following problem. I have a gallery galMain connected to a collection collMain. The collMain collection contains a column with the unique textID for each item. My app is created like this: the user selects an item from a gallery, and the selected item's textID is automatically saved into a variable called varLastItem. Then the user provides some data, patches the SharePoint list, and the collection collMain gets rebuilt. After this rebuilt, the gallery of course selects the item which is defined in gallery's Default property.
My question is - how can I reselect the last selected item when I have its ID stored in a variable? My idea is to set a Default property of the gallery to something like this:
If(IsEmpty(varLastItem)=true,{},???)
Unfortunately I don't know how to define the ??? part of the function properly. Maybe there is even better solution to my problem?
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.