Share via


EventCreateRule::newCheckFormRun Method [AX 2012]

Determines whether a specified FormRun is valid for creating rules.

Syntax

client server public static boolean newCheckFormRun(FormRun _formRun)

Run On

Called

Parameters

  • _formRun
    Type: FormRun Class
    The FormRun instance that is to be checked.

Return Value

Type: boolean
true if the specified FormRun is valid for creating rules; otherwise, false.

Remarks

This method instantiates the class without calling the standard Prompt method or Run method.

This method is typically used for UI purposes; for example, to decide whether to display the Create Alert Rule menu item on the shortcut menu.

Examples

void MyMethod(FormRun _formRun) 
{ 
    Boolean canCreateRule = EventCreateRule::newCheckFormRun(_formRun); 
}

See Also

EventCreateRule Class

Info.canShowCreateRuleMenuItem Method