Dear visitor, despite all the challenges, our team continues operating at full speed.

We are ready to help with any questions you may have. Please fill out this quick form and we'll get back to you.

Fill the form
Get Free Trial

How to set default value for format cells popup?

Answered
Artem asked on February 27, 2020

Dear Flexmonster team,

Is it possible to make “All Values” a default value for format cells popup instead of “Choose value”?
And if not – are you planning to add this feature?
Thanks in advance.

1 answer

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster February 27, 2020

Hello, Artem,
 
Thank you for writing to us.
 
We would like to kindly inform you that the Toolbar is an opened to modify addition to Flexmonster. You are welcome to change its source code in the way it fits your needs.
 
In order to implement the described functionality, we suggest following the steps below:

  1. Open the flexmonster/toolbar/flexmonster.toolbar.js file.
  2. Modify the lines 1436-1438 as shown in the following code snippet:
    Before:
     1436 valuesDropDown.options[0] = new Option(Labels.choose_value, "empty");
     1437 valuesDropDown.options[0].disabled = true;
     1438 valuesDropDown.options[1] = new Option(Labels.all_values, "");
    

    After:

          valuesDropDown.options[0] = new Option(Labels.choose_value, "empty");
          valuesDropDown.options[0].disabled = true;
     1436 valuesDropDown.options[0] = new Option(Labels.all_values, "");
    
  3. Modify the line 1549 as following:
    Before:
     1549 valuesDropDown.options[i + 2] = new Option(measures[i].name, measures[i].uniqueName);
    

    After:

     1549 valuesDropDown.options[i + 1] = new Option(measures[i].name, measures[i].uniqueName);
    

 
The described modification removes the “Choose Value” tab from the drop-down menu and set the “All Values” button selected by default.
 
In order to get information about how to save the Toolbar modifications after updates, we recommend referring to the following forum thread.
 
We sure hope it works for you.
 
Please let us know if any additional questions on this point appear.
 
Kind regards,
Illia

Please login or Register to Submit Answer