...
Code Block |
---|
|
var Custom_Win = new canvas.Dialog(
{
title : 'TITLE',
dialogType : 'USERDEFINED', message : 'Detailed message',
dialogStyle:[ 'YES_NO' | 'OK_CANCEL'|'YES_NO_CANCEL'|'PRINT_CLOSE' ],
okHandler : function ()
{
//Corresponding handlers
}
}); |
Refer the following sample dialog for its usage:
Code Block |
---|
|
var confWin = new canvas.Dialog(
{
title : 'Error',
dialogType : 'USERDEFINED',
message : 'Detailed message', dialogStyle:'YES_NO',
yesHandler : function ()
{
var selRecord = record[0].data;
var utilObj = new cbx.form.listeners.registeredUtility();
utilObj.utilRegisteredDelete(selRecord);
confWin.close();
},
noHandler : function ()
{
confWin.close();
}
}); |
...