Announcements
I need help with my Edit Form. Somehow, no matter which record I edit, the edit form is showing data for the first record in my SharePoint list and not for the current record I am trying to edit. I am not sure if there is some reset function or something that can be causing this. I also created a deep link from my SharePoint list so that users editing items in the list, will open the form in PowerApps edit mode, and this also opens the app with the same record all the time. Any help to fix this will be appreciated.
@joshieboy
What is the Item property of your EditForm? This will determine what item it is editing.
Hi @RandyHayes
The Item property is BrowseGallery1.Selected
So you're stating that you have a BrowseGallery1 that you click on an item and then, in the OnSelect of either the Gallery or some icon/button in your Gallery you have this: EditForm(yourFormName); Navigate(yourFormScreen)
And the Item property of the Form is BrowseGallery1.Selected and you are NOT seeing that record?
@RandyHayes
That is correct. My EditRecord screen has one record saved into all of the fields, and it appears that whichever record I try to edit, displays this one record and not the values for the one I am editing at the moment. I am not sure how to reset this so it displays the record in question.
The strange thing is I have a search screen canvas and the edit button OnSelect properties for it are: EditForm(EditForm1);Navigate(EditScreen1, ScreenTransition.Fade) and this works well from that screen and opens the relevant record for editing, but I am trying to setup a work queue for users to see only those records assigned to them, and also use deep linking in SharePoint so that it can be opened in PowerApps from SharePoint. The edit icon in my work queue has the same formula as above, yet it still displays the one record on the Edit form and not the current one being edited.
@RandyHayes - upon further investigation I am seeing that the edit form is showing the very first record stored in the SharePoint list. No matter which record I try to edit from PowerApps, its taking the values of the very first record submitted.
Try Lookup(Splist,ID=BrowseGallery1.Selected.ID) in the Item Property of the form.
@Drrickryp - thanks. Still not working. Are there any facilities to do a screen share of what I am doing?
So you mention that the Item property is: BrowseGallery1.Selected
And that this Works when you come from the search screen. So, you then only have it set to get its Item from one place.
If you're going to work with multiples, then I would suggest implementing a snapshot variable at this point.
In the OnSelect action of all the Galleries in question, add : Set(glbCurrentRecord, ThisItem)
Then set the Item property of your form to: glbCurrentRecord
Thank you @RandyHayes - this worked. Also, thanks all for the assistance and feedback on this item. Appreciated.
@RandyHayes do you mean on the Gallery on select Property or on the buttons you add. I have the same issue. I have a gallery Gallery1 and added two buttons, edit button to edit the form and View button to view the form. I have also added another button on the view Form to navigate to the edit form. The edit button on the gallery works fine. But, when I click the view button and try to edit from there, it opens only one record whatever I am opening.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 483
WarrenBelz 399 Most Valuable Professional
11manish 327