Thanks for explaining this, for now I will eloborate some more on the dubble click issue. I have got a nested gallery with records. For now it contains some dummy data (in Dutch). As soon as I click a record, the view form shows me the data through the hidden gallery. As soon I click a new record the view form shows me a dutch message which is translated: "There is no item to display". As soon as I click the record for the second time it does show up in the viewform.
I want it this way because I want to show the attachments that below to the corresponding list items.
The code I use:
For the records (ending with a number) in the nested gallery I use for OnSelect:
For the hidden gallery I use for Items:
Filter(Processenboek; ID = HiddenGalleryID)
For the viewform I use for Items:
Hope this explains my situation, it would be awesome if you could shine your light on this;)
Hey @itsJoost, apologies for the late reply; life's been a little busier than I like it lately!
After looking at your examples, I made a test app in the same way you described. Unfortunately, I couldn't replicate the issue you are experiencing. For the record, I am using sample data from an Excel document on OneDrive for Business, so I don't know if your data source has a part in the issue you are experiencing.
One suggestion: rather than collecting the ID and using the hidden gallery for the form, what about using the variable itself to feed the form? this would bypass the need for the hidden gallery altogether. So in the OnSelect, try:
// OnSelect of the nested gallery item
Then in the form's Item property, put:
// Item property of the form
I tested this method and it worked, but that isn't too helpful as I couldn't replicate the issue in the first place. Maybe try it out and let me know if it works. I'll respond in a more timely manner this time!