How to Preserve the Selection Order of Multi-Select Parameters
Published:
Updated:
By default, Bold Reports moves selected values to the top of a multi-select parameter list, which can alter the original sorting order. This article explains how to use a custom attribute to prevent this behavior and preserve the original order of parameter values, providing a more intuitive user experience.
Step-by-Step Instructions
Step 1: Access the Custom Attributes Settings
- Click the Settings icon in the configuration panel to open the Properties pane.
- Expand the Miscellaneous section.
- Click Set Attributes next to the Custom Attributes property.
Step 2: Configure the Custom Attribute
- In the Custom Attributes dialog box, click Add.
- Enter
enableSelectionOrderin the Name field. - Set the Value field to
false. - Click OK to save the custom attribute.
Note: Setting
enableSelectionOrdertofalseprevents selected values from being moved to the top of the list and preserves their original order.
Step 3: Preview and Verify the Behavior
- Click Preview in the top toolbar.
- Open the multi-select parameter dropdown.
- Verify that the selected values remain in their original positions within the list instead of being grouped at the top.
Download a sample report and embedded application demonstrating this configuration here.