SetPageType
The action assigns a Page Type to the current Page object of the Document Hierarchy.
Syntax
bool SetPageType (StrParam)
Parameters
A String value that represents the Page Type.You can also designate a field in a Page object's Data file, and use its text value to set the Page Type. Enter the name of a valid Field object and surround it with single quotation marks. For example: 'PageCode'.
Returns
False, if there are no Page objects in the Page file, or if the parameter is invalid. Otherwise, True.Level
Page and Field levels.Details
Similar to the SetDCOType action, but works at the Page or Field level.The action assigns the Page Type you enter as a parameter to the current Page object of the Document Hierarchy. You can also use a Field object's value to set the Page Type. (See the Parameter section.)
- Example:
The application's scan task typically assigns Other as the Page Type and 49 as the default Page Status for every successfully scanned image in the batch.
The following sequence is an example of a rule that converts Other pages to Invoices pages, and assigns a Page Status to each:
SetPageType(Invoice) SetPageStatus(1)This combination sets the page as an Invoices page, and gives it a status of 1. This means that the page is not validated and must be processed by a task that applies Validation rules (a Rulerunner Task, for example).