cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Microbes
Resolver I
Resolver I

Gallery Parent.Select changing for form

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.

Microbes_0-1636231286722.png

Microbes_2-1636231352396.png   

Microbes_4-1636231398866.png 

  

Microbes_6-1636231438354.png 

Microbes_8-1636231468567.png

 

 

1 REPLY 1
AmeerJab
Resolver I
Resolver I

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.

 

Helpful resources

Announcements
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,766)