Back Forward Apply-Model method

Methods and instructions by function

Use the Apply-Model method to execute a model rule to update an existing clipboard page. 5.4 Proj-592 (In contrast, use the Page-New method to create a new page and apply a model in a single step.)

Parameters

This method accepts two parameters:

Parameter

Description

Model

SmartPromptSecond 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.

Results

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 checkbox, models from higher classes are applied first.)

The destination page becomes the primary page. ERNSG 10/30/07

Checking the method status

This method updates the pxMethodStatus property. See How to test method results using a transition.

Definitions model, primary page
related topics About Model rules
Page-New method

UpMethods and instructions by function