Value help in Adobe interactive forms

...Previous

Static/Context based Value Help

Instead of standard value help we can add custom value help; this can be form context of Adobe form. In this case there is need of coding. For this value help you need to have a context node with two fields one for value and another for corresponding text. As we are proceeding with WebDynpro ABAP, we need to fill this node WDINIT method of WebDynpro view or controller.

Step1: Create a context node with Value and Text. Text is optional here.

Step2: Select corresponding Values and texts into one internal table or populate internal table with possible values and bind that internal table to context node.

Sample Coding:

* Create internal table

  typesbegin of x_country ,
           land1 type t005-land1,
         end of x_country.
  data: t_country type STANDARD TABLE OF x_country.
* Select Data
  select land1
    from t005
    into table t_country.

  DATA lo_nd_adobedata TYPE REF TO if_wd_context_node.
  DATA lo_nd_countrynode TYPE REF TO if_wd_context_node.
  DATA lo_el_countrynode TYPE REF TO if_wd_context_element.
  DATA ls_countrynode TYPE wd_this->element_countrynode.
* navigate from <CONTEXT> to <ADOBEDATA> via lead selection
  lo_nd_adobedata = 

       wd_context->get_child_node( name = wd_this->wdctx_adobedata ).
* navigate from <ADOBEDATA> to <COUNTRYNODE> via lead selection
  lo_nd_countrynode = 

       lo_nd_adobedata->get_child_node( name = wd_this->wdctx_countrynode ).
* Bind internal table to context
CALL METHOD lo_nd_countrynode->bind_table
  EXPORTING
    new_items            = t_country.
 

Step3:

In Layout editor Choose field Enumerated Drop-down List form Library Palette and place on the layout

Step4: Go to Object Palette and in Field tab click List Item link as fallows.

Step5: One pop-up screen will come and there you need to set Binding properties Items, Item Text and Item Value as shown below and Press OK.

Items-> Context node

Item Text-> Text field in Context node

Item Value-> Value field in Context node

Now you are done with implementing Static/Context based value help for you adobe interactive form. Save and activate your form and test application. Now you can see Static/Context based value help once you click drop-down link on adobe form.

Comparison

 

Standard

Static

Coding Required

No

Yes

Online

Yes

Yes

Offline

Not available

Yes


Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image