IBM Support

Example Uses of Expand

Question & Answer


Question

Example Uses of Expand

Answer

Example Uses of Expand

Thesyntax of the expand function is: ${expand(property[defaultValue[format[lookup]]])}.

For example suppose that you want to display thename of the model as the name of the associated product together withthe product description. At the model level set the value of theUI: DISPLAY NAME property to: ${expand("UI: PRODUCT NAME")} or ${expand("UI:PRODUCT DESCRIPTION"Description not available)}.

Doing this ensures that if the product name or descriptionchanges and you recompile the model the name or description displayswith the new version when users next configure the product.

Here are some further examples of the expand function:

  • String-valued property:
    • ${expand("color")}
    • ${expand("color" "Black")}
  • Numeric-valued property:
    • ${expand("weight")}
    • ${expand("weight" 0.0)}
    • ${expand("weight"0 #.00)}

"

[{"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Product":{"code":"SS73G6","label":"Sterling Total Payments for Financial Services"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
08 December 2018

UID

ibm10760895