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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (2,547)