on 01-27-2009 1:15 PM
Hi in my application i have dropdownby index with label State.In that dropdown i need to populate all the states of our country like..Tamilnadu,andhraprdesh,Gujrath,Maharastra,Delhi....,and by default it should be populated with Select State ,can u please tell me the code..
Thanks
Kishore
dsds
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
1.in ur context create a context value node----eg: MyStates
2.under that value node create a value attribute--eg: values.
3.set the cardinality of "MyStates" value node to 0:n
4.texts property of ur dropdown by index ui element shld be bound to the value attr (values).
5.in the wdDoInit() method of ur view that has this dropdownbyindex ui element use the follwoing code,
String [ ] states_array = new String [ ] {"tn", "mp", "ap", "karnataka"};
List list_for_node_elem = new ArrayList();
for (int i = 0; i <states_array.length; ++i)
{
IPrivateMyView.IMyStatesElement elem = wdContext.createMyStatesElement();
MyStatesElement.setValues(states_array [i ] );
list_for_node_elem.add(MyStatesElement);
}
wdContext.nodeMyStates().bind(list_fornode_elem);
wdContext.nodeMyStates().setLeadSelection(1);
Regards
Jayapriya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please go through this link
http://help.sap.com/saphelp_nw70/helpdata/EN/4a/8613e41629344194e4f40393740d51/frameset.htm
if you are using the rfc to populate the DropDownByIndex then just bind the output attribute to texts property of the dropdown and execute the rfc in DoInit method of the view.
Regards,
ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.