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?
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.
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.