Hi,
I am building a app, where upon submitting edit form , display form is resetting to new data record instead of displaying the selected data from the data table.
As seen below, upon clicking submit form it should update the status and show me the updated status in display form but it is resetting to new record. Tried adding refresh button but it did not work. It would be great help if any one can advise how i can display the updated details in display form instead of new record from datasource uponsubmission.
display form Item = DataTable1.Selected
submit button on select : SubmitForm(Form4);UpdateContext({status:false}) --> upon submission edit form will disappeared using update context
Regards,
Sharma
Hi @DSharma1 ,
Could you please share more details about the forms? Do you want to display the selected record in Display Form which updated in the Edit Form?
I made a test and it worked fine:
Both Edit Form and Display Form are with the Item property set to Gallery.selected.
Please try to remove and re-add the Display Form and Edit Form then set the Item property to DataTable1.Selected and see the result, if the problem persists, try to remove and re-add the data table.
Hope this helps.
Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.
Hi @v-jefferni
Thanks for the response. I tried re-adding data-table and removal of forms still selected record resets to 1st row upon submitting the form. Looks like it is default behavior, there is no option within data table to change the default settings.
Please see the step by step.
Screen 1 : selected row
Step 2: upon selecting the record it will navigate to screen 2 and show the selected record in display form.
Step3: Upon clicking update status, edit form will be displayed . I can update the status and submit the form. As soon the status is updated , display record changes to 1st row of the data-table.
As a workaround, i have implemented the date sorting(by column) in my datatable in descending order. So whenever the status is updated the first record in the datatable would be always the updated record. hence display form always shows the updated record.
Thanks again.
Sharma
Hi @DSharma1 ,
Please check if all those OnSelect properties of the Gallery Items been set to Select(Parent). If not, correct it.
Hope this helps.
Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
202 | |
173 | |
62 | |
32 | |
31 |
User | Count |
---|---|
325 | |
268 | |
104 | |
72 | |
56 |