cancel
Showing results for 
Search instead for 
Did you mean: 

how to populate values in to dropdown in table ui element

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

HI

Hi iam new to webdynpro .can u please explain me SUPPLY function with an example.

Thanks

Raju

Former Member
0 Kudos

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

Former Member
0 Kudos

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:-

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60086bd5-9301-2b10-6f97-a14366a5...

Hope this may help you...

Deepak