I have Gallery1 of materials to be weighed (data source is List). A Form1 is used to enter data and Default is Gallery.Selected. I needed to add the option of splitting weights across multiple material lot#'s so I added option to input multiple lots via TextInputs collected to Collection and displayed in a Gallery2. Once user enters Split amounts for each lot, Patch uploads collection to Sharepoint List. I used variables tied to Visible on the same screen as my Form1 to show and the "Split Weight" data entry and Gallery. When user Patches collection to List it resets variables to hide "Split Weight" fields. The problem I'm encountering is when user selects an Item in Gallery1 that is not the top row. When Split Weight is completed and related fields are again hidden Form1 changes to that of the first Item in Gallery1.
Hello,
try using a Collection when selecting an item instead of the gallery.selected
the formula on the OnSelect should be:
ClearCollect(Collection1 ,Filter(Datasource, Id = Thisitem.selected.id)
Hope this help,
Regards.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
193 | |
45 | |
45 | |
43 | |
35 |
User | Count |
---|---|
270 | |
82 | |
81 | |
73 | |
69 |