Call command

Official Content
This documentation is valid for:

Note: We recommend using the Call method instead of this command, excepting the case you need to indicate the name of the called object in a variable.

 

Executes a GeneXus object or an external program synchronously.

Syntax

Call('pgm ' | &var | ATT:att  [ , parm1 , parm2 , …] )

Where:

pgm
   is the name of the GeneXus object or external program; use apostrophes or quotes to specify the external program name.

&var
   is a string type variable containing the name of the GeneXus object.

att
   is a string type attribute containing the name of the GeneXus object; ATT: is a prefix in GeneXus.

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.
 

Examples

1) Calling an Internal object (without sending parameters to it)

Call(CustomInfo) 

2) Calling an external program (without sending parameters to it)

Call('ExtPrg')

Check the considerations section for further detail.

3) Calling an internal object, but the object name is loaded in an attribute (att is the name of the attribute defined in the KB). Two parameters are sent to the called object.

Call(ATT:att, parm1, parm2, …)

Check the considerations section for further detail.

4) Calling an internal object, but the object name is loaded in a variable. Two parameters are sent to the called object.

Call(&var, parm1, parm2, …)

Dynamic Call considerations

The object name must exactly match the target object name; otherwise you will get a runtime error. For example: in Java all classes are generated as lowercase so you will need to set the Dynamic call as lowercase.

Do not use an expression for the first parameter in the Dynamic call, it only supports a variable or attribute name containing the object name.

Scope

Objects   Procedure object, Transaction object, Web Panel objectWork Panel object


See also

Call method
Call rule
Submit command
Submit rule
Link Command
Parm rule
Significant Object Name Length Property
Expand dynamic calls property
Prefixes in GeneXus


Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.