itpserver_parameter

This function is deprecated. Use the Field Set _Document instead (see _Document).

With the itpserver_parameter function, you can pass information back to KCM Core or KCM ComposerUI Server when the Master Template is run by KCM Core or KCM ComposerUI Server.

 itpserver_parameter ( parameter_name;
return_value )

The function result is of type BOOL. The function always returns TRUE.

The itpserver_parameter function has two parameters divided by semicolons:

  1. parameter_name, type TEXT. This is the name of the parameter as it is known or used in KCM Core.
  2. return_value, type TEXT. This is the value to be returned for the parameter.

This function is intended to be used with the itp_parameter function in KCM Core scripts. The data marked and passed with itpserver_parameter function in the Master Template can be read in a KCM Core script with the itp_parameter function. To retrieve the value, the itp_parameter function takes the identifier parameter_name set in tpserver_parameter as parameter.

To run a Master Template containing this feature, you need KCM Core or KCM ComposerUI Server.

An example is provided here.

In the Master Template.

 BOOL dummy := itpserver_parameter ("print"; "yes, please")

The variable dummy is used to contain the return value of the function in the KCM Core script.

do_we_print_it = itp_parameter
("print");

The function itpserver_parameter supersedes the function itpds_parameter that is obsolete now.