3.6 Calling a LANSA Function Directly
You can execute a LANSA function directly using the following parameters in your call to the LANSAWEB/LANSAXML program.
PROCFUN+<process_name>+<function_name>+<partition>+<language>
where:
PROCFUN (can be in lower-case) is the keyword instruction to LANSA for the Web 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:
http://<web_server>/cgi-bin/lansaweb?procfun+<process_name>+<function_name>+<partition>
As an example, to create a link to a web system showing LANSA's web-enabled Personnel Demonstration, which shows a 5250 (green screen) application, your URL might appear as follows:
http://<web_server>/cgi-bin/lansaweb?procfun+pslsys+enrol+<partition>
To create a link to the same Personnel Demonstration using the process specifically designed as a WEB interface, your URL might appear like this:
http://<web_server>/cgi-bin/lansaweb?procfun+lansadem+ldem+<partition>
For passing parameters when calling a LANSA function, refer to 3.7 Passing Parameters to a LANSA Function.