3.6 Calling a LANSA Function Directly

You can execute a LANSA function directly using the following parameters in your call to the LANSAWEB program.



PROCFUN (can be in lower-case) is the keyword instruction to LANSA to execute a LANSA function directly;

<process_name> is the name of the LANSA process containing the function;

<function_name> is the name of the LANSA function you want to execute;

<partition> is the LANSA partition. This parameter is optional. If this parameter is not specified, the default LANSA partition will be used;

<language> is the partition language you wish to use. This parameter is also optional. If a partition language is not specified, the default partition language will be used.

If you use the language parameter, the <partition> parameter must also be specified, otherwise, the <language> parameter will be interpreted as the <partition> parameter.

Note that each parameter is delimited by the plus (+) character as in this example:



As an example, to create a link to a web system showing function MYFUNC in process MYPROC , your URL might appear as follows:



To create a link to the same Personnel Demonstration using the process specifically designed as a WEB interface, your URL might appear like this:



For passing parameters when calling a LANSA function, refer to 3.7 Passing Parameters to a LANSA Function.