About ORD Variables

ORD variables are optional portions of an "ORD binding" that you can create in order to provide more flexibility or "reusability" in your Px files.

You can use a variable for the complete ORD or identify a variable part of an ORD by using the following special syntax in a bound component ord property field.$(var)

Where:

  • $ is a special character used to identify an ORD variable
  • (var) is a named variable (may be any text string) inside a set of parentheses. The name in parentheses is the name that is substituted by a literal text string in the ord Variables dialog box after the child Px file is included in the parent Px file.

The following illustration shows the general relationships between Px files that use ORD variables in PxInclude widgets.



Figure 44.   PxIncludes Allow Px File Reuse With Variable ORDs

Image

Note the following about this example:

  • Px File Y uses two ORD variables: $(var1) and $(var2).
  • Px File Y is embedded in two different Px files using PxInclude widgets.
  • In Px File A, var1 is defined as "A", resulting in a binding "ord=A". The "ord=A" value binds the widget to a "Point A", so a value from that "Point A" is displayed in the parent view (Px File A).
  • In Px File B, var1 is defined as "C", resulting in a binding "ord=C". The "ord=C" value binds the widget to a "Point "C", so a value from that "Point C" is displayed in the parent view (Px File B).
  • Similar to the descriptions above, in Px files A and B, var2 is defined as ord=B and ord=D, respectively, resulting in different point values displayed in Px Files A and B.