More about Summary View rules
|
|
Execution of a summary view rule
To present a summary view report to a user, your activity can call the standard activity Rule-Obj-SummaryView.ShowView. Through parameter options, you can choose to retrieve the data from the database and add it to the clipboard with or without displaying.
Specify one of four values for the pyAction
parameter:
Prepare
— Execute all aspects of the summary view rule except the HTML display. KARAF 7/27/04Refresh
— Execute the entire summary view rule, retrieving data from the database, sorting and filtering the data, and presenting the display.Redisplay
— Execute the display aspects of the summary view rule, using data previously retrieved.Sort
— Resort the existing data. To specify that execution is to use a reports database (regardless of the setting of the Use reports database? checkbox on the Contents tab), set the pyUseAlternateDb
parameter to true.
To remove the data page after the initial display (reducing the size of the clipboard), set the removeDataPage
parameter to true.
To execute a summary view report or interactive chart when the user clicks a link, such as on a portal gadget, call the built-in JavaScript function showSummary()
, which calls one of these two activities.
The older activities Rule-Obj-SummaryView.ShowGraph and Rule-Obj-SummaryView.ShowViewGraph. are deprecated.
Summary view rules can accept additional parameters for selection, by referencing them with the notation param
.name in the Value column of the Criteria array on the Content tab. Ensure that processing sets values for these parameters before the summary view rule executes. For a similar example, see PDN article 25410 How to use parameters as selection criteria in a list view rule.
Report title from Full Description field
The text of the Full Description field (property pyDescription) of a summary view rule on the History tab appears to application users as a report title. Choose text that clearly describes the report contents. You can include syntax in the Full Description to include at runtime the value of a parameter or scalar property. This passage incorrectly referred to JSP tags. Corrected for 6.2 sp2. Also removed mention of "reference directives" WETMA. For example:
List of {pagename.property1} as of {pagename.property2 }
Only refer to properties that are certain to be present. The valid formats are{Param.name} and {Page.property}. This feature can support localization, through language-specific RuleSets.
If your summary view rule calls a custom getContent activity, the activity can set property values that are then displayed in the title. F-15 Vidoni
Personalization
If your access group includes an unlocked RuleSet version, you can use the Customize View feature. Use the Customize View button to create a personal copy of the summary view rule, with your Operator ID as the last key part.
Performance and limits
The summary view facility works best for queries involving 1,000 or fewer rows. It does not support queries that contain more than 10,000 rows.
To the extent possible, design summary view reports to maximize processing by database software (based on the Content tab) and reduce processing within the PRPC server.
Access Role restrictions
Time zone conversion of DateTime values
DateTime
values (but not Date
or TimeofDay
values) in the results are converted to display in the time zone of the user, based on the Time Zone value on the Availability tab of the Operator ID instance. This conversion affects selection criteria and displayed results, and so may present a different day and time for different users. KARAF B-15820Heat map chart
Agent can produce scheduled reports as files
Display of generated Java code
When you save a summary view rule, the system converts your HTML and JSP tags to Java source code. As a learning or debugging aid, you can review this Java code.
Click the Show Java toolbar button () to see the system-generated Java code that implements the summary view rule. The window presents a read-only preview of the Java that implements this rule instance. This Java code is not identical to the Java that executes at runtime, which includes Java code inlined from other rule instances and reflects rules in the requestor's RuleSet list.
Parent class