cancel
Showing results for 
Search instead for 
Did you mean: 

how to dropdown

Former Member
0 Kudos

hi all

i have a scenario which i have to drop down one feild, could you please send me some information(codes) regarding this, i am very new to webdynpro and have only little knowledge about it.

regards

Pradeep P N

Accepted Solutions (0)

Answers (8)

Answers (8)

Former Member
0 Kudos

Here is the link which will guide you for all the UI related issues

https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-d...

Please do give reward points if any response to your mail solves or helps you

mark it as answered if your problem is solved

regards

Pradeep B

Former Member
0 Kudos

Hi prasy,

you can refer tuturial number 8 in webdynpro tutorials .

Thanks &Regards ,

Aruna.

Former Member
0 Kudos

HI,

chk out these links

for dropdownbykey:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8b7059da-0c01-0010-e09c-9ec...

for dropdownbyindex

/people/thomas.szcs/blog/2006/07/24/basic-concepts--selection-vs-leadselection

regards,

prasy

Former Member
0 Kudos

Hi,

go thru this link u find the all the related examples do u need to display ur field based on key or index.

http://help.sap.com/saphelp_erp2005vp/helpdata/en/86/16e13d82fcfb34e10000000a114084/frameset.htm

Thanks,

Lohi.

sid_sunny
Contributor
0 Kudos

Hi Pradeep,

One helpful suggestion:

If you want some help on a UI element usage just right click it to open the help on that UI element. Believe me it helps a lot.

Regards

Sid

Former Member
0 Kudos

Hi ,

DropDownByKey provides static data in DropDown and DropDownByIndex makes it dynamic.

<b>DropDownByKey</b> : Is used when we want to use data dictionary type.For this create a dictionary of simple type in the dictionary.

Creating the Simple Type:

project>dictionaries>Data Types-->Simple Types right click and select Create Simple Type.

After entering the name and package, open and click on "enumeration" tab . Add the Value and Description to be listed in dropdown.The created simple type can be used for DropDownByKey.

Binding it to the UI element:

Create a valueattribute and change the type to the dictionary type created simple type . Finally bind the DropDownByKey UI element to the value attribute.

<b>DropDownByIndex:</b> Is used when we get the data from the back end database. Here we directly bind the DropDownByIndex UI element to the context model node attribute.

Sunitha

Former Member
0 Kudos

pradeep p,

Check the Webdyno programming examples in SDN.

check the link below for reference.

https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/91c5e990-0201-0010-4981-9b2075751d... [original link is broken]

regards

Anil Dichpally

pravesh_verma
Active Contributor
0 Kudos

Hi Pradeep,

Have a look to this Tutorial:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/internat...

In General If you want to add a Dropdown then you can simple make a dictionary object. Go to <b>Dictionaries-> Local Dictionary-> Data Types-> Simple Types -></b> [<i>Create Simple type</i>].

Now name this simple type (say: <i>dropdownkey</i>), go to the enumeration tab, add the <b>Value</b> and <b>Descriptions</b>.

In the UI elements create a <b>DropDownByKey</b>, In the context of the view add a attribute and map the datatype of this object with the newly created dictionory object (<i>dropdownkey</i>).

In the view designer go to the <b>Properties Tab</b> of the DropDownByKey UI element. There map the "<b>selectedKey</b>" property with the attribute created in the context.

Just deploy it and try to check this, you will get a drop down in the UI.

I hope this helps you.

Regards,

Pravesh

PS: Consider rewarding points if helpful or solved.