cancel
Showing results for 
Search instead for 
Did you mean: 

Problem Binding to Interactive Adobe Drop Down from ABAP Web Dynpro

lavaughn_crews
Explorer
0 Kudos

I'm having a problem Binding data to an Interactive Adobe from UI Element (Drop Down List) from ABAP Web Dynpro

I'm using ABAP Web Dynpro WAS7 SP7 (SAPKB70007)

SAPGUI with Adobe Livecycle Designer 7

I've created an Adobe Interactive Form with a drop down list. I've tried standard and enumerated and value help.

My context node is defined as 0:n 0:n singleton.

I use the following code in the WDDOINIT method to bind to the context node:

data:

Node_Servicetype type ref to If_Wd_Context_Node,

Elem_Servicetype type ref to If_Wd_Context_Element,

Stru_Servicetype type If_Mainview=>Element_Servicetype .

  • navigate from <CONTEXT> to <SERVICETYPE> via lead selection

Node_Servicetype = wd_Context->get_Child_Node( Name = IF_MAINVIEW=>wdctx_Servicetype ).

DATA: ITAB_TYPE type standard table of yservice_type,

wa_type like line of ITAB_TYPE,

ADS_TAB_TYPE type if_mainview=>elements_SERVICETYPE,

ADS_TAB_TYPE_LINE like line of ADS_TAB_TYPE.

SELECT service_type INTO TABLE ADS_TAB_TYPE FROM YSERVICE_TYPE.

ADS_TAB_TYPE_LINE-TYPEOFSERVICE = 'TYPE 1'.

append ADS_TAB_TYPE_LINE to ADS_TAB_TYPE.

ADS_TAB_TYPE_LINE-TYPEOFSERVICE = 'TYPE 2'.

append ADS_TAB_TYPE_LINE to ADS_TAB_TYPE.

Node_ServiceTYPE->bind_table( ADS_TAB_TYPE ).

RESULT: Nothing is in the dropdown.

Please respond if you have a suggestion that may help.

Regards,

Lavaughn

Accepted Solutions (0)

Answers (3)

Answers (3)

amolgupta
Active Contributor
0 Kudos

hi,

to populate the dropdown list you can do it...

1). manually or

2). by code (i work in Java, there must be ABAP equiavalent)

1). manually go to interactive form->edit

go to Object tab->field tab ->

you must see something like

List Items :

Text + x

click on the green + sign...

it promps you to type. type in the value press enter... and so on...

2) by Code...

//set up contents of a drop down list dynamically...

IWDAttributeInfo countryInfo = wdContext.nodeTravelData().getNodeInfo().

getAttributeInfo().getAttribute("DestinationCountry");

ISimpleTypeModifiable countryType =

countryInfo.getModifiableSimpleType();

IModifiableSimpleValueSet countryValueSet =

countryType.getSVServices().getModifiableSimpleValueSet();

countryValueSet.put("1","Germany");

countryValueSet.put("2","UK");

this code is written in wdDoInit() method.

PLUS you have to create simple types for it.

(Dictionaries->Local Dictionary->Simple types)

the context attribute which will be used for drop down should be mapped to this Simple type...

(ContextAttribute->properties->type)

Further make cardinality of node= 1..1,, that should be fine.

hope this helps.

regards,

-amol gupta

former_member191062
Active Contributor
0 Kudos

Hello,

this is Java and has nothing to do, with ABAP.

You can find an ABAP example at:

/people/dezso.pap/blog/2007/07/12/using-ddlb-in-interactive-forms-in-webdynpro-for-abap

Best regards,

Dezso

markus_meisl
Active Contributor
0 Kudos

Hi Lavaughn,

did you use the standard Library drop-down UI element or the Web-Dynpro-specific one? (I hope you can see the Web Dynpro tab under Library in Designer.)

To enable the communication between Adobe Reader and Web Dynpro, the latter requires the specific drop-down list (and other) elements on the Web Dynpro tab. They contain specific scripting.

Cheers,

Markus

Former Member
0 Kudos

Hi Lavaughn,

Do you have any doc about the IA form for WD4A?

I create a component for IA form, and set the templatesource of the IA control, but only the nodes from PDF forms are created auto in context. there are no attributes created under the nodes. so I should create the nodes by myself or what should I do?

I go through the online docs, but too brief.

could you show me?

thanks and best regards

Gang