I was checking a video from Shane Young
And he mentioned that is better to start replacing the onselect = Navigate.........
then in the target form items = VarRecord
Basically replacing Gallery1.selected.
He said that this method is better and secure.
Now my question is?
I did that and my target form is a form. After press to EDIT the form and save the changes the updates didn't come up. I have to go back select the item again and after that I can see the changes.
How can I fix this? I have tried Refresh etc but nothing works.
Thanks in advance,
Solved! Go to Solution.
I am using the Set(varRecord) for navigation also. It was working yesterday, but now my Patch statement to update my form (see OnSuccess below) is no longer working. Not sure what happened, nor how to resolve it.
This should really be posted as a new question, you will find more people to help you.
Before then though, you could try
1. Wrapping your User().Email in the Lower() function, and
2. Make sure you are using the correct variable for your Items property of the Form. There are two there ie varrecord and varRecord. If the variable schema doesn't match then you'll get an error. If you have the correct variable, try removing the commented code
Try these, if no success please post to the main forums page.
Hi @sajarac ,
BrowseGallery1.selected will give you the selected record of the gallery however it will create the dependency of the previous screen when you move out of the screen so it is always a good idea to set the selected record to a variable and use that varaiable the following screen.
Again, there is nothing wrong but it will pull down the performance of the APP.
I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.
Hi @v-xida-msft ,
In regards of this: ".
Have you solved your problem?
Based on the issue that you mentioned, I think this issue is related to the varRecord variable. If you update the selected record using your Edit form, you should also update the varRecord variable to the updated record simultaneously, otherwise, this varRecord variable would still store previous record........."
I still having issues. Now I am trying to define a variable for the OnSelect property of my gallery1.selected. But the variable is storing the previous record.
This is what I am trying to set as variables:
Could you please give me some help here?
I am trying to consume those variables in the next screens.
Thank you kindly
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
At the monthly call, connect with other leaders and find out how community makes your experience even better.