Hi there,I have a scenario where there is a dropdown, whose value is getting saved in a local!var.
Now, upon selection a specific option from the single select dropdown, depending upon the value, there is another child interface which is consuming the selected local value in its ri!var throuhg which the charts are being generated.Now, If we select the value, the chart is generated rendering from the child interface.If we deselect the selected value, the chart is not getting back to the original state.I.e, it is not being selectec on deselection of a value from the dropwdown.
My goal is upon the deselection of the value, the chart should be back to its normal state, means the refresh case should be working.Any thoughts upon this?
Discussion posts and replies are publicly visible
Stefan Helzle
I am missing all relevant details.
a!localVariables( local!dropdownVal, { a!dropdownField( choiceLabels: { "1", "2", "3", "4", "5" }, choiceValues: { 1, 2, 3, 4, 5 }, value: local!dropdownVal, saveInto: local!dropdownVal, placeholder: "Test" ), rule!S_Test_Chart(val: local!dropdownVal) } )
Stefan Helzle , Please refer to this example code.
If I select a value in the dropdown field, the local local!dropdownVal will be updated.
Now, If I deselect the selected value by clicking on Placeholder i.e "Test", the value of the variable will become null again.
In line 11, by default the chart is showing all customers, and when the user selected a value, it will show a specific customer chart.
The problem is, when the initial value is being selected, the chart is generated in rule call at line 11 based upon the dropdown selection i.e the specific customer chart.
If, the value is null back again, the chart is no showing the original version as it was by default.After value being null, there is a problem of referesh.