on 09-22-2008 5:30 AM
Hi,
according to my scenario i have atable with five records ...andi have acolumn name DATE and it contains 5 dropdowns with some values i.e dates from jan 1 2008-dec 31 2008.user needs to select only those values which are in dropdown. can u tell me the code to populate values in to dropdown in table UI element.
Thanks
Raju
Hi,
you can go for two drop downs like DropDown by Key or Drop Down by Index as per requirment.
Create context Node for the table UI, in that one will be for ur drop down. Create element for the Context node and add thses to the conetxt.
Code example for DropDownBy Key:-
ISimpleType simpleType = wdContext .nodeProjEstiTable().getNodeInfo()
.getAttribute("projphasname") .getModifiableSimpleType();
IModifiableSimpleValueSet svs1 =
simpleType.getSVServices().getModifiableSimpleValueSet();
svs1.clear();
for (int j = 0; j < projphasname.length; j++) {
svs1.put(projphasname[j][1], projphasname[j][1]);
}
for DropDownBy Index you can work in normal way means try to create element for the respective context attribute.
Hope this may help you...
Deepak
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI
Hi iam new to webdynpro .can u please explain me SUPPLY function with an example.
Thanks
Raju
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
refer the below links,
Supply Functions :
http://help.sap.com/saphelp_nw70/helpdata/EN/4c/40ba420db1cc66e10000000a1550b0/frameset.htm
Supply functions in WebDynpro
Regards,
ramesh
Hi,
there is article in the SDN on the Supply and dispose function.
They are mainly dealing the with Singleton non singelton property of the node.
here is the link for that:-
Hope this may help you...
Deepak
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.