This documentation is archived and is not being maintained.
EventCreateRule.run Method [AX 2012]
Inserts a new rule into the database.
Records are inserted in the following tables:
-
EventRuleData
-
EventRuleRel
-
EventRuleRelData
-
EventRuleField
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();
}
}