Rockwell Automation 9307 FactoryTalk EnergyMetrix User Manual

Page 227

Advertising
background image

9

ReportsPlus

227

The illustration provides an example of how the Report.Groups and Report.NestedGroups
collections are populated. In the example, Sub group 3a may be addressed
Report.Group(4) or Report.NestedGroup(2).Group(0).

Select By: Groups and Meters

Select By: Groups and Meters populates the Report.Groups and Report.NestedGroups
collections (and child groups) in exactly the same way as Select By: Groups. However,
only the selected meters in each selected group are included in that groups group.Meters
collection.

Meters may be selected that are not contained in selected groups. These meters become
members of the Report.Meters collection (the Report.Meters collection is empty in Select
By: Groups mode).

Accessing Groups and Meters in the MPR Script

In practice, a For Each…Next construct is used in MPR scripting to address all selected
groups and meters. Using nested groups requires recursion to traverse all selected child
groups. See the example in the

NestedGroups Collection

topic.

Index numbers for the Report.Groups and Meters collections are
assigned in the same order as the expanded tree appears in the
selection window, sorted from top to bottom.

Advertising