Articles in this section

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

  1. Click the Settings icon in the configuration panel to open the Properties pane.
  2. Expand the Miscellaneous section.
  3. Click Set Attributes next to the Custom Attributes property.
    Accessing Custom Attributes in Bold Reports

Step 2: Configure the Custom Attribute

  1. In the Custom Attributes dialog box, click Add.
  2. Enter enableSelectionOrder in the Name field.
  3. Set the Value field to false.
  4. Click OK to save the custom attribute.
    Setting enableSelectionOrder custom attribute

Note: Setting enableSelectionOrder to false prevents selected values from being moved to the top of the list and preserves their original order.

Step 3: Preview and Verify the Behavior

  1. Click Preview in the top toolbar.
  2. Open the multi-select parameter dropdown.
  3. Verify that the selected values remain in their original positions within the list instead of being grouped at the top.
    Retained selection order in parameter list

Download a sample report and embedded application demonstrating this configuration here.

Related Articles

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied