RD_part1
RD_part1
Due to the extensive scope of this topic, I have organized it into three distinct sections.
Before getting to know about report definition lets have a clear understanding about how application talk
with database ?
Pharmacy as a Database
Imagine you are at a pharmacy looking for a specific medicine.
• When you ask the pharmacist for a specific medicine, it's like executing an SQL query to retrieve
relevant data.
• The pharmacist looks through the available stock and provides the requested medicine, just as a
database searches and retrieves the required data in response to a query.
Report definition is quite similar to a SQL query in database. But it is only used to browse the record
from the database table and It cannot be used to alter/update/delete the records.
- Report definition in Pega generates an SQL query to retrieve data from database tables and can
generate html to display the result.
- It belongs to reports category.
Lets deep dive into report definition
There are eight tabs in report definition we majorly focus on query tab, chart tab, report viewer, data
access, parameters.
The other three columns are used to determine the data representation.
Summarize:
This list varies based on property type. Cuz we don’t need the sum and average for property type “text”
right.
Sort type: it is used to sort the data either in ascending or descending.
Sort order: with in the sort type we can determine the priority.
Condition – you can specify the condition logic label. If there are more than one condition in where
clause, then you can differentiate them using labels.
Caption – Description on the filter condition displayed in the report viewer.
Column source – You can specify the column name on which you are going to apply the filter condition.
Filter condition to apply- if have more than one filter row, then you can use logic operators to satisfy
the requirement.
Values- here you have to specify which values are display. you can got variety of options here
- You can either hardcode the value or get the parameterised value dynamically.
- Select Value – You can click on the link to select the available values
- Calculation builder – you can also make use of the function to render the calculated values.
Relationship- you can make use of these relationship to establish the relation.
CHART TAB
You must save this report with at least one aggregated numeric column before defining a chart.
This section in the report definition allow us to configure the pictorial representation of a report result.