Configuring Effectivity Expression Display

You can configure how the effectivity expression displays its component parts, using either the defined short format or long format.

See Effectivity Expression Display.

  1. Create or open the text file for customized properties. For more information, see Editing Properties Using MQL.
  2. To define the short display format, follow these steps:
    1. Add or edit this line in the file used to import properties into a page object:

      emxEffectivity.DisplayFormat.Short = ${NAME}

    2. Specify the value for this property using type, name, and revision macros as required.

      For example:

      • ${NAME}
      • ${NAME}, ${REV}
      • ${NAME}|${REV}
      • ${NAME}:${REV}

      The default value is ${NAME}, ${REV}.

  3. To define the long name format:
    1. Add or edit this line in the file used to import properties into a page object:

      emxEffectivity.DisplayFormat.Long = ${NAME}

    2. Specify the value for this property using type, name, and revision macros as required.

      For example:

      • ${TYPE} ${NAME} ${REV}
      • ${TYPE}|${NAME}|${REV}
      • ${TYPE}:${NAME}:${REV}

      The default value is ${TYPE} ${NAME} ${REV}.

  4. To define a selectable to use as an alias for the ${NAME} macro:
    1. Add or edit this line in the file used to import properties into a page object:

      emxEffectivity.DisplayFormat.type_XXX.AliasName

    2. Replace XXX with the administrative object type for which the alias is being defined. Add additional lines as required for each type for which you want to define an alias.

      For example:

      attribute[Marketing Name]

      The code searches for the context object type when looking for the property. If the search does not find the alias for the specific type, it searches up the type hierarchy. If the property is blank or not found, the display shows the object name.

  5. To define how the object is displayed in an effectivity expression:
    1. Add or edit this line in the file used to import properties into a page object:

      emxEffectivity.DisplayFormat = long
      • short: The effectivity expression displays with the defined short format.
      • long: The effectivity expression displays with the defined long format.

  6. When you finish updating the text file with all properties that you want to modify, use the text file to modify the effectivity.properties page object. For more information, see Editing Properties Using MQL.