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

Similar Messages

  • 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

  • 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

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

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

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

  • 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

  • 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 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

  • Webdynpro context not available in Interactive form layout

    Hi,
    I have take one Interactive form element and provided the Tempalte Source (new formanme) it asked me to create the pdf interface i give the interface name, and,selected the context then save it. pdf layout design is opend but there is not context which i have mapped from wd in pdf.
    where as if i use sflight in webdynpro context node, it is working ( i can see the dataview of sflight in pdf layout) but not in case of z*structures any reason please let me know.
    Thanks,
    mahesh.gattu

    What is the datasource of your UI interactive forms.
    data source is the context of the webdynpro view.
    as i described earlier, i am assigning the context when creating the form interface.
    once it is done automatically datasource will be binded with context ndoe.
    i am getting one more problem,i selected enable check box to become interactive form even though the form is not become interactive why.
    even i tried with activex/native both also.
    thanks,
    mahesh.gattu

  • Does interactive form need acrobat 9 in EP 7 version ?

    Hi,
    After the portal was upgraded to EP 7, the adobe form stopped working for one of the components.
    Its about opening PO details in adobe form and when the link is clicked, a red cross is seen instead of form or there is pop up to install adobe software. Interactive form is used in this web dynpro component.
    This issue is not for users having acrobat 9 version.
    I am looking for.
    1) what is the difference betw interactive forms in web dynpro and non-interactive forms?
    2)Is there any way to make this work without having to upgrade the adobe version for all the users ?
    thank you in advace for any help

    Dipti,
    There is no separate UI element in NWDS. When you do a  right click and edit the Interactive Form element, you open another Designer which is called Adobe LiveCycle Designer, just wanted to clarify it so that you don't gfet confused between Designer and NWDS.
    Now in Adobe Designer, after the form is opened, from edit menu option --> Select form properties --> Goto Defaults tab --> See what's the preview type. If its Interactive then that means your Form is Interactive and if its Print then it will be a Print Form.
    Also as per my knowledge Web Dynpro is recommended for Interactive Forms, so whenever you develop a form in WD (JAVA or ABAP) it will most likely be Interactive.
    Coming to your other questions, at least I have seen on Adobe Forums @ SDN that people have had problems with Adobe Reader 8.0, Reader 8.1.1 is probably the best bet.
    Adobe 9.0 is also working as you mentioned but can you let me know what's  the version where the form does not work, as long as they have Adobe Reader 7.0.5 and above they should be good.
    Just remove the ACF control as mentioned in note 846952 on the user's machine. Try opening the form once again, see if you get the prompt to load AcitveX installation and verify if you have done the necessary settings as per 1150277 and 766191.
    Chintan

  • 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

Maybe you are looking for