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?
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')