cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Gallery. selected changes after patch

Hi,

 

Good Day!

 

I have a gallery (Gallery1) that navigates to a form viewer (FV1), On my formviewer I have a context variable that patch data on the selected item from Gallery1. Patch is working perfectly however after patching, the item on the formviewer changes.

 

I am figuring out how can I display the item selected from the gallery after patch.

 

Thanks in advance 🙂

3 REPLIES 3
v-yutliu-msft
Community Support
Community Support

Hi @Anonymous ,

I've made a similar test but not met the problem as your description.

Could you show me your screenshot and the settings of the form?

Here's my test:
Set the edit form's Item: Gallery1.Selected

Set the edit form's DefaultMode: FormMode.Edit

Set the submit button's OnSelect: SubmitForm(Form1)

After submitting the form, the form will display the selected item too.6113_LI.jpg

 

 

Best regards,

Community Support Team _ Phoebe Liu

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @Anonymous how are you progressing with this? Was the above reply helpful? 

 

@Anonymous 

Hi,

 

Having a similar issue here, which appeared out of no where.

Version: 3.19092.12

 

Gallery1.Selected is used as the Item property on Form1 and Form2 (for attachments) on different screens.

When I select Record1 and make changes to it using one of the mentioned forms - everything works as expected.

However, after I go back to the Gallery1 and select Record5, the Form1 loads up with Record5 as the selected record and after a brief moment switches back to Record1. If I go back to the Gallery1, I can see that the selected record is in fact Record1.

Basically, Gallery1 selection switches back to the last modified record.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

PA Community Call

Power Apps Community Call

Next call is happening on April 21st at 8a PST.

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (13,470)