value help in adobe interactive forms

Upload: bharathsajja

Post on 14-Apr-2018

220 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/30/2019 Value Help in Adobe Interactive Forms

    1/5

    Value help in Adobe interactive forms

    By Sanjeeva Reddy Gujjula, YASH Technologies

    Introduction

    Value help in application is useful to avoid typos and to check list of possible values when user dont know exact value for the input field. We can incorporatethese value helps in Adobe interactive forms both for online and offline scenarios. This document explains step by step procedure for adding two types ofvalue helps in Adobe interactive forms. This document considering integrating adobe forms in WebDynpro ABAP with integrated using Zero ClientInstallation (ZCI).

    Standard Value help Static Value help/Context based value help

    Standard Value Help

    Here Standard value help means F4 help available in SAP; we can add this feature in adobe interactive forms. Once user clicks on drop down button itfetches value help form SAP and displays in the screen. Once user chooses one of the suitable entries that input field will get updated with the selectedentry.

    Procedure:

    Step1: In layout Choose UI element Value Help Drop-down List from WebDynpro Native Controls of Library Palette.

    Step2: Go to Object Palette and in Binding TAB update Default Binding with corresponding field by pressing Arrow and choose form the Interactive FromContext.

  • 7/30/2019 Value Help in Adobe Interactive Forms

    2/5

    Step3: Pop-up screen will come to confirm the update of field properties. Click OK. If you do so all properties will be updated at the same time the UI elementwill change to normal input Field. You need to change this to Drop-down list in Object Palette->Field Tab as shown below.

    Step4: Now you are done with implementing Standard value help for you adobe interactive form. Save and activate your form and test application. Now youcan see Standard value help once you click drop-down link on adobe form.

  • 7/30/2019 Value Help in Adobe Interactive Forms

    3/5

    This is simple and Zero coding required in application.

    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 valuehelp 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, weneed 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 contextnode.

    Sample Coding:

    * Create internal table

    types: begin of x_country ,land1 type t005-land1,

    end of x_country.data: t_country type STANDARD TABLE OF x_country.

    * Select Dataselect land1

    from t005into 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 to via lead selectionlo_nd_adobedata =

    http://saptechnical.com/Tutorials/AdobeForms/Valuehelp/Index.htmhttp://saptechnical.com/Tutorials/AdobeForms/Valuehelp/Index.htmhttp://saptechnical.com/Tutorials/AdobeForms/Valuehelp/Index.htmhttp://saptechnical.com/Tutorials/AdobeForms/Valuehelp/Index.htm
  • 7/30/2019 Value Help in Adobe Interactive Forms

    4/5

    wd_context->get_child_node( name = wd_this->wdctx_adobedata ).* navigate from to via lead selectionlo_nd_countrynode =

    lo_nd_adobedata->get_child_node( name = wd_this->wdctx_countrynode ).* Bind internal table to contextCALL METHOD lo_nd_countrynode->bind_tableEXPORTING

    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 Textand Item Value as shown below and Press OK.

    Items-> Context node

  • 7/30/2019 Value Help in Adobe Interactive Forms

    5/5

    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. Nowyou 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