Page-New method |
Use the Page-New method to create a page on the clipboard. The new page may be a top-level page or an embedded page. 9/6/02 TURBT
You can identify a model to initialize the newly created page. The model can set values for one or more properties.
Except in rare cases, identify in the Step Page field the name of the page to be created by this method. If the Step Page field of the step is blank, this method clears the primary page of the current activity and may change its class. This often is undesirable. BERRB 11/1/06
Use the Apply-Model method, not the Page-New method, to apply a model rule to an existing page.
Identify the name of the page in the Step Page column of the step. Choose a valid page name. See Understanding page names and reserved pages.
This method has three parameters:
The following keywords mean different things in
other parts of Process Commander. Using them as a page name is not
recommended: param
, local
,
primary
, steppage
, mysteppage
,
top
, parent
, or
<current>
.
The following names and patterns are not valid: pxNode
,
pxRequestor
, pxThread
, locate*
prompt*
, $*
, px*
,
pz*
, or py*
.
To avoid potential confusion, don't use Declare_ as the initial portion of a page name. The system creates declarative pages with such names.
The system creates a new page as specified, using the name in the Step Page column of the step. It finds the model using rule resolution and applies it to initialize the contents of the new page.
Page names are unique within the clipboard. If another page with the new name is already present, the system deletes that page and adds the new page with that name. OSMAE 9/10/07
This method updates the pxMethodStatus property. See How to Test method results using a transition.
R-8710 You may want the activity to check whether a page with a certain name exists before you open a new page.
In the activity step's precondition, enter the following:
= @PageExists("myPage", tools)
where myPage is the name of the clipboard page.
B-11491 This method cannot be used in a step that involves iteration. This method cannot be used to create a declarative page.
declarative page, primary page, step page | |
Understanding
page names and reserved pages
Apply-Model method |