Embedding a Px View in another Px View

Using the PxInclude Widget and ORD Variables you can embed a single Px file in another Px file. The following is a general workflow to do this.
  1. Design and create (or open an existing) Px file to use as an included or child Px file.
    This is the file to embed in a parent Px file using the PxInclude widget.
  2. If you are using any bound variables, consider whether or not to use an ord variable for the ord property value of any bindings to assign only at the parent Px file level, then create the variables using the $(var) syntax.
  3. Save the child Px file in the desired location.
  4. Create (or open an existing) parent Px file.
    This is the file that uses the PxInclude widget to embed the child Px file.
  5. Add a PxInclude widget to the parent Px file using one of the following methods:
    • Drag (cut and paste) the widget from a palette and edit the ord property to add the child Px file.
    • Drag (cut and paste) the child Px file from the Nav tree to add the widget to the parent Px file with the child Px file already defined in the PxInclude ord property.
    • Drag (cut and paste) a component from the Nav tree to initiate the Make Widget wizard. Use the Make Widget wizard to select the child Px file and choose which variables to bind.
  6. Select the PxInclude widget and edit the following properties, as required:
    • Enabled, Layout, and Visible—leave set to default values.
    • Ord—click the value and define or browser to select the child Px file. If you used the Make Widget wizard, this property may already be defined.
    • Variables—to open the Variables window, click the value property. Use the editor property to define an ord value for each variable that appears. Notice the after column to verify the correct ord path for each variable.
  7. To close the Variables window, click OK.
  8. Save the parent Px file and attach it as a view to a component, if desired.
  9. To verify that the variable ord paths are set correctly, view the parent Px file from the component view (if used).