IBM Cognos User Manual page 237

Version 10.1.1
Table of Contents

Advertisement

Including Cognos Transformer Prompts in an XML Command File
You can include prompts in an XML command file. You must use the following
command line in order for Cognos Transformer to read the file:
cogtr -fcommand file name
where command file name contains a sequence of statements that define prompt
values.
The command file can contain one or more commands for prompts. The command
name is prompt. The value attribute of the command specifies the prompt name.
Each prompt command contains one or more Parameter elements that specify a
query name, prompt attributes and values. The Query Parameter element specifies
the query to which the prompt belongs. The other Parameter elements define the
prompt type and values.
There are several different types of prompts: simple, multi-valued, range, and
MUN.
The following example shows single value, multi-value and range prompts.
Prompts can be included in an XML command file. You must use the following
command line in order for Cognos Transformer to read the file:
cogtr -fcommand file name
where command file name contains a sequence of statements that define prompt
values.
The Command File can contain one or more commands for prompts. The
command name is prompt. The value attribute of the command specifies the
prompt name. Each prompt command contains one or more Parameter elements
that specify a query name, prompt attributes and values. The Query Parameter
element specifies which query the prompt belongs to. The other Parameter
elements define the prompt type and values.
There are several different types of prompts: simple, multi-valued, range, and
MUN.
The following example shows single value, multi-value and range prompts.
<?xml version="1.0" encoding="UTF-8"?>
<Settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Commands>
<!-- SINGLE_VALUE PROMPT -->
<!-- Prompt name -->
<Command Name="prompt" Value="MyPrompt1">
<Parameters>
<!-- A query this prompt belongs to -->
<Parameter Name="Query" Value="Promptmany~1"/>
<!-- SingleValue, MultiValue, Range -->
<Parameter Name="PromptType" Value="SingleValue"/>
<!-- Any type that understood by RS. Optional. Not in use -->
<Parameter Name="PromptValueType" Value ="Integer"/>
<!-- Value -->
<Parameter Name="PromptValue" Value="12345"/>
</Parameters>
</Command>
<!-- MULTI_VALUE PROMPT -->
<!-- Prompt name -->
<Command Name="prompt" Value="MyPrompt2">
<Parameters>
Appendix A. Command Line Options
223

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents