Form not loading correct selecteditem from Gallery
This one has me stumped... Here's my set up:
Page with a Gallery
Item gets selected
Navigate to another page with a form
the form item actually filters a second Sharepoint List to look up another item which is realted to the item selected in the gallery
Here's the issue... the first time I select an item from the gallery, no matter which item is selected, the form shows the first item in the gallery. If I go back to the gallery page again, and try selecting the other item again, then the form will load the appropriate item. Ex:
Gallery:
Item 1
Item 2
Item 3
Item 4
User selects Item 4
OnSelect = Select(Parent); Navigate('Feedback Screen',ScreenTransition.None)
Feedback form shows, but the data in the form matches Item 1 not Item 4. This only happens the first time through, if you go back to the gallery, and select Item 4 again, the feedback form will show Item 4 data. This happens no matter which item is selected and only the first time through. The Form item property is set to:
Item = First(Filter('second Data Source',parentID = 'Gallery 1'.Selected.ID))
I've tried storing the Selected.ID in a variable (using Select(Parent); Navigate('Feedback Form',ScreenTransition.None,{mySelectedItem:ThisItem.ID})) and having the Form.Item property read from the mySelectedItem variable instead of the gallery directly. To get visibility to what was going on, I set a label on the feedback screen to show the contents of 'Gallery 1'.Selected.ID and my variable. It show the varible was set correctly, but the 'Gallery 1'.Selected.ID still points to the first item (even though it wasn't selected).
I've tried using RefreshFrom both before and after the navigate step. I refresh all data source onStart of App to ensure nothing is cahced.
I'm running out of ideas on how I can force it to use the truly selected item and not the first item for the first time through.