EventCreateRule::construct Method [AX 2012]
Constructs an instance of the class.
Syntax
client public static EventCreateRule construct()
Run On
Client
Return Value
Type: EventCreateRule Class
An instance of the EventCreateRule class.
Remarks
The instance is forced on the client tier in this method.
Examples
static void main(Args _args)
{
EventCreateRule eventCreateRule = EventCreateRule::construct();
if (_args && _args.caller() && _args.caller().handle() == classnum(FormRun))
{
eventCreateRule.parmCallerFormRun(_args.caller());
if (eventCreateRule.prompt())
eventCreateRule.run();
}
}