Add user parameters to the Output Generator dialog
This procedure describes how to add user parameters to the Generate Output dialog.
- Document ID
- Delivery scope: Public, Partner only, Internal
- Publication Date
- etc.
The example below shows how these user parameters are displayed on the Generate Output dialog:
User parameters are specified in the preprocessors.xml file. Each field in the Generate Output dialog is associated with a user parameter in the preprocessor definition. When the user selects an output type, IXIASOFT CCMS Output Generator looks up the preprocessor associated with this output type, retrieves the user parameters, if any, and displays them in the Generate Output dialog. The values entered by the user are then passed to the Ant conductor file when generating the output.
The following code shows examples for each type of parameter.
<user>
<-- Example of a string parameter -->
<parameter label="Sample text field" name="text.field" mandatory="false"
type="string"/>
<-- Example of an integer parameter -->
<parameter label="Sample integer field" name="integer.field"
mandatory="false" type="integer"/>
<-- Example of text field with validation -->
<parameter label="Sample text field with validation" name="text.field2"
mandatory="false" type="string"
format="[0-9]*[.][0-9]*[.][0-9]{3}" tooltip="2.3.009"/>
<-- Example of date field -->
<parameter label="Sample date" name="date" mandatory="false" type="date"
format="yyyy-MM-dd" tooltip="Format is yyyy-mm-dd"/>
<-- Example of sample list -->
<parameter label="Sample list" name="list" mandatory="false" type="list">
<value name="item1">Item 1</value>
<value name="item2">Item 2</value>
</parameter>
<-- Example of sample choice parameter -->
<parameter label="Sample choice" name="choice" mandatory="false"
type="choice">
<value name="value1" _default="true">Value 1</value>
<value name="value2">Value 2</value>
</parameter>
<-- Example of sample index-list parameter -->
<parameter label="Sample index-list (using audience)" name="audience"
mandatory="false" type="index-list"/>
<-- Example of sample index-choice parameter -->
<parameter label="Sample index-choice (using platform)" name="platform"
mandatory="false" type="index-choice"/>
</user>