on 01-26-2011 5:34 PM
Hi,
I would like to pass the values from dropdown box to variable in my IP application. These variables are used to restrict the char values in filters of my application. When I change the dropdown box, my variable value should automatically change. My dropdown box uses the Char/struc member (Characteristic_selection) as data binding because I am doing the cascading dropdown boxes for my selection. I can not use variable as data binding for my dropdown box and I know this will work if I use the variable selection as data binding for drop down box.
Now, the dropdown value is never stored in the variable, I don't know what I'm doing wrong.
So, I need to know:
- Variable settings
- Dropdown settings
- Dataprovider sttings
I am using WAD 7.0
Thanks!
Hi Sebastian,
I assume you have bound your DropDown webitems to Data Providers & are using Char/Struc Member (Characteristic_Selection) for data binding. If you don't wish to alter your DropDown / Data Provider settings, you can use a ButtonGroup webitem & have a Command that passes the DropDown selections to your Query Variables as follows:-
1)Drag a ButtonGroup webitem onto your template
2)On the Action of the ButtonGroup webitem, select Command via Command Wizard & choose Command SET_VARIABLES_STATE from Commands for Web Templates
3)Choose the first Query Variable. Variable Type -> SELECTION_BINDING, Binding Type -> DATA_PROVIDER_CHARACTERISTIC, Data Provider -> choose the Data Provider bound to your DropDown webitem that corresponds to the Variable chosen & its corresponding Characteristic under Characteristic
4)Repeat step 3 for the remainder of your Query Variables
5)Run your web template & check if the DropDown selections are being passed to your Query Variables on click of the Button
--Priya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sebastian,
Ok if I understand right, you have 2 DropDown webitems - on selection of one you would want the 2nd to filter which is cascaded action on DropDowns; and on selection of each DropDown you would want to pass the selections to the main query variables. Check if the below settings work;
DropDown 1 -> DP1 (perhaps on a master IO), Characteristic -> say C1, Affected Data Providers -> DP2 (DP of DropDown 2), Action -> Command via Command Wizard -> Execution Point of Time -> After Default Action, Command -> SET_SELECTION_STATE_BY_BINDING (under Data Provider Commands -> Commands for Filter Values), Data Provider Affected -> main query DP assigned to the Analysis webitem, Selection Binding -> Characteristic -> C1, Binding Type -> Variable, choose corr. query Variable
DropDown 2 -> DP2 (perhaps on a master IO), Characteristic -> say C2, Affected Data Providers -> None, Action -> Command via Command Wizard -> Execution Point of Time -> After Default Action, Command -> SET_SELECTION_STATE_BY_BINDING (under Data Provider Commands -> Commands for Filter Values), Data Provider Affected -> main query DP assigned to the Analysis webitem, Selection Binding -> Characteristic -> C2, Binding Type -> Variable, choose corr. query Variable
--Priya
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.