cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Dropdown

Former Member
0 Kudos

Hi All,

I intend to get a column from a table as a dropdown in my WebDynPro form.

Can someone tell me how to proceed.

Regards

Nikhil Bansal

Accepted Solutions (1)

Accepted Solutions (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi Nikhil

Right Click on your RootUIElementContainer and choose. Apply Template..

In the next step choose Table,

In the next step Select your Context

in the next step you can see the summary there you can change your

columns from Textviews to Dropdowns

Regards

Abhimanyu L

Former Member
0 Kudos

Hi Abhi,

Thanks for the input.

I changed the column from Textview to DropDownByKey. However, when I am running the application then I don't see anything in the dropdown.

Do I have to change or add any code.

Regards

Nikhil Bansal

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi Nikhil

You have to add a value set to your Context Attribute where it is binded.

ISimpleTypeModifiable myType=wdContext.getModifiableTypeOf("<Attribute>");

//Set allowed values for this data type

IModifiableSimpleValueSet values=myType.getSVServices().getModifiableSimpleValueSet();

values.put("0","January");

values.put("1","February");

values.put("2","March");

values.put("3","April");

values.put("4","May");

values.put("5","June");

values.put("6","July");

values.put("7","August");

values.put("8","September");

values.put("9","October");

values.put("10","November");

values.put("11","December");

Regards

Abhimanyu L

Former Member
0 Kudos

Hi Abhi,

Thanks a lot. My problem is solved.

Regards

Nikhil Bansal

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

This is simple

When you create the table From the template there after selecting ur column names in the template wizard u found the option as DropdownbyIndex and click finish then your output of table columns would displayed as a DDIs.

it might helps you.

Thanks,

Lohi.

Former Member
0 Kudos

Hi Nikhil,

You can create a dropdownbyIndex UI element and bind it to a context node. Then create elements for the node for each data to be displayed on the drop down.

regards

Shyam.