cancel
Showing results for 
Search instead for 
Did you mean: 

hardcode into dropdownindex

Former Member
0 Kudos

hi experts,

how do i hardcode into dropdown by index

anyhelp on this issue

-


vijay

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi vijay,

you can create a simple type in local dictionary.

give enumerated values,

i guess this will solve your problem

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi vijay,

you can create a simple type in local dictionary.

give enumerated values,

i guess this will solve your problem

Regards

Senon

Former Member
0 Kudos

hi thomas,

no i am getting values from oracle BD, how can i get that into dropdownbyindex

pls help me

-


vijai

Former Member
0 Kudos

Hi

From wherever you get the data, fill in the node to which the dropdownbyindex is attached.

IPrivate<viewname>.IVn_node ele = wdContext.create<node>Element();

ele.set<attr1>("whatever from wherever ");

ele.set<attr2>(" so on");

wdContext.node<ur node>().addElement(ele);

Make sure the node is 0..n or 1..n. Attach to the texts property. Incase of dropdownbykey use simple types.

regards

LNV

Former Member
0 Kudos

hi vijay

in the webdynpro project you can create in

dictionay->local dictionary -> simple types

create new simple type

give these values which you want to hard code as enumeration

then make your dropdown index attribute as this type

regards

senon

Former Member
0 Kudos

Sorry to interrupt this discussion, but the original poster explicitly asked about DropDownByIndex, so why do we talk about DDIC types with value set?

Armin

Former Member
0 Kudos

hi

very true. I was surprised so cross checked twice before answering!!

regards

LNV

Former Member
0 Kudos

chk it

Former Member
0 Kudos

What is "hardcode into"?

Armin

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi

code to set values for Dropdownby Key

IModifiableSimpleValueSet valueSet = wdContext.nodePersonal().getNodeInfo().getAttribute(IPublicTestComp.IPersonalElement.SPORTS).getModifiableSimpleType().getSVServices().getModifiableSimpleValueSet();

valueSet.put("CRICKET", "Cricket");

valueSet.put("BASKET", "Basket Ball");

valueSet.put("TT","Table Tennis");

Regards,

Abhimanyu L

Message was edited by:

Abhimanyu Lagishetti