Select multiple rows of data
Select multiple rows of data
Technologies > User Interface Add-Ins > Parts for Reports > Selecting Multiple Rows
Display a checkbox for each row that allows the user to select multiple rows of data in a report view. This feature is useful if you want to create a view action that works on multiple records, such as an action that will move an entire list of employees in one step. The checkboxes will appear to the left of each grid row.
<panel type="grid" multipleSelectionEnabled="true" ... >
Commands defined within these actions can also operate on the multiple
selected rows of the report. This example displays selected records in a new window:
<action id="showReport">
<title>Show Selected Report</title>
<command type="openDialog" viewName="ab-ex-report-grid-baseline.axvw"/>
</action>
If the multiple-selection is enabled, panel-level commands automatically
apply primary key values of all selected records to their targets.
To prevent the application of the multiple-selection restriction to a target, such as for an Add New panel button, set the
applyMultipleSelectionRestriction
attribute to
false
. Because
applyParentRestriction
is still set to
true
by default, any panel restrictions will still be applied to the target:
<action>
<title>Add New</title>
<command type="openDialog" viewName="ab-ex-form-baseline.axvw" newRecord="true"
applyMultipleSelectionRestriction="false"/>
</action>
Command Targets and Restrictions