web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power App modal dialog
Power Apps
Answered

Power App modal dialog

(0) ShareShare
ReportReport
Posted on by 7

Hi Power App pros, I am new to PowerApp and need help in solving an issue as I am unable to solve the same. I have created a canvas app and have a gallery and form created on a single screen(pic attached). The issue I am facing is once the selected record from the gallery is displayed in the form and I select the delete icon to trigger a dialogue popup UpdateContext({varShowDeleteScreen:true})  to appear with the option to delete. Once I select the delete button (Remove(tblConsultantMEP,galConsultantMEP1.Selected);UpdateContext({varShowDeleteScreen:false});  the record gets deleted in the gallery and in SharePoint but the form says no item to display. I need to display the last submitted record or the first record available in the gallery i am stuck with this for last 2 days appreciate your help and Thousand thanks in advance

SyedKhamer_0-1676048459370.pngSyedKhamer_1-1676048484284.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    There is no selected record in your gallery as the one from before is deleted.

     

    If your Item for that form is galConsultantMEP1, then it needs to become something like:

     

    If(Len(galConsultantMEP1.Selected.Title)=0, First(tblConsultantMEP), galConsultantMEP1.Selected)

     

    otherwise if you don't want it to show that then you need to force the gallery to reset so that an item is selected, so on your delete button put:

    Remove(tblConsultantMEP,galConsultantMEP1.Selected);
    UpdateContext({varShowDeleteScreen:false});
    Reset(galConsultantMEP1);

     

  • SyedKhamer Profile Picture
    7 on at

    thanks , you made my day

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard