on ‎2016 Nov 18 7:28 AM
Hi,
I want to select value of the datasource,so I was use a datasource banding to a dropdown.
And I want to set a default value,like this code:
var d1=APPLICATION.getInfo().dateNowInternalFormat.substring(0,4); DROPDOWN_1.setSelectedValue(d1);
Its should selected default value that the present year,but false.
Anyone can help me?thanks!
Request clarification before answering.
Hi Jing Zhang,
When binding the dimension to dropdown. There will be property as follow filter state,if it is given value as true your code will not work.So you make it false then your code will work.
Because follow filter state allow the dropdown to capture filter value of assigned data source and make it selected. It ignores Setselectedvalue() function.
Thanks,
Poovarasan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hey,Poovarasan Boopalan.
I don't know how to express my thanks.This is a very important detail ,and it's easy to ignore.
Thanks,
Jing
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.