EventCreateRule.run Method [AX 2012]
Inserts a new rule into the database.
Syntax
public void run()
Run On
Called
Remarks
Records are inserted in the following tables:
EventRuleData
EventRuleRel
EventRuleRelData
EventRuleField
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();
}
}