Mapping Input Source Parameters to Global Parameters

If any data source for your view model has parameters, you must map them to global view model parameters. Perform the steps in this topic for any type of parameter that you need to map.

  1. Double-click an Input Source element. The Input Source Properties dialog for that element appears.
  2. (Optional) Edit the Name and Description for this element.
  3. Click the Parameters tab to show information about parameters the input source requires, if any. The Parameters tab displays a summary, including a warning if any parameters haven’t yet been mapped.
  4. Click Edit Values to edit the mappings of the input source parameters. The Parameter Properties dialog appears.
  5. For parameters that are not arrays or web services, edit the necessary values in the Parameter Properties dialog. You have two options:
    • Use an arbitrary expression to map each parameter required by an input source. This may involve global parameters to the model, variables defined downstream, such as in Iterator operators, constants (make sure string constants are enclosed in quotation marks), or a combination of these.

      To edit an expression, click in the Value column to make it editable. Type your mapping expression directly in the table cell, or click ... to open the Edit Expression dialog if you need more room than the table cell provides. Right click (either in the table cell directly, or in the Edit Expression dialog) to show a context menu of column names, variables, and functions that you can paste into the Expression field.

    • Use the Map Unmapped shortcut, which works for all parameters except web services parameters (AROM value type) and arrays. To access the shortcut, click Map Unmapped ... in the Parameter Properties dialog. The Map Unmapped Parameters dialog appears.

      For each parameter, you can:

    Option Description
    Map this parameter to a new global parameter Choose this option to create a new global parameter to your view model and assign this input source parameter to it, all in one step. Type the new global parameter’s name in the text field provided.
    Map this parameter to an existing global parameter Choose this option to select an existing global parameter. The pull-down list shows the global parameters that have the same type as the parameter you’re mapping. Choose one from the list. This option is not available if no existing global parameters match the type of the parameter you’re mapping.
    Leave this parameter unmapped Do nothing with this parameter for now. However, you must map it before you deploy your model as a data service.
    You can use the Next and Previous buttons to navigate the list of unmapped parameters.
    Note: You can’t use the Mapped Unmapped Parameters dialog to map parameters whose type is AROM Value. You must map these explicitly in the Web Service Parameter Values dialog.
Next 

If you are mapping a parameter based on an array or a web service, an additional dialog displays when you click in the Value cell. Follow the related task steps as required.

Related concepts
Global View Model Parameters
Expressions Menu
Related tasks
Displaying Global Parameters
Adding a Global Parameter
Modifying a Global Parameter
Reordering Global Parameters
Deleting a Global Parameter
Related reference
Properties Dialog Field Descriptions

Send your feedback on this help topic to Sybase Technical Publications: pubs@sybase.com

Your comments will be sent to the technical publications staff at Sybase, Inc. For product-related issues or technical support, contact Sybase Technical Support at 1-800-8SYBASE.