Embed Px files with ORD variables using PxInclude

This example illustrates embedding Px files with ORD variables using a PxInclude widget.


Prerequisites:
  • Have two relativized Px views

In this example, there are two relativized views, Child 1 and Child 2, that will be included on a “master” Px file.

Embed Px files with ORD variables in a “master” Px file using PxInclude

  1. Edit the relativized ORDs in your Px views to use the $(variablename) syntax in place of the actual ORDs, for example: $(Child1)/Variable1.
  2. Save the Child 1 and Child 2 Px files.
  3. Create another folder named, Master and add a Px view.
  4. Drag the Child 1 folder onto the Master Px view.
  5. In the Make Widget wizard, select the Include Px File option, and use the File Ord Chooser to select the “Child1Px.px” file and click OK.
  6. Select variable to bind, Child1, and click OK. The PxInclude widget’s properties are shown below.
    Image

  7. Repeat steps 4–8 above using the Child 2 folder.
  8. Switch to View mode to see the embedded Px files with Ord variables. Use the Actions menu to affect changes, as shown here:
    Image