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 Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,620)