Hiding toolbars in Interactive form element thru code

Hi all,
I am using interactive form element to embed a purely readonly pdf (but content is dynamic) since Iframes is deprecated (any other way?).
I wish to hide the toolbars, options of thumbnails etc. I added the code below to my view controller. However, it does not seem to work. All the toolbars are still showing. Did i do something wrong?
IWDPDFDocumentInteractiveFormHandler iFormHandler =
WDPDFDocumentFactory.getDocumentHandler(wdThis.wdGetAPI(),
"InteractiveForm");
IWDPDFDocumentAppearance appearance =
iFormHandler.getDocumentContext().getAppearance();
appearance.hideMenuBar(true);
appearance.hideToolBars(true);
appearance.hideWindowControl(true);
Also, the formating (fonts etc) of the pdf in the portal seems to be different from that seen in R/3 form.
Anyone?

Hi,
As the error suggests that you do not have any certificate configured in your key store which is required to authenticate the client to the ADS. You would require to install a client certificate on your Web Dynpro/Portal server that will be used to authenticate the Web Service call to ADS.
But the question is whether you need "Https" for a server to server communication (from your portal server to ADS server) ? Normally, these two servers reside in the LAN. And i suppose you are not using any of the secured functionalities of interactive form (for example, digital signature, certification etc.). I assume that you need "https" call from browser to the portal server and then from portal server to the ADS should be on http. Please confirm on that. If that is the case, then you can follow the section below to change the "protocolSchemeForADSCall" to "http" always. This is what you would need to do in the Visual Administrator where your portal/web dynpro is installed:
In Visual Administrator. Go to ->
Server -> Services -> Configuration Adapter -> webdynpro -> sap.com ->
tcwddispwda -> Propertysheet default
Then goto property sap.protocolSchemeForADSCall
This property is available after you apply SAP note 849730.
Possible values are:
- request: same protocal scheme than the request to Web Dynpro has
- https: always use https
- http: always use http
SET the value as http. This will ensure that web Dynpro to ADS communication always happens on http, rather than on https.
Should you need to install SSL based communication between the two, you would need to follow the note:
838111 > How to configure SSL for Adobe Document Services
Best Regards,
Krish

