Apply-Model method |
Use the Apply-Model method to execute a model rule to update an existing clipboard page. (In contrast, use the Page-New method to create a new page and apply a model in a single step.)
This method accepts two parameters:
Parameter |
Description |
Model |
Second key part of a model rule to apply. |
OverwriteProperties |
Select to cause values from the model to overwrite existing property values on the target page. Leave unselected to add values from the model rule only for properties not present on the target page. |
The system find the model rule to execute using the class of the step page (or the current primary page, if a step page is not specified) together with the Model parameter as key parts. The step page (or the primary page, if a step page is not specified) becomes the destination that the model rule updates.
The system executes the model rule, evaluating rows of the rule in sequence and updating the destination page. If the OverwriteProperties box is checked, property values already present in the destination page may be overwritten by values from the model rule. (If specified in the Call superclass model check box, models from higher classes are applied first.)
The destination page becomes the primary page.
This method updates the pxMethodStatus property. See How to test method results using a transition.
model, primary page | |
About Model
rules
Page-New method |