Call by Expression
You can use the program's expression to invoke subroutines, which need to be used throughout the system. Expressions let dynamic calls select programs at runtime.
The only difference between the Call Program and the Call Expression operation is the way you tell Magic xpa which program to call.
You can use the Call by Expression operation to:
-
Invoke subroutines.
-
Implement one-to-many relationships.
-
Implement pick list windows.
-
Implement any type of pop-up windows.
-
Call a program from within a host application. This is done by supporting the convention of x.yy as the called program number, where yy is the generation of the host application and x is the program number in the host application. Note that the host application number must be a two digit value. Since version: 3.1
Exceptions: This operation is not supported for Offline tasks. You cannot call Offline programs from this operation.
The properties of the Call by Expression operation are:
Program or Task ID
Arguments
Result
Form
Lock
Sync Data
Returned Context ID
Condition (Cnd)
Call Operations
Call Properties
How Do I Call a Program Dynamically By Its Index?