Note: We recommend using the Call method instead of this rule, excepting the case you need to indicate the name of the called object in a variable and you need also to define the invocation in the rules section of a transaction.
Executes a GeneXus object or an external program within a Transaction. The call, as a rule, only can be included in a Transaction object (in it's rules section).
Call('pgm', [ parm1, parm2 ,... ] ) [ If cond ];
Is the GeneXus object or external program that will be called when the condition cond is true. Use apostrophes or quotes to specify the external program name.
parm1, parm2 ,...
Are optional parameters that can be sent to the called object with some purpose (and they must be received in the called object by declaring them with the Parm rule.
Is the condition that will be evaluated in order to call the ‘pgm’ (true) or not (false). If cond is omitted the Call will always be triggered.
1) The following transaction rule invokes a report that prints a Purchase Order immediately after executing the commit in the transaction where the rule is defined:
Call(RPtOrder, OrdNbr) on Aftercomplete;
2) The following transaction rule invokes a report that prints a Purchase Order immediately after executing the commit in the transaction where the rule is defined. The name of the called object is loaded in a variable:
&Pgm = 'RPtOrder';
3) The following transaction rule invokes an object defined in the KB. The name of the called object is stored in the attribute named: PgmName. All you need to do is to add the prefix ATT: to the name of the attribute that stores the name of the object you want to call:
Call(ATT:PgmName, parm1, parm2, …);
Two parameters are sent to the called object.
Objects Transaction object
Significant Object Name Length Property
Expand dynamic calls property
Prefixes in GeneXus