| Syntax | $callQuery{dynamic_function_name}{argument_1}{argument_2} ... {argument_n} |
| Documentation | Function $callQuery calls the named dynamic function witch will be processed in READ-ONLY mode and returns the results.
If the called dynamic function needs some arguments, this arguments should be passed to $callQuery.
This passed argumends can be accessed inside the dynamic function by calling $getParameter.
$callQuery{dynamic_function_name}{argument_1}{argument_2} ... {argument_n}
Paramenters: dynamic_function_name, the name of the dynamic function to be invoked,
argument_1 through argument_n, the arguments needed by the dynamic function for invocation.
Returns: whatever the return value of the invoked dynamic function is.
Note: if the dynamic function to be invoked needs a READ-WRITE mode to process the $call function
should be used rather then $callQuery to avoid exceptions. |
| Examples |
| Call the dynamic function 'sum' by using $callQuery:
...
$//Define the dynamic function witch calculates the sum of its two arguments
$createFunction{sum}
{
$add{$getParameter{0}}{$getParameter{1}}
}
...
$//Invoke 'sum' with two parameters. The value of addition should be 34.
$set{addition}{$callQuery{sum}{11}{23}}
|
| Group | Control_Flow |
| Minimum required transaction-mode: | READ |
| Required scripting permission of the developer | PERMISSION_FL_ADVANCED |
| Minimum parameters | 1 |
| Maximum parameters | <unlimited> |