Show TOC

IF_WD_IACTIVE_FORM_METHOD_HNDLLocate this document in the navigation structure

Use

Some properties of the InteractiveForm UI element are not set using the UI element properties but instead using method handler IF_WD_IACTIVE_FORM_METHOD_HNDL.

Example of Access in WDDOMODIFYVIEW

            DATA l_interactive_form TYPE REF TO cl_wd_interactive_form.
l_interactive_form ?= view->get_element( `MY_INTERACTIVE_FORM` ).
DATA l_ifba_hndl TYPE REF TO if_wd_iactive_form_method_hndl.
l_ifba_hndl ?= l_interactive_form->_method_handler.

         
Caution

Methods of IF_WD_IACTIVE_FORM_METHOD_HNDL that are not listed here are not released.

Showing and Hiding the Adobe Reader Toolbar

Here you can use the methods SET_HIDE_TOOLBARS or GET_HIDE_TOOLBARS to display the toolbar or to check the display status.

l_ifba_hndl->set_hide_toolbars( abap_true ).

Attachments to Interactive Forms

You can use methods SET_ATTACHMENT and GET_ATTACHMENT to process attachments to interactive forms.

You can extract attachments from interactive forms as follows:

               DATA l_ifba TYPE REF TO cl_wd_interactive_form.
l_ifba ?= view->get_element( `INTERACTIVE_FORM` ).

               DATA l_form_method_handler TYPE REF TO IF_WD_IACTIVE_FORM_METHOD_HNDL.
l_form_method_handler ?= l_ifba->_method_handler.

               DATA l_attachments TYPE tfpattachments.
l_attachments = l_form_method_handler->get_attachments( ).

            

To append an attachment to a form use:

l_form_method_handler->set_attachments( l_attachments ).

Dynamic Tables in Interactive Forms

Using method SET_DYNAMIC_TABLES_ENABLED you can forward dynamic tables in an interactive form as subforms to the Web Dynpro ABAP framework.

               DATA l_interactive_form TYPE REF TO cl_wd_interactive_form.
  l_interactive_form ?= view->get_element( `INTERACTIVE_FORM` ). 
               DATA l_ifba_hndl TYPE REF TO if_wd_iactive_form_method_hndl.
  l_ifba_hndl ?= l_interactive_form->_method_handler.
  l_ifba_hndl->set_dynamic_tables_enabled( abap_true ).

            

For more information, see Dynamic Tables in Interactive Forms .

Display of the Adobe Reader Navigation Panel and the Print Button

You can use the following methods to trigger the initial display and hiding of the navigation panels and the initial display and hiding of the print button of the Adobe-Reader.

  • SET_HIDE_NAVIGATION_PANEL( )

  • GET_HIDE_NAVIGATION_PANEL( )

  • SET_DISABLE_PRINT_BUTTON( )

  • GET_DISABLE_PRINT_BUTTON( )

Note

Note that the setter methods must be called before the InteractiveForm UI element is displayed for the first time . Changes made after this point have no affect on the Adobe Reader UI.

The getter methods return the initially set state and not the current state of the Adobe Reader UI.

During a session, the user can continue to display and hide the toolbar and navigation panel using the relevant Adobe Reader functions.

Example

You can find an example of these functions in the system in the Web Dynpro ABAP demo application DEMO_IFBA_TOOLBARS.

More Information