on 09-25-2008 6:27 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 ).
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
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[*]
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:
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.