Dialogs
- Dialogs should allow users to enter some simple values.
Dialog Classes :
- Dialog is the main class used to construct dialogs.
- DialogRunBase is an extension of the Dialog class that is used by the RunBase framework.
- The DialogControl class defines a single control in the dialog.
Main Classes used in Dialog Box are
- Dialog
- DialogField
- DialogGroup
- DialogTabPage
- DialogText
Dialog Method :
- addField( )
- addFieldValue( )
- addGroup( )
- value( )
- run( )
>>> The following simple Example explain about the Dialog
static void theAxapta_DialogBox(Args _args)
{
Dialog dialog;
DialogGroup dialogGroup;
DialogField dialogField;
;
dialog = new Dialog("Simple Dialog");
dialogGroup = dialog.addGroup("Customer");
dialogField = dialog.addField(extendedTypeStr(custAccount));
if (dialog.run())
{
info(strFmt("%1",dialogField.value()));
}
}
1. The dialog.run() method returns true if OK is clicked, and false if Cancel is clicked.
2. Dialog Group is used to group dialog fields which are logically same.
>>> The below example is showing about the .addFieldValue( ) . If we use this method we can directly pass the value to Dialog.
>>> The below Example shows using the Tabpages.
Thanks And Regards
Ranjith Reddy
No comments:
Post a Comment