Reports
Reports
List View:
• A list view rule, an instance of the Rule-Obj-ListView class.
• Lists individual instances.
• A List View displays the property-value details of a class,
• Users can personalize list view reports easily and interact with them.
• Use the Report wizard to define list view reports and link them to your portal.
• Data Source: This panel lists those work types, assignment types, or concrete Data- classes that
can be the source of detail rows for the report.
• Criteria: Define selection criteria as rows of this array. Each row can define a comparison test
for a property in the data source you selected in step 2.
• Fields: Define the fields (properties) to appear in the detail rows of the report.
• Process Commander stores the values of all aggregate properties and some Single Value
properties in a blob column (the Storage Stream) usually in a compressed form. Such
properties cannot be accessed for selection in list view and summary view reports, and can
slow retrieval and processing in other operations.
• Exposing too many properties in a table may speed reporting and searching operations, but
make insert and update operations slower
• Choose Tools > Database > Modify Database Schema from the menus to start the wizard
• Access the List of Classes window for the table containing the property of interest,
following steps 1 to 5 above.
• Locate the class that contains the scalar property to be exposed.
• Click the number in the Set to be Visible row.
• The resulting detail window displays the properties already exposed as columns in gray text
at the bottom of the display. Properties that are candidates to be exposed are shown at the
top of the display in black text.
• Check the box for each property to become exposed as a column. For properties with a data
type of text, identifier, or password, you can modify the column width shown in the
Column/Size column. The default width is 64 characters, or the Max Length of the property
(if that was defined for the property). If you change these values, remember to update
later the Max Length values if defined on the Property form.
• To complete the size changes or create the new column or columns now, enter a Database
UserID and password that grants the ability to modify the schema of this database. Select
the Generate Database Columns option and click Go.
• If you don't have an appropriate password, or want to review the revised Structured Query
Language definition for the table, select the Generate SQL Code option and click Go.
• If you don't have an appropriate password, or want to review the revised Structured
Query Language definition for the table, select the Generate SQL Code option and click
Go.
• If this table contains fewer than 10,000 rows, you can instruct the system to unload
them, change the table schema, and reload them. Confirm that no other requestors are
using this table, select Resave affected records? and then click Go to start this
processing.
• Only top-level Single Value properties can be exposed as individual columns. Two
tactics are available when you need a database column that contains the value of an
embedded property:
• Copy approach — Copy the value to a new top-level property each time the embedded
property changes (or each time the instance containing the property is saved). For
example, if a list view report needs to select rows based on property
pyWorkPage.pxFlow("LoanDisburse").Sheet.Detail(4), you can:
• Create a new top-level Single Value property to hold a copy of this value
• Create a one-step activity to copy the value to the new top-level property, with
Activity Type set to Trigger
• Create Declare Trigger rule that calls the activity each time the work object is saved
• Expose the top-level property.
• Reference the top-level property in the list view rule
Copyright ©2004 Virtusa Corporation | CONFIDENTIAL
11
REPORTING % of EXAM - 5%
• If not one but many or all values of a Value List or Value Group are needed as exposed
columns, a Declare Index rule is a better approach.
• Create a concrete class derived from the Index- base class
• Create Single Value properties in the new class to hold individual values of the
embedded values
• Create a Declare Index rule with the appropriate embedded Page Context value that
copies the embedded values into a new Index- instance.
• Save the Declare Index rule; it immediately begins executing, adding and deleting
instances of the new class.
• Expose database columns corresponding to the Index- class
• Reference the Index- properties in the list view rule.