Skip to main content

Notifications

Power Apps - Microsoft Dataverse
Unanswered

Powerfx In Command Bar- How to move back to the previous screen after deleting the record ?

(0) ShareShare
ReportReport
Posted on by 305

 

 

If(Confirm("Are you sure you want to delete ? "),Remove(ItemSpecs,Self.Selected.Item));
Back()

 

 

 

I am opening a record in a subgrid, this leads to the main form of the item from that subgrid.

Then I am clicking on a custom button to delete the record , and it is deleting correctly but the record still stays visible instead of becoming blank or moving back to the previous screen.

Back() is causing and error as the function is recognised but not supoorted

 

What is the right way of going back to the main form after deleting a record from the subgrid's main form?

Categories:
  • Jonathan Manrique Profile Picture
    Jonathan Manrique 2,678 on at
    Re: Powerfx In Command Bar- How to move back to the previous screen after deleting the record ?

    Hi @Rutu01 

     

    Hello, to return to the previous record you will have to have the GUID of the previous record captured in some way, which is why it is a bit complex, you could do some alternatives but none will give you a very clean solution.

    I suggest you use the navigate and go to the main view or the view you decide and that way you can go to a specific place

     

    To do this, use With so that everything happens in the same context and you can return to the main screen when you delete the record, another alternative is to go to the main form

     

    Navigate('table (View)'.'name view')

     

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,445

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,741

Leaderboard

Featured topics