I'm adding and updating items in a gallery1 with a collection as a data source. I add/update them by selecting items from another gallery2 and want to have the most recently added/updated item highlighted and defaulted.
I use a context varible: lastItem as the Default property for the gallery1 I'm adding to and set it to the last item added to the collection by using the Last function. This works fine.
But I'm not able to set the Default property of the gallery1 when I update an item in the collection. I identify the item to update using the Lookup function on the collection and set lastItem context variable to that item. However, it does not appear to affect the Default property. Even though the updated values are reflected in the gallery1.
Head Scratcher for me since I'm very new to Powerapps - any ideas what migth be going on here?