Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
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
languagejs
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();
	} 
}); 

...