Similar Messages

  • Hiding toolbars in Interactive form element

    Hi all,
    I am using interactive form element to embed a purely readonly pdf (but content is dynamic) since Iframes is deprecated (any other way?).
    I wish to hide the toolbars, options of  thumbnails etc. I added the code below to my view controller. However, it does not seem to work. All the toolbars are still showing. Did i do something wrong?
    IWDPDFDocumentInteractiveFormHandler iFormHandler =
    WDPDFDocumentFactory.getDocumentHandler(wdThis.wdGetAPI(),
                 "InteractiveForm");
    IWDPDFDocumentAppearance appearance =
          iFormHandler.getDocumentContext().getAppearance();
    appearance.hideMenuBar(true); 
    appearance.hideToolBars(true); 
    appearance.hideWindowControl(true); 
    TIA

    Hi,
    As the error suggests that you do not have any certificate configured in your key store which is required to authenticate the client to the ADS. You would require to install a client certificate on your Web Dynpro/Portal server that will be used to authenticate the Web Service call to ADS.
    But the question is whether you need "Https" for a server to server communication (from your portal server to ADS server) ? Normally, these two servers reside in the LAN. And i suppose you are not using any of the secured functionalities of interactive form (for example, digital signature, certification etc.). I assume that you need "https" call from browser to the portal server and then from portal server to the ADS should be on http. Please confirm on that. If that is the case, then you can follow the section below to change the "protocolSchemeForADSCall" to "http" always. This is what you would need to do in the Visual Administrator where your portal/web dynpro is installed:
    In Visual Administrator. Go to ->
    Server -> Services -> Configuration Adapter -> webdynpro -> sap.com ->
    tcwddispwda -> Propertysheet default
    Then goto property sap.protocolSchemeForADSCall
    This property is available after you apply SAP note 849730.
    Possible values are:
    - request: same protocal scheme than the request to Web Dynpro has
    - https: always use https
    - http: always use http
    SET the value as http. This will ensure that web Dynpro to ADS communication always happens on http, rather than on https.
    Should you need to install SSL based communication between the two, you would need to follow the note:
    838111 > How to configure SSL for Adobe Document Services
    Best Regards,
    Krish

  • How to Destroy PDFs generated thru Interactive Form ELement

    Hello Friends
    My team has figured out that constructing pdfs through Interactive Form Element in Netweaver is a big performance issue
    We need to destroy those pdfs generated , So please help us out with this
    thanks a lot

    I guess I'm still not fully understanding your problem.  You mention that they aren't being cleared from the JVM?  On the server or client side? How exactly are you seeing that they aren't being released? I'm assuming you mean server side because you mention JVM.  The JVM isn't used on the client side to display the UI element.  There is no JVM used in Web Dynpro ABAP for the server side processing.  The only place the JVM is used is in the Adobe Document Services itself for the rendering of the PDF.  Is that where you are seeing instances not being cleared?  I'm not exactly sure how that would be manifesting itself.  Could you please provide some more detail.

  • Submit event in Interactive Form element

    I have WDA with Interactive Form element.
    I put a code onSubmit event of InteractiveForm element.
    I tried several Submit buttons in Live Cycle Designer:
    type Button with Submit option from Standard library and  type Submit to SAP from Native library.
    None of them generates Submit event
    Ehat kind of special "special Adobe Web Dynpro submit button" the Help is talking about?
    Here is an excerpt from WDA help:
    onSubmit
    Describes the action to be executed when the user selects the Submit pushbutton.
    Note that the submit event is only evaluated when there a submit button is selected
    within the form. "Within" means that the special Adobe Web Dynpro submit button has
    been included in the Adobe Designer.
    Thanks,
    Tatyana

    Hello Siva,
    In Interactive Form ,you can place as much submit buttons as you want.
    You are creating a simple calculator in adobe...Right..?
    For this purpose ,
    1. In Adobe Interactive Form, Go to WebDynproActiveX  field and from this ,select 4 submit buttons in sequence
    2.In Caption property label them as Add, Sub, Mul & Div respectively.
    Reply if these steps work for you.
    Best Regards,
    Shital.

  • Interactive Form Element 7.1:  How can I set the default file name?

    I am using Interactive Form Element with 7.1 to display a pdf.  When one clicks the save button in Adobe's toolbar, the dialog defaults the file name to "F.pdf".  Is there a way to default this to a different value?

    Making customisation from the default profile is generally considered poor practice and quite often doesn't work out as planned. (If you're interested in some more information on this, [http://mockbox.net/windows-7/227-customise-windows-7-default-profile.html see here] see here)
    This article should help you with developing and deploying your customised Firefox 4 installation (without touching the Windows 7 default user profile):
    http://mockbox.net/configmgr-sccm/174-install-and-configure-firefox-silently.html

  • Interactive Form Element

    Hi,
    Is it possible to call the get and set width and height methods for the TextField element in the interactive form?
    Regards,
    William

    Hi,
    Its possible using Java script in the form. Follwing are the functionalities which are possible to set the height, width of a Textfield UI Element.
    Size and Position
    X
    x property
    TextField1.x = "measurement"
    Y
    y property
    TextField1.y = "measurement"
    Width
    w property
    TextField1.w = "measurement"
    Height
    h property
    TextField1.h = "measurement"
    Width Expand to fit
    minW property
    TextField1.minW = "measurement"
    Height Expand to fit
    minH property
    TextField1.minH = "measurement"
    Anchor
    anchorType property
    TextField1.anchorType = "position"
    To get Hight, length, width use:
    To get X layout:
    TextField1.rawValue = TextField1.x;
    To get Y layout:
    TextField1.rawValue = TextField1.y;
    To get width:
    TextField1.rawValue = TextField1.w;
    To get Height :
    TextField1.rawValue = TextField1.h;
    In the above codes width, height, x and y layout values will be assigned to TextField1.
    Hope it will solve your Problem.
    Regards,
    Vaibhav Tiwari.

  • Blank page when using Interactive Forms(Webdynpro thru Java)

    While i was running the application using Interactive Forms iam getting Blank page.
    Previously when i try to view the output, i can able to view it without any errors,suddenly what happened is iam knowing.
    ADS was perfect,CredentialRights there,AdobeReader-7.0,ACF with SP11 installed and Active-X Controls Enabled.
    Can i know where the problem exactly is?Is the problem from client side or server side or do i need any settings for IE6.0?

    Hi Sankar,
    Did you use NW04 SP11 before (with ACF) and upgraded to NW04<b>S</b>? Your ACF version you mentioned is for NW04S and not for NW04.
    Also keep in mind that SAP changed the way Adobe forms are displayed (ACF will be replaced by the ZCI layout) - ZCI stands for Zero Client Installation. If you upgraded to 04S, you might need to change your forms as well (also the WD application).
    On your interactive forms application (the webdynpro) are there any links outside the adobe form? What happens if you click on it? At our side we have created a customer message, since the ZCI form is not being displayed. We also get a white Adobe placeholder, and when we click on a link outside the placeholder, we see the Adobe PDF logo being displayed in the placeholder (placeholder = frame).
    In your case: do you see a small red cross icon in the frame? That means ACF is not installed properly.

  • How can we use mode "UsePDF" in Interactive form?

    Hello everybody,
    I want to know that how can i use the mode usePdf in Interactive form?
    My scenario is:
    I have pdf form saved locally with blank fields.
    I save this file after requied values in all fields.
    Now i want to import this pdf file in interactive form and needs to submit this form so all the data in this pdf file are submitted to the System.
    How can i do this?
    regards,
    Bhavik

    Hi Bhavik,
    you do not need to use the upload ui element, if your pdf-file which you want to upload resides in you web application project. In the following you can find Web Dynpro code snippets I use in one of my demos for displaying an uploaded pdf-file:
    wdDoModifyView method of FormView:
        //@@begin wdDoModifyView
         try {
              // get interactive form element by ID
              InteractiveForm form = (InteractiveForm) view.getElement("Evaluation");
              if (wdContext.currentContextElement().getCurrentMode().equals("usePDF")) {
                   form.setMode(WDInteractiveFormMode.USE_PDF);
         catch (Exception e) {
              e.printStackTrace();      
        //@@end
    onPlugFromUploadView method of UploadView:
        //@@begin onPlugFromUploadView(ServerEvent)
         try {     
              // modify the context and set needed attributes
              wdContext.currentContextElement().setCurrentMode( "usePDF" );
              // extend the attribute "pdfSource" from the context to a modifiable binary type
              IWDAttributeInfo attInfo = wdContext.currentContextElement().node().getNodeInfo().getAttribute("pdfSource");
              ISimpleTypeModifiable type = attInfo.getModifiableSimpleType();
              IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) type;
              binaryType.setFileName("evaluationForm.pdf");
              binaryType.setMimeType(WDWebResourceType.PDF);
              // add the generated pdf to the context
              wdContext.currentContextElement().setPdfSource( evaluationForm ); // byte[] evaluationForm
         catch (Exception e) {
              wdComponentAPI.getMessageManager().reportWarning(e.getLocalizedMessage());
        //@@end
    If you do not want to display the data before submitting the data, then you have to use the WDInteractiveFormHelper class for extracting the form data after upload in the context. This class is available since NetWeaver04 Support Package Stack (SPS) 10. The class com.sap.tc.webdynpro.clientserver.adobe.api.WDInteractiveFormHelper contains at the moment one helper function for PDF document. Here are the details:
    Constructor Detail
    public WDInteractiveFormHelper()
    Method Detail
    public static void transferPDFDataIntoContext(byte[] pdfSource, IWDNode targetNode)
    Method transferPDFDataIntoContext extracts data from a PDF document and copies the values into the Web Dynpro Context. The xml structure of the document data is applied starting from the specified target node. Usually, this node should be the same context node to which InteractiveForm-UIELement property dataSource is bound during PDF generation.
    Parameters:
    pdfSource - PDF document as byte[]
    targetNode - target IWDNode
    Hope this will help you,
    Regards, Carsten

  • Interactive Form within Web Dynpro ABAP

    Hi,
    I've an Adobe interactive form element within Web Dynpro ABAP view. I've more than one WebDynproActiveX buttons within the Interactive form (like Submit, Cancel, Clear).
    How can I differentiate the user selection within Webdynpro  ? Whether the user selected Submit or Cancel or Clear ? Can we associate any function code for each button ?
    Thanks
    Ravikumar

    Hi Ravi,
    You can take a context attribute lets say "STATUS"(string) in your form context.  For your buttons in the form, in click event set the value. like
    STATUS.rawValue = "1";      (eg Submit)
    STATUS.rawValue = "2";      (eg Cancel)
    And in your submit event read this context attribute and you can use CASE like when 1 , when 2 etc and you can execute your code accordingly.
    it should solve your problem.
    With Regards,
    Ravi.D

  • Offline Interactive Form

    Hi everyone,
    I'm currently working on the UploadDownloadInteractiveForm for WD Java Example.
    The Example from SDN is working successfully. What I don't understand is, can I only use a ready made PDF Document that is downloaded from the server like the TravelRequest.pdf?
    I tried to create my own interactive form document, but in the implementation of the download view the TravelRequest.pdf is explicitly downloaded from the server. I thought I can edit the interactive form element with the built-in Adobe Lifecycle Designer and call it via the pdfSource Attribute.
    How can I create my own interactive form with references to my Context in an offline scenario.
    Thanks in advance,
    Olaf

    Hello Michael,
    thank you for your answer. I checked on my project and gave you points.
    Do the same while uploading this pdf,but using FileUpload element and usePdf mode on your InteractiveForm element.<
    I only have one interactive form element in the form view. The download and the upload view have a FileDownload and FileUpload element. Do you mean, I should use a FileDownload element and an InteractiveForm element in the DownloadView?
    I have one last question:
    In the implementation of UploadDownloadInteractiveForm there are these lines of code inside wdDoInit():
    String fileName = "temp//webdynpro//web//local//TutWD_UploadDownloadInteractiveForm//Components//com.sap.tut.wd.uploaddownloadinteractiveform.UploadDownloadInteractiveFormComp//TravelRequest.pdf";
         try
           File file = new File(fileName);
           FileInputStream in = new FileInputStream(file);
           ByteArrayOutputStream out = new ByteArrayOutputStream();
           int length;
           byte[] part = new byte ;
           while ((length = in.read(part)) != -1)
              out.write(part, 0, length);
           in.close();     
           wdContext.currentContextElement().setPdfSource(out.toByteArray());
    I don't want to use the pdf form "TravelRequest.pdf" but the form I created in the NW Developer Studio. How can I reference my own form.
    Thank you,
    Olaf
    Edited by: Olaf Böttcher on Jan 16, 2008 10:00 AM

  • How to use an Adobe interactive form in an Application service operation?

    Hi,
    I have a peculiar requirement here:
    The user wants that on the trigger of a specific operation an operation of the Application service should get invoked: this operation should pick up a Adobe form template from a destination and then prefill this forms with some values and then store the same in the backend DMS.
    It's very easy to accomplish this task in WD Java with the use of Interactive form element but here we don't want any kind of user interaction for these forms, just the form templates will be prefilled with some dynamic values and then the same will be saved as is.
    Can some one please provide some insight into how the same can be acieved, any API's etc?.
    Please reply ASAP.
    Regards,
    Manish

    hi
    try this tutorial on
    online interactive
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutorial on online interactive pdf form - 29.htm
    for offline interactive form
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutorial on offline interactive pdf form using download - 30.htm
    for downloading and uploading pdf forms
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutorial on offline interactive pdf form using e-mail - 31.htm
    regards
    saravana

  • How to use an Interactive form in a CAF Application service operation ?

    Hi,
    I have a peculiar requirement here:
    The user wants that on the trigger of a specific operation an operation of the Application service should get invoked: this operation should pick up a Adobe form template from a destination and then prefill this forms with some values and then store the same in the backend DMS.
    It's very easy to accomplish this task in WD Java with the use of Interactive form element but here we don't want any kind of user interaction for these forms, just the form templates will be prefilled with some dynamic values and then the same will be saved as is.
    Can some one please provide some insight into how the same can be acieved, any API's etc?.
    Please reply ASAP.
    Regards,
    Manish

    Hi Manish,
    If I get you correctly then you want to Upload a prefilled Adobe IF from some location without any user interaction and save it to some Backend/Temp storage: You need to have something like you have a user inbox and mail comes to this with the Adobe Form as an attachment, you extract the attachment and read it using available Java apis for reading. You can also specify a particular folder where you can place the filled form and then read it using FileInputStream and can save it in the backend after you have it in binary form in your application.
    Hope this helps!!
    Cheers,
    Arafat

  • Interactive form using ABAP workbench

    Hi All,
    I have develped Print forms using ABAP workbench using SFP transaction.
    I am really confused with the terms Print forms and Interactive forms..
    Actually I was able to make my Print form which I have created using SFP transaction, Interactive by giving the appropriate form parameter(fillable).
    But I have read some SDN article in which it says that Interactive forms can only be created in Webdynpro environment..  (Either ABAP webdynpro or Java Webdynpro)..
    In the design time how we will know that the form is interactive or not?
    Please let me know ur thoughts on this..
    Regards,
    Sreejith A P

    HI Sree jith,
    At Design Time, we design a form using the Adobe Designer tool, which allows to to create forms with input fields etc, which can be filled by the user, if the runtime supports it.
    When you design a form via transaction SFP,y ou are essentially designing the form and adding the elements, but, whether the form would be interective or not would be defined by the run time environment.
    If you add an input field to the form, and execute it via an ABAP report, then the form would not be inteactive but, if you use the same form in WebDynpro, then the form could be interactive.
    Designing the form via SFP or via the WebDynpro Interactive form element, both, inherently call the Adobe Designer, but executing the form via WebDynpro Environment would supoprt its interactove nature whereas via an ABAP report, it would not, although the tool allowed you to add the UI element.
    Hope this helps,
    Regards,
    Siddhartha

  • Using a pdf-template for generating an interactive form

    Hi guys,
    I have got the following problem. I have got an pdf-Document, that can be printed out and filled out manually.
    Instead of I just want to use this pdf-Document as an template for an online form, by adding some fields.
    How can I use this pdf-Document as an template?
    Thank you for your answers. Patrick.

    Hi Patrick,
    Let me see if I understand your query properly first. Your requirement is that you have a PDF file which is pretty much fixed.
    Now you want to use the Template present in the PDF file to be shown to the user, but this should be pre-filled with data that you receive from a Web Service & RFC.
    Now firstly I will mention the easy way, which would require you extract the PDF Template statically, I am not sure if the API has now been released to do that programatically.
    Now, lets say you store it is some location the template file, you would also need to tweak the DataBinding properties in the Template to match to that of the Context Node you will use in the application.
    Now in the ModifyView method you should get a reference to the Interactive form element, use the setTemplateSource method to refer to your template.
    Now based on the response from your RFC/WebService create the appropriate attributes into the node, and your form should work fine.
    Regards,
    Pavan

  • Using WF_EXTSRV for changing PDF Interactive form

    Hai,
    I'am trying to use transaction WF_EXTSRV to generate a task which can be used within the UWL from the portal. The main purpose of this task is to show an exsisting PDF form in change mode. I allready found some nice information from SDN, but not enough to make it all work. I still have still these questions:
    1) How must I setup the required fields within transaction WF_EXTSRV when I want to generate for example this url:
    http://abc.abc.nl:51800/webdynpro/dispatcher/sap.com/pcui_gp~isr/IsrForm?SCENARIO=SPEG&MODE=CHANGE&NOTIF_NO=000600000003
    2) How must a then setup transaction SWFVISU? Which apllication and package name.
    I hope some can help me.
    Greetings,
    Remco

    Hi Patrick,
    Let me see if I understand your query properly first. Your requirement is that you have a PDF file which is pretty much fixed.
    Now you want to use the Template present in the PDF file to be shown to the user, but this should be pre-filled with data that you receive from a Web Service & RFC.
    Now firstly I will mention the easy way, which would require you extract the PDF Template statically, I am not sure if the API has now been released to do that programatically.
    Now, lets say you store it is some location the template file, you would also need to tweak the DataBinding properties in the Template to match to that of the Context Node you will use in the application.
    Now in the ModifyView method you should get a reference to the Interactive form element, use the setTemplateSource method to refer to your template.
    Now based on the response from your RFC/WebService create the appropriate attributes into the node, and your form should work fine.
    Regards,
    Pavan

Maybe you are looking for

  • How to create a new function module?

    I was doing the tutorial to create a SAP data widget and the tutorial was using BAPI_FLIGHT_GETLIST to display the data. However, in my system, theres no data in the table SFLIGHT2 and i couldnt populate any data in it. So i am trying to create my ow

  • Debug in CE 7.2 trial

    Hi I have started my server in debug mode from NWDS. The problem is that debug mode is run on port 50021 while my application runs on port 50000. Being so, I cannot debug my application (or so I assume). I would be thankful for any reply. reagards Yu

  • Help! Macbook wont shut down, i have a grey screen and nothing happening! It wont even respond to turn off button

    Help! Macbook wont shut down, i have a grey screen and nothing happening! It wont even respond to turn off button

  • Firefox Crashes in less than 5 seconds after opening it, randomly.

    Here's my problem. When I load firefox, 3 to 4 times in a row it will open, and then simply vanish in less than 5 seconds. Then the next time I try to open it - It works. WTF? It won't even give me a Crash screen, It just vanishes. Sometimes even, It

  • Error in editing section 80 details on porta

    Hello Experts,                     I am getting error after editing section 80 details of employee.For more information;Use case has for 0585 been defined as B2;part of error is as follows. Regards, Milind Patil. com.sap.aii.proxy.framework.core.Base