Last week I was searching for a way to disable the Toolbar of the Adobe Reader in a Webdynpro application. I needed this when working for a NL 4 Business customer

SAP provided a way in the Form but that did not seem to work in Livecylce 8.0.

After a lot of searching on the Net and trying a lot of code I finally found a way to Hide / Disable the Toolbar of the Adobe Reader in the SAP Webdynpro application.

It is actually very easy if you know it. ;-)

You can disable the ToolBar of Interactive Form by writing a few lines of Code in WDDOMODIFY Method of the used View.

Add the Following Lines of Code in the WDDOMODIFY Method in the view.

DATA: LR_INTERACTIVE_FORM type ref to CL_WD_INTERACTIVE_FORM,
 LR_METHOD_HANDLER type ref to IF_WD_IACTIVE_FORM_METHOD_HNDL.
LR_INTERACTIVE_FORM ?= VIEW->GET_ELEMENT( 'INTERACTIVE_FORM_UI_ELEMENT_NAME' ).
LR_METHOD_HANDLER ?= LR_INTERACTIVE_FORM->_METHOD_HANDLER.
LR_METHOD_HANDLER->set_hide_toolbars( abap_true ).

The user can reactivate the Adobe Acrobat Reader toolbar by pressing F8.

About the author

Theo van der Sluijs Theo van der Sluijs (1975) is Lead Developer at Unitrust BV. He is also creator of "I Am Bored So I blog" / Gebruikmaar.nl / vanderSluijs.nl. He is a member of the Board of the Dutch Flex Usergroup and Goesweb.net. With his quote "Never Give Up, Never Surrender" (Actually stolen from Galaxy Quest) he fights his way through the day. Connect with him on Twitter.

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)

Leave a Reply

QR Code
Donate

Like the information on my site? Please donate for a cup of coffee, or give a bit more for a cappuccino.

Twitter
Get Adobe Flash playerPlugin by wpburn.com wordpress themes