cancel
Showing results for 
Search instead for 
Did you mean: 

Drop Down List Within Dynamic Table for Adobe Form

john_lee7
Participant
0 Kudos

Hi.

I am trying to add drop down list field within dynamic table.

I am able to add default value to text field of dynamice table, but I am not sure how to add values to drop down list field.

None dynamic tables, I am using WebDynproNative drop-down list and populating values in by using

set_attribute_value_set( name = 'field1' value_set = lt_value_set ).

But I am not sure how to do that with dynamic table.

I tried several ways, but no values are populated in drop down list field.

I have a feeling it has to do with index, but can't figure it out.

I am sure someone out there already done this, so please let me know if you know the answer.

Thanks for any help you can give.

John

Edited by: John Lee on Nov 24, 2008 8:45 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi John,

Create a context node A with cardinality 1..1 and in this create a context node A1 with cardinality 0..n and in this node create attributes TEXT and VALUE.

Now goto method and in that method using code wizard read the node A1.

And use the below code snippet sample in your program

*Declare the TYPES

TYPES : BEGIN OF TY_TABLE,

TEXT TYPE SOMETYPE,

VALUE TYPE SOMETYPE,

END OF TY_UOM.

*Define Internal Table and work area.

DATA : IT_TABLE TYPE STANDARD TABLE OF TY_TABLE INITIAL SIZE 0,

WA_TABLE TYPE TY_TABLE.

SELECT TEXT VALUE FROM TABLENAME INTO TABLE IT_TABLE.

lr_node_info->bind_table( IT_TABLE ).

And in the Adobe Form Layout

Go to Menu of the Adobe LiveCycle Designer:

Tools>Options..>DataBinding

In that window u just check the Show Dynamic properties Check Box.

Now for the Drop Down go the binding tab in object palette and click on the list items and there specify the text as the internal table "TEXT" field and value as internal table "VALUE" field and select the respective internal table.

Regards

Pradeep Goli

john_lee7
Participant
0 Kudos

Thanks for information, but I don't quite understand your answer.

Maybe I need to explain little more detail on my issue.

Within Adobe form, I have a table layout.

In that table, I have 5 fields, three of them are text fields and two need to be drop down list.

And table is dynamic table.

I think I am able to create everything OK in Adobe form.

In Web Dynpro, initially, I want to populate two drop down list with two different set of data (for index = 1) and as user clicks on 'ADD' button and add new row, I want these set of data to populate two drop down list fields.

How do I code in WebDypro to populate initial set of data to two drop down list?

Thanks.

John

Former Member
0 Kudos

Hi John,

You mean to say that for Row 1, Row 2, Row3 and so on, the drop down list values differ. Is it correct?

john_lee7
Participant
0 Kudos

I am sorry. i am confusing you.

Each row will have five fields, two being drop down list fields.

Two drop down list will have different list, but will have same list for each row,

meaning row1 dropdown field 1 has same list as row2 dropdown field 1.

It is just user can select different one from same list per row.

I can assign default value to an attribute to a text field of any particular row, but

I just can't assign list of values to an attribute.

I can use set_attribute_value_set for non table attribute field, but can't find a way to

set in a drop down list field of dynamic table.

Please understand my ignorance of not understanding your inital answer, as I am still pretty new to SAP world.

Thanks.

Edited by: John Lee on Nov 25, 2008 6:53 PM