Ordering Multiple Items/Groups
Prerequisites:
- Reporting installation with the Examples feature
- MS SQL server with AdventureWorks
The examples are located in (Replace: Reporting X with your installation version)
- Standalone Report Designer -
%PROGRAMFILES(x86)%\Reporting X\Report Designer\Examples
- Visual Studio Integrated Designer –
%PROGRAMFILES(x86)%\Reporting X\Examples\CSharp\
Add an interactive sorting button to a parent for all targets item to enable a user to click the item adorner and sort the target data items/groups by the selected expression.
- Open in report design view the Dashboard example report.
- Select item to which you want to add an interactive sorting button. The selected item should be parent to the target groups/data items. For this how to use the report header section text box with Quaterly Sales text.
- From Properties window open the Actions editor.
- Select Sorting option.
- Click Edit sort targets button to open Edit Sorting Action targets editor.
- Click New to add a new target.
- Select the target group/data item name from the drop down. For this report use SalesPersonFullName (TableGroup).
- Click OK.
- Click New to add a new target.
- Select the StoreName (TableGroup).
- Click OK.
- In Sort expressions drop-down select the field or write expression for which you are defining a sorting action. In this case, you have to use the
=Sum(Fields.LineTotal)
expression. Specifying a sort expression is required. - Click OK.
To verify the sorting action, preview the report, and then click the interactive sorting button.