cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
roknron
Helper I
Helper I

Sync Display for with gallery updates on same screen

I am developing an App for collecting travel logs.  I am only using 2 screens.  It is in horizontal layout.  The Home screen has a flex gallery on the left side and a display form to the right.  I am storing some DATACARDVALUE in a context variable in the control that navigate to the edit screen.  The variable is used to populate a hidden control that is caluculated on submit.  The app works mostly, but, when I want to add successive records the value of the context variable is set to the the same value of the previous record, because the display form is not updated when the gallery updates with newly added record unless I select the control that navigates to the form.  The display form's item propertie is set to gallery.selected.  How do I get the form to update when the gallery updates?

 

 

2 REPLIES 2
v-monli-msft
Community Support
Community Support

Hi @roknron,

 

What is your data source?

 

I'm not sure that I have fully understood your issue. " The app works mostly, but, when I want to add successive records the value of the context variable is set to the the same value of the previous record, because the display form is not updated when the gallery updates with newly added record unless I select the control that navigates to the form. " Can you please decribe in detail of how your app works? Maybe you can upload some screenshots for better understanding.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

The images included are of the Home screen and the input screen.  The home screen has a gallery control to the left and a display form on the right.  When you  select the + in the upper right hand side of the Home screen the value highlighted with the red bubble is assigned to sHobbs, a context variable and your are navigated to the editscreen.  The input box highlighted with the red arrow has its default property set to sHobbs.  Normally this input box is hidden.  When you select the check icon in the upper right hand of this screen SubmitForm is called followed by Back().  

 

Now when you return to the home screen the gallery updates with the newly added record, but, the form does not reflect the new record unless I select the arrow icon, because the item property of the form is set to gallery.selected.  How can I update the gallery.selected.   Alternate methods of refreshing or syncing the form with the gallery are welcome.

 

homescr.jpginputscr.jpg

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

Power Apps Community Call

Monthly Power Apps Community Call

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

secondImage

Experience what’s next for Power Apps

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

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (46,204)