on 06-22-2006 11:04 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.