Use the Obj-Filter method to filter the embedded pages of a results page (such as a Code-Pega-List page produced by the RDB-List, Obj-List-View or Obj-Browse methods) based on one or more when condition rules.
For example, if each embedded page on results page contains a
property Child and each Child page contains a
FirstName, you can use the Obj-Filter method to remove all embedded pages where no value of
FirstName is "Robert".
Single Valueproperties exposed as columns in the PegaRULES database. Use the Obj-Filter method to refine search results by deleting pages based on when condition tests that involve non-exposed property values, including aggregate properties.
This method has two required parameters and an array parameter.
|ListPage||Name of the results page, of class Code-Pega-List.|
|ResultClass||Select the Applies To key part of one or more when condition rules ( Rule-Obj-When ) to be used to test each result. Must match or be an ancestor class of the class of the embedded pages in the ListPage page.|
Complete at least one row of this array, specifying a when condition rule.
Enter the second key part (
) of a when condition
rule. Typically, the comparisons and expressions in the when condition rule involve
one or more aggregate properties or unexposed properties.
At runtime, the system uses rule resolution to find the when condition rules.
It applies the when condition rules to each embedded page, and deletes any embedded pages for which any when condition evaluates to false.
The embedded pages for which all when condition rules evaluated to true are not affected.
The contents of surviving embedded pages are not affected.
Properties of Code-Pega-List
This table identifies some of the main properties of the Code-Pega-List class, which is output from various methods. Properties marked with a yellow diamond can hold input parameters for the search. Other properties specified as read-only contain outputs from the search.
For list view reports that save results as an XML file in the lookup list cache, identifies the file name.
For list view and summary view rules, identifies the value of the
For list view and summary view rules, identifies the name of the window that is to hold the resulting display.
Elapsed time in seconds to process the RDB-List operation. Read-only.
Indicates whether there are more instances not returned. Values are true or false. Read-only.
Optional input to limit the number of rows returned.
Indicates the key of the first row (instance) not returned, if pxMore is true. Read-only.
Identifies the class containing the instances that are to be searched. This property is different from pxObjClass, the class of this page, which always has the value Code-Pega-List.
For list view or summary view rules that support report paging, the maximum number of results to presented on a page.
A Page List containing pages with individual search results. each of the class defined in the pxObjClass property. (Not used for Obj-List methods that specify the lightweight results format.) Read-only.
Number of rows of data returned by the search. Read-only.
For the Obj-List method, indicates that the results are in a special format rather than in pxResults pages. Read-only.
For the Obj-List method, the SQL statement sent to the database before substitution. Read-only.
For the RDB-List method, SQL statements as sent to the SQL database. Appears
only when requested through the
For the RDB-List method, SQL statements before substitution. Appears only when
requested through the
For the Obj-List method, elapsed seconds taken for the method. Read-only.
For the RDB-List method, the total number of results returned by the query. This is set only if pyReturnTotalResultCount is true. (If pyReturnTotalResultCount is false, then this is zero.) Read-only.
|pyUseAlternateDb||Set to true if an alternate database, not the primary PegaRULES database, was the source of data for a list view or summary view report.|
Checking the method status
This method updates the pxMethodStatus property. See How to test method results using a transition.