Problem
How can I display a confirm message to the user.
Solution
You can use the following code in the form:
int iret = thisForm.showConfirm("<confirm message>", dataweb.client.OptionForm.YES_NO_CANCEL_OPTION);
if (iret==dataweb.client.OptionForm.YES_OPTION){
}else if (iret==dataweb.client.OptionForm.NO_OPTION){
}else if (iret==dataweb.client.OptionForm.CANCEL_OPTION){
}
kind of confirmation message are:
dataweb.client.OptionForm.YES_NO_OPTION
dataweb.client.OptionForm.YES_NO_CANCEL_OPTION
dataweb.client.OptionForm.OK_CANCEL_OPTION
Published in Mon, 13 December 2010 10:26
