Skip to Content

Dropdown change displayed selection value

Hello all,

I have a strange issue and maybe someone of you could help me.

In one of my dashboard views I have a chart with a timeline and a dropdown with a start month.

So the user can set a start month in the dropdown. Next step, the select event set the variable in the (bex) data source to the selected value. This works fine.

Additional Information: To make sure the user can go back to the old value, dropdown an timeline use different queries (otherwise the variable would restrict my dropdown values, too).

The issue is, that after the variable set the displays value is wrong.

For example:

User select the 01.2015 from the dropdown menu. So the diagram restrict the values (because of the variable) to an interval from 01.2015 to current month. (Until here, everything is fine.) But then the dropdown switch the value to the first value of the dropdown list (without calling select event).

Has someone an idea how to display the correct selected value in the drop down or how to stop the second selection switch?

Regards

Severin

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Nov 26, 2015 at 01:56 PM

    I have solved the issue. The issue occurs because of data binding. So I have removed the data binding and moved the item assignment into the script (DD.setItem).

    Because of this, the DD will not refresh every time I change a variable and the selection works.

    In addition: In this case of implementation, the DD.setSelectedValue() method works, too.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 03, 2015 at 11:22 AM

    Hello Severin - would you please share which version of Design Studio and which SP you are using; it would also be helpful to the community if you could share screen shots using the camera icon

    Add comment
    10|10000 characters needed characters exceeded

    • Unfortunately this does not work -.- . So I have tried the following code, without positive result.

      1. var selectedValue= DD_TIMEFROM.getSelectedValue();
      2. DS_1.setVariableValue("variableName", selectedValue);
      3. DD_TIMEFROM.setSelectedValue(selectedValue);

      So the issue by this script is, that the 3. line command do not wait until command 2 is finished. Therefore the variable change apparently reset the value of the dropdown list after the dropdown value is set.

      Regards

      Severin