on 02-11-2016 2:07 AM
I am doing the following:
DS_4.setvariableValueext("group",value);
ds_4.loaddatasource();
dropdown_1.setItems(ds_4.getmemberlist("customer",memberpresentation.external_key,memberdisplay.text,1000));
In the dropdown I get all the customers instead of just the customers from the group in the variable selection.
When I add a crosstab for the dataset Ds_4, the data is restricted to the group. I am not sure if I have a misunderstanding of how this works or missing something. I am on version 1.6.
Any help is appreciated
John Coudriet
Hello,
setVariable should always be called after loadDatasource, it should correct your issue.
If you're on a bex query (which I doubt), you want to check the acces to members and use posted values.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I needed to set the filter to use posted values.
Thanks Frank & Adlin for your help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi John,
I would suggest you follow the below to achieve this
ds_4.loaddatasource();
ds_4.setvariablevalueext("group", value);
dropwdown_1.setItems(ds_4.getmemberlist("customer", memberpresentation.external_key,memberdisplay.text,1000);
if it doesn't work, try to use the function ds_4.setvariablevalue(group,value);
I hope it helps.
/ad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.