cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

After Patch command, Gallery Item is deselected

Hello,

I currently have a cascading gallery menu that leads to a edit form to update the item selected.

I can get to the item just fine, but when I update the item using a patch function it will randomly "lose" the gallery item I am editing. It doesn't happen all the time, seems to be random. Code I am using is below:

 

Gallery4

Filter('Learning Tracker',PU.Value = Dropdown1.Selected.Value, TEAM.Value = Dropdown2.Selected.Result)

 

Gallery1

Filter('Learning Tracker',ALIASID = Gallery4.Selected.ALIASID)

 

trainee details form_2

Item = Gallery1.Selected

IconSave

Patch('Learning Tracker',Gallery1.Selected,{'Comments Meeting 1':DataCardValue93_3.Text,'Meeting Date 2':TextInput8.Text,'1 REVISED SIGNOFF DATE ':TextInput2_3.Text,'SIGNOFF COMPLETE':DataCardValue21_3.Value});

 

Its is after the patch function that the edit form "loses" what Gallery1 Item is, and displays "No Item to Display". I then have to navigate back to gallery1 and reselect the item. The item does get updated after the patch function.

 

Any help would be greatly welcomed.

 

Cheers!

 

*Edit: Issue occurs with SubmitForm as well*

1 ACCEPTED SOLUTION

Accepted Solutions
Resident Rockstar
Resident Rockstar

Hi @Aethim 

As i understood from the below issue.

you can try the below approach.

On Click of a button 

set(ParentSelectedReocrd,ThisItem)

 

and In Gallery4 you Can use Like below 

Filter('Learning Tracker',ALIASID = ParentSelectRecord.FiledName)

and do the Same variable approach for gallery1 also.

Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Please Vote for my idea if you feel, that will help you in the future or good to have in power app.
https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Ability-s-to-Select-Icon-from-UIFabric/idi-p/69...

https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Preview-Mode-for-All-the-Device-Like-Phone-Tabl...



View solution in original post

3 REPLIES 3
Resident Rockstar
Resident Rockstar

Hi @Aethim 

As i understood from the below issue.

you can try the below approach.

On Click of a button 

set(ParentSelectedReocrd,ThisItem)

 

and In Gallery4 you Can use Like below 

Filter('Learning Tracker',ALIASID = ParentSelectRecord.FiledName)

and do the Same variable approach for gallery1 also.

Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Please Vote for my idea if you feel, that will help you in the future or good to have in power app.
https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Ability-s-to-Select-Icon-from-UIFabric/idi-p/69...

https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Preview-Mode-for-All-the-Device-Like-Phone-Tabl...



View solution in original post

Thank you! Works perfectly.

 

Cheers!

Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (74,708)