Hello,
I have gallery and form control on the screen, I display selected gallery item on the form.
There is also delete function, that deletes, selected gallery item, however after that, form does not show anything as none of the item is selected in the gallery.
How can I select gallery item after deleting the selected item?
Thanks,
Solved! Go to Solution.
Thanks @dave8 ,
Strangely I answered a post a couple of hours ago with delete code exactly yours and it did not work however, have you tried
Refresh(SharePoint List Name)
however I now get your point. Of course the form will show nothing as the Item no longer exists.
I always refresh the list and navigate back to the gallery screen so the user can select another record.
This should show the updated gallery.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hello @dave8 ,
What is the Items property of your gallery and what code are you using to delete the item?
Hi @WarrenBelz
GalleryControl.Items == "SharePoint List Name"
RemoveButton.OnSelect == Remove("SharePoint List Name", GalleryControl.Selected)
Thanks and Regards,
Ok @dave8 ,
Try this on the delete
RemoveIf(
"SharePoint List Name",
ID = GalleryControl.Selected.ID
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
My issue is not regarding remove functionality, It already works as expected, however once the selected item is removed, there is no selected item in the gallery, and therefore form does not show anything without item is selected in the gallery.
How can I select an item into gallery automatically after Removing an item in the gallery?
Thanks,
Thanks @dave8 ,
Strangely I answered a post a couple of hours ago with delete code exactly yours and it did not work however, have you tried
Refresh(SharePoint List Name)
however I now get your point. Of course the form will show nothing as the Item no longer exists.
I always refresh the list and navigate back to the gallery screen so the user can select another record.
This should show the updated gallery.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
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 |
---|---|
198 | |
178 | |
64 | |
34 | |
32 |
User | Count |
---|---|
340 | |
273 | |
116 | |
73 | |
57 |