Information Management IBM InfoSphere Master Data Management, Version 10.1

Specifying an Input/Output Variable

About this task

The native behavior of the Simple Cheat Sheet Editor does not allow you to specify a variable to hold the return value for a command, which other commands may need as input. To remedy this, you need to add the output parameter manually using a text or XML editor.

Procedure

  1. Right-click the cheat sheet's xml file in the Navigator and select Open With > Text Editor. You may use your preferred text or XML editor instead, if desired.
  2. Locate the line that identifies the Create a New Project or Select a Project command:
    <command serialization="NewProjectCommand" confirm="false">

    or

    <command serialization="ProjectSelectionCommand" confirm="false">
    
  3. Insert the parameter returns=variable_name" where variable_name is the variable you selected in step 7 under Specifying commands for cheat sheet steps. Be sure this matches exactly; the variable name is case-sensitive. In the example for step 7, we used the input variable ${valuesMap}. The text below shows how the valuesMap variable was added to the command line in the XML file.
    <?xml version=”1.0” encoding=”UTF-8”?>
    <cheatsheet title=”Select a project”>
    <intro>
    <description>
    <b>This cheat sheet opens the Select an Initiate Project 
    dialog.</b>
    </description>
    </intro>
    <item title=”Select the project” dialog=”true” skip=”false”>
    <description>
    This step opens the &quot;Select Initiate Project and Hub&quot; 
    dialog, enabling...
    </description>
    <command serialization=”ProjectSelectionCommand” returns=”valuesMap” 
    confirm=”false”>
    </command>
    </item>
  4. Save the .XML file and close the text editor.


Feedback

Timestamp Last updated: 19 Feb 2014

Topic URL: