Order records in the Business Records diagram
When multiple records exist with relations defined, you can specify the order in which the rows are fetched.
Before you begin
You have a Report Data file opened, displaying the Business Records diagram.
Note:
At this time, the ordering or records in a Business Record diagram only impacts reports. It will not have any affect when set on business records defined for a form or Web service.
The settings.agconf
file must set the
orderRecords
attribute to true
for the Record
Data file
extension:<File extension="4rd" orderRecords="true">
This
attribute should be set at installation. If this attribute is set, an ordering number appears in the
child as soon as a relation is added between two records.When you order the records in a diagram, you are defining the order in which the records are fetched. The order is identified by an order indicator, located next to the record name in the diagram.
For example, examine this ordering of records in a Business Record diagram:The records would be fetched in this order:
- Record1 (Master)
- Record3 - all relevant rows are read for Record3 prior to moving on.
- Record4 - all relevant rows are read for Record4 prior to moving on.
- Record2 - all relevant rows are read.
In this next example,
one of the child records has its own children, and those children also have an order defined: The records would be fetched in this order:
- Record1 (Master)
- Record3 - all relevant rows are read for Record3 prior to moving on.
- Record4 - With each Record4, the child records are also fetched.
- Record6 - All relevant rows are fetched prior to moving on.
- Record5 - All relevant rows are fetched before the next Record4 is fetched.
- Record2 - all relevant rows are fetched.