AskDelete
6 posts
• Page 1 of 1
Re: AskDelete
Are you talking about the "Ask before delete" action available in the action editor? If yes, you need to set this on the databook once at the load of the workscreen. This is not a "ask user if they want to delete this row" action, it is a mechanism which enables a dialog on this databook whenever the user tries to delete a row.
-
rzenz - Posts: 36
- Joined: Mon Dec 12, 2016 1:40 pm
- Location: Vienna, Austria
Re: AskDelete
The action documentation is available here.
-
Support@SIB - Posts: 353
- Joined: Mon Sep 28, 2009 1:56 pm
Re: AskDelete
Hello,
Which setting on the DataBook must be set to use this?
I had figured out this work around
- Code: Select all
public void doMenuitemcopyversionversion(UIActionEvent pEvent) throws Throwable
{
ProjXUtil.addAskDeleteDialog(rdbPd);
}
Which setting on the DataBook must be set to use this?
I had figured out this work around
- Code: Select all
public void doMenuitemdeleteversion(UIActionEvent pEvent) throws Throwable
{
showQuestion(this, Text.val(new Var(rdbPdvers, "PDVECODE")) + " verwijderen?", "deleteRowPDVers");
}
public void deleteRowPDVers(UIActionEvent pEvent) throws Throwable
{
rdbPdvers.delete();
}
- lucdep
- Posts: 53
- Joined: Wed Oct 10, 2018 12:01 pm
Re: AskDelete
As said, "addAskDeleteDialog" does what it says on the tin, it adds a dialog which is then displayed when the user wants to delete a row. It does not delete a row on its own.
What you want to do is put the "Ask delete" action in the onLoad-Event of the WorkScreen and just delete the row in the menu item action.
What you want to do is put the "Ask delete" action in the onLoad-Event of the WorkScreen and just delete the row in the menu item action.
-
rzenz - Posts: 36
- Joined: Mon Dec 12, 2016 1:40 pm
- Location: Vienna, Austria
Re: AskDelete
OK, got it right now.
It was not clear to my from the doc this action could only be called from the screen's OnLoad event.
Thanks.
It was not clear to my from the doc this action could only be called from the screen's OnLoad event.
Thanks.
- lucdep
- Posts: 53
- Joined: Wed Oct 10, 2018 12:01 pm
6 posts
• Page 1 of 1