Simple Dialog

Do you ever feel how to make a dialog field as Mandatory, if so then follow as below
Make the Dialog Field mandatory as true as shown below:


 Dialog dialog;
 DialogField dialogField;
 ;
 
 dialog = new Dialog("Dialog Test");
 dialog.addText("Select customer:");
 dialogField = dialog.addField(extendedTypeStr(CustAccount));
 dialogField.label("Re-Name");// TO Re-Name the Field Name in Dialog
 dialogField.mandatory_RU(true);// To make Dialog as mandatory
 dialogField = dialog.addField(enumStr(Gender));//To get Enum in dialog box
 
 dialog.run();
 
 if (dialog.closedOk())
 {
 info(dialogField.value());
 }
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s