I have a canvas app that when navigating from the Gallery1 to an item ,it goes to the correct Edit form. But, I have a button titled Back that uses the Navigate(Gallery1) function. When clicking on this button and returning to Gallery1, if I click on another item, the data in the fields of the Edit form are the same as the item originally sent to from the gallery. How can I get this to open a different item if I navigate back? I did not want to use the Back function because I have used deep linking to open items directly from the list, if need be. In this scenario, the back function would take them back to the list but we do not want that.
BackButton.Onselect
Refresh(TermReport);Navigate(Gallery1)
Solved! Go to Solution.
Thanks,
Can you change it to make sure it actually selects the row in the gallery like this:
Select(Parent); Navigate(frmEditTermReport,ScreenTransition.Fade,Gallery1.Selected)
@iAm_ManCat |
Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you! |
Thanks! |
Hi,
When you select the item in the gallery, what code are you using?
I would hazard a guess something like this:
Select(parent); Navigate(EditFormScreen)
You could try using:
Select(parent); ResetForm(EditFormName); EditForm(EditFormName); Navigate(EditFormScreen)
Let me know what code you have on the gallery's select.
Cheers,
Sancho
@iAm_ManCat |
Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you! |
Thanks! |
@iAm_ManCat I am using the following in the OnSelect property of the Gallery1 arrow icon:
Navigate(frmEditTermReport,ScreenTransition.Fade,Gallery1.Selected)
Thanks,
Can you change it to make sure it actually selects the row in the gallery like this:
Select(Parent); Navigate(frmEditTermReport,ScreenTransition.Fade,Gallery1.Selected)
@iAm_ManCat |
Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you! |
Thanks! |
@iAm_ManCat I apologize for my delayed response as I was swamped. This worked perfectly and I understand why this works. Thank you.
Happy I could help, and no worries about the delay, I'm glad you came back to say it worked! 😺
@iAm_ManCat |
Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you! |
Thanks! |
User | Count |
---|---|
258 | |
110 | |
90 | |
51 | |
44 |