Hello everyone.
After some tinkering I am at the end of my (admitting still quite small) wits.
I am using Sharepoint Lists as my Datasources.
I have a Recordsgallery1, where I pick my "Projects", then use a button to navigate to a different Canvas (Details for "this" Project)
OnVisible of the Details Canvas I create a collection (the update one is for later):
ClearCollect(colInnovData, Filter(Innov, 'Project-ID' = RecordsGallery1.Selected.'Project-ID'));Clear(colInnovUpdate)
In this details Canvas I have a gallery, that shows colInnovData with several fields and functions. Some of them are Dropdown fields (in Powerapps and in the Sharepoint list too):
Items of the dropdown fields look like this:
Choices(Innov.ATProd)
Default selected Item is:
ThisItem.ATProd
Works perfect when I first navigate to this Canvas.
On the Canvas I have a Reload button, that has an onSelect property of
ClearCollect(colInnovData, Filter(Innov, 'Project-ID' = RecordsGallery1.Selected.'Project-ID'));Clear(colInnovUpdate)
same as my onVisible (basically, reload all the information, as if I am just now navigating to this Screen).
Now to the Problem:
At first, everything is fine:
I press the reload Button and the Dropdowns are suddenly Empty.
They get filled again If I change the defaultselecteditem Code in any way and revert it back to what it originally was.
It also works if I change the Project in the Main Gallery, switch to Details, back to main, pick the original Project and go to Details again (kinda refresh the record I guess). I hope I could explain it well enough.
Does anyone have an idea why or what I can do to solve this?
I already tried to use the lookup() function instead, but got the same behaviour.

Report
All responses (
Answers (