cancel
Showing results for 
Search instead for 
Did you mean: 

Reg: Dropdown in adobe form from webdynpro

Former Member
0 Kudos

hi,

Iam working on adobe form which is embeded in Webdynpro component.

I placed a dropdown field on the adobe form.

Now my question : I want to pick the the values from a ztable and pass these values to dropdown field on the adobe form.

Can anyone tell me how to send values from a ztable to dropdown field on the adobe form??

Reagrds

Arjun

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

In AdobeInteractive form creation ,if we want any

drop down boxes that will exist in the

Librery table --under this the Custom tabstrip U will get the DropDown boxe element,

By Drag and Drop the DropDown Element from tabstrip you get a DroopDown Box.In that what ever you want , the text will be add to the DropDownBox by writting the text u want unde the ObjectTabStrip -in that Field TabStripin that you will find the ListItem in that You add content what you want

Former Member
0 Kudos

HI,

Thx for ur answer.

but when u select LIST ITEMS ..I got a pop up window for binding..Here I have ITEMS

ITEMS TEXT AND

ITEMS VALUE .

And these three are in disable mode.....So iam unable to move any furthur from here?

Any Idea?

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

The DropDown within the Adobe Form works much like the DDLB By Key in Web Dynpro itself.

http://help.sap.com/saphelp_nw70/helpdata/EN/42/fb2fe500553ee4e10000000a1553f7/frameset.htm

The values of the EnumeratedDropDownList are taken from the VALUE_SET of the bound Web Dynpro attribute. If the type of the attribute is DDIC (ABAP Dictionary) and domain fixed values are defined, these are shown. You can also program the VALUE_SET to fill with values at runtime.

You fill the VALUE_SET of a context attribute exactly as you do for a DDLBByKey:

http://help.sap.com/saphelp_nw70/helpdata/EN/bb/69b441b0133531e10000000a155106/frameset.htm

Here is some sample code for using the IF_WD_CONTEXT_NODE_INFO=>SET_ATTRIBUTE_VALUE_SET method:

data l_activities type zpm_activity_typ_tbl.
  l_activities = wd_assist->read_all_activities( ).
  data lt_valueset type wdr_context_attr_value_list.
  field-symbols <wa_act> like line of l_activities.
  field-symbols <wa_vs>  like line of lt_valueset.

  loop at l_activities assigning <wa_act>.
    append initial line to lt_valueset assigning <wa_vs>.
    <wa_vs>-value = <wa_act>-activity_type.
    <wa_vs>-text  = <wa_act>-activity_desc.
  endloop.



  data lo_nd_meeting type ref to if_wd_context_node.
* navigate from <CONTEXT> to <MEETING> via lead selection
  lo_nd_meeting = wd_context->get_child_node( name = wd_this->wdctx_meeting ).
  data lo_node_info type ref to if_wd_context_node_info.
  lo_node_info = lo_nd_meeting->get_node_info( ).
  lo_node_info->set_attribute_value_set(
     name = 'ACTIVITY_TYPE'
     value_set = lt_valueset ).

Former Member
0 Kudos

hi,

Thx for your answer.

I know how to use a Dropdown list in WebDynpro.

But my question is ..after placing the Dropdownlist element onto the form from WebNative libaray ...

How to bind the DropDownlist to Context Attributes?

You said "The values of the EnumeratedDropDownList are taken from the VALUE_SET of the bound Web Dynpro attribute ".

I need How to bind the DropDownlist to Context Attributes?

Regrds

Arjun

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Those exact instructions are provided in the first help link that I listed:

Procedure

1. Place the Adobe UI element as usual on the template and bind it to the context in the data view.

2. Change the element value binding.

a. ChooseElement Values.

On the following popup the following entry for Objects appears below the group title Binding:

$record.sap-vhlist.REPLACE_THIS.item[*]

b. Replace REPLACE_THIS with the SOM expression of the data binding.

You can get this value from the Object menu. This is the value that appears after $record in the standard binding. Example Node.DVH3.

Note that you escape each point with \.

Example of a correct value: $record.sap-vhlist.Node\.DVH3.item[*]

Former Member
0 Kudos

HI,

I really thank for your answer.

I already read and tried from Sap help.

Iam using Adobe 8.0 .

The Procedure described is entirely different .

for ex as you said : $record.sap-vhlist.REPLACE_THIS.item[*]

this is not at all appearing when I bind.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

In Adobe 8 it is even easier since you don't have the REPLACE_THIS stuff to deal with. The popup allows you to build the entire binding string.

Former Member
0 Kudos

HI,

thats really great .

yes..I got the pop to bind when I select LIST ITEMS .

I got a pop up window for binding..Here I have

ITEMS

ITEMS TEXT AND

ITEMS VALUE .

And these three are in disable mode.....So iam unable to move any furthur from here?

Any Idea?

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Like I said, it builds the whole string for you now. Now the Popup just shows you the elements used to build the string. The binding itself controls the connection:

http://www.flickr.com/photos/tjung/2886927059/