File browser button on Adobe Interactive Form

Hello,
We have a ZCI Adobe Interactive Form with XML-Schema-Based Interface.
There is a text field on the form with a button beside it. The requirement is that when this button is clicked, a file browser window should open up. After the user selects the file on PC, the file path should get populated in the text field.
I have tried using xfa.host.importData() in the Click event of the button. But nothing seems to happen.
Note that all other methods like xfa.host.messageBox() seem to work fine.
Can anybody please help?
Thanks in advance
Sagar

Ok, I was able to solve it.
I placed a hidden text field on the form and wrote the following JavaScript on 'Click' event.
var sFile;
event.target.importDataObject(sFile);
var oFile;
oFile = event.target.getDataObject(sFile);
pa0001.Subform.FILENAME.rawValue = oFile.path;
var cFile;
cFile = event.target.getDataObjectContents(sFile);
pa0001.Subform.filecontent.rawValue = util.stringFromstreams(cFile,"utf-8");
This will upload the file content and place it in the hidden text field. I can use this hidden text field in my Web Dynpro application.
Just came to know that the Java Script we write in Adobe is known as AcroJS! Nice one.
By the way, Blag can I give points to myself for answering my own question?
Just kidding

Similar Messages

  • Submit Button in adobe interactive form

    Hi All,
    Anyone have step by step how to use SUBMIT button in adobe interactive form?
    The scenario is:
    I am using ABAP Program (SE38) to display the form, then user will enter value some required fields in the form. After user klik SUBMIT button in the form, the value will be stored in customized table in SAP system.
    Kindly advise.
    Thanks,
    Nonik

    Hi Chintan,
    Basically, I have tried to search in the forum within this two days... But I could not find the step by step how to do it. Anyway, I will try to search again. Really appreciate if you don't mind give me the link of it.
    Hi Otto,
    I have created the WD application. Unfortunately, the requirement is online processing form which is attached in the SAP transaction. So, when user open document number of one transaction, the form will be displayed and user can fill the information in this form. Then after that user will click SAVE button to submit data to SAP.
    Any advise?
    Thanks,
    Nonik

  • Updation of Ztable clicking on submit button in adobe interactive forms

    Hi all,
    In my adobe interactive form i have student details and one SUBMIT BUTTON.After clicking on that button i need to update the details in my Ztable. How Can I do?Where Can I write the code?
    Please reply me.
    Thanks in advance.

    Hi, I'm afraid I think there is no place where you can "catch" click on button in interactive form in sapgui, but you can:
    use http submit button and send data to your web service, which receive dataa and update your ztable,
    or you can create webdynpro, where you can catch click on submit button a in this event you can update yout ztable (my previous post).
    Please remember, that you can run your webdynpro application in sapgui:
    REPORT  DEMO_START_WD_IN_PLACE1 MESSAGE-ID SWDP_RUNTIME.
    start-of-selection.
      CALL FUNCTION 'WDY_EXECUTE_IN_PLACE'
        EXPORTING
         PROTOCOL               = 'HTTP'       " HTTP | HTTPS
        INTERNALMODE           = 'X'    "SPACE - browser is started
        PARAMETERS             =
          APPLICATION            = 'your_webdynpro_application
         CONTAINER_NAME         = 'SAP Formuláře'
        EXCEPTIONS
          INVALID_APPLICATION    = 1
          BROWSER_NOT_STARTED    = 2
          OTHERS                 = 3.
      IF sy-subrc EQ 1.
        MESSAGE a400.
      ELSEIF sy-subrc = 2.
        MESSAGE a401.
      ELSEIF sy-subrc = 3.
        MESSAGE a667.
      ENDIF.

  • SUBMIT(to SAP) Button in Adobe Interactive Forms (Web Dynpro Java)

    Hi ,
    I m using Adobe Interactive Forms with Web Dynpro Java
    But submit to SAP button is not working
    i m using NWDS 7.2 with adobe lifecycledesigner 6.0
    with adobe reader 9.0
    when i click submit to SAP button in interactive form nothing happens and
    data is not transfered into web dynpro Context
    Can anybody help me out................

    Hi Adi,
    The evniorment and versions you posted seems to be quite scattered, make sure all are of compatible and to the lates.
    Anyways this was not the reason for your problem.
    Can you tace if the button click event is triggered ....?
    1) when the PDF is published can you see any of the fields editable...? reason behind is generally when you create a form in ADLC it comes up in static PDF format if its so you need to make it dynamic.
    I dont know if adding the webdynpro script to your form might fix.
    Regards,
    Sai

  • Unable to close browser when using Adobe Interactive Form

    Hello,
    I'm using an Interactive Form in my Web Dynpro application. Everything works fine, but when the view with the Interactive Form is active, I am not able to close the browser window anymore. Moving to another view is also not possible.
    I already changed all the options of the Interactive Form but always the same behaviour.
    I am developing on Web AS 6.40, Service Pack 11. ADS is installed also with Service Pack 11.
    Adobe Reader is Version 7.0 and Adobe Designer is Version 7.1
    Has anyone an idea what's wrong?
    Thanks for your help!
    Best regards
    Christian

    Hi,
    I am facing a problem with viewing SAP interactive forms.
    I have the SAPForms.api in Adobe reader plugins but is outdated (19th apr, 05). How do I get the new one and how do I register it ? This same scenario works on a colleague's machine with same config except the SAPForms.api which is latest. (Nov, 05)
    Any pointers will be highly appreciated.
    Thanks,
    Samar

  • Submit button on Adobe Interactive form does not send data back to ABAP

    The integration of my ABAP View and Adobe works fine getting data into the form. The form is interactive and I am able to change the data. I am using ZCI and the XML Context. I display the FirstName attribute both on the ABAP View, and the Adobe Form. When I press the SUBMIT button the first time, it disables that button, but the ABAP View is not updated. I have an ONACTION event, but it doesn't get triggered at all.
    Here are my specs:
    Adobe Reader 8.1.1. Local
    Adobe LiveCycle Designer 8.01.3250.1.491864
    NetWeaver 7.0 SP19
    HR Support Pack 48 and Enhancement Pack 2

    Hi all,
    I assume the ZCI script included in the form (800.20070410093956.383622.376748 ) is too old (I guess it's from SP13 or14).
    In general, I propose the following to analyze/fix these kind of problems (Web Dynpro ABAP only):
    1. Check the tracefile (available from SAP NetWeaver 700 SP19): Add "&sap-wd-clientDebug=X" to the application URL and open the trace by typing <CTRL><ALT><SHIFT>T (see note 999998 too):
    -> Watch for an entry "Got a message from Adobe Reader: zciReady 1: 2: 3:". If this line doesn't appear => ZCI script too old, go on with step 2
    -> Watch for an entry "Got a message from Adobe Reader: zciVersion 1: 800....". That's the version of the ZCI script included in the form
    -> Watch for entries containing "sendDataToServer" and "responseFromServer": If you can't find these entries, something went wrong transferring the form data to the ABAP server: Watch out for entries containing "Error", there might be a network problem.
    2. Execute report FP_PDF_TEST_00 to find out the used ADS version: The corresponding ADS version of SP19 is 800.20090130093518.519793 or 800.20090608122643.560369 (look at the second part of the version string. It's a timestamp: The ZCI script included in the form is from April 2007, the ADS version of SP19 is from January/June 2009!
    -> Update the ADS or patch the ADS (see notes 999998, 1229392 and 956074)
    3. optional step: Have a look at note 999998, section "related notes" (this is the complete list of available notes for Web Dynpro ABAP Interactive Forms integration): Install all notes available for your release/SP - or even better: Update SAP NetWeaver (SAP_BASIS) to the latest available SP
    4. Update the ZCI script of the form using transaction SFP_ZCI_UPDATE
    5. Repeat step 1, I'm pretty sure that it will work now!
    Regards,
    Ralf

  • "Submit" button in Adobe Interactive form does not trigred.

    Dear all
    I am working with interactive form and i am using *click event with formcalc. When I click these button nothing seem to happen.
    i tried with javascript also.
    Event has following code.
    // DO NOT MODIFY THE CODE BEYOND THIS POINT - 710.20060821084622.325745.280724 - SubmitToSAP.xfo
                          ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
                          // END OF DO NOT MODIFY
    I am using  the following versions:
    Adobe livecycle 7.1
    Adobe reader 9
    SAP: EHP4 FOR SAP ERP 6.0 / NW7.01
    Interactive form properties:
    DiplayType: Native
    Enabled: True
    Form layout:ZCI
    Interface: XML
    Submit button used from Web Dynpro Native.
    Can someone please help me resolve this issue as it is very criticial for me.
    Many thanks,
    Ravikumar.

    Hi Ravikumar,
    Your ABAP backend is of version NW7.01, but your ZCI script version is 710.20060821084622.325745.280724.
    This is a very old ZCI script, delivered with NW 7.00 SP11 or SP12.
    I assume that your ADS is still running on a NW7.00 system (JAVA stack!)
    You have to update the ADS and you have to update the ZCI script of your form. See SAP note 999998, search for "The Web Dynpro application hangs during submit". There's a detailed explanation + solution description.
    Ralf

  • Copy&paste from a file excel to Adobe Interactive Form

    Hi all
    my project is based on WDJ and Adobe Interactive Form.
    I need to know if it is possible to do a copy&paste from a file excel to my Adobe Interactive Form.
    Can I copy an area of data from an Excel spreadsheet (set of contiguous rows and columns)
    and paste them into a text field of my form, preserving the formatting (font, size, structure of coloums/rows,...)?
    Can you help me please?
    Thanks!

    You may try posting this question in either the Designer or Forms forum.
    This forum is for the LiveCycle PDF Generator ES product - a server side document conversion module.  If you want to convert the entire Excel spreadsheet to a PDF server side, then PDF Generator is the correct tool to use.

  • E-mail adobe interactive form without showing it..

    Hi experts!
    I am trying to create a WD apllication in which when the user presses a button an adobe interactive form will be called and e-mail, without showing the actual form.
    From what i saw in the corresponding tutorial, in order to attach the file to the e-mail, the file must first exist in pdf format.
    But, during runtime all i have is the pdfsource.
    So, the point is: how can i create the actual pdf from the pdf Source without showing it???? 
    Thanx in advance!!!!

    Hi,
    actually I would not recommend that. That's something which has to be programmed completely new and does not exist at the moment. If you want to have it outside in the internet for externals you will force candidates to use Adobe Acrobat reader in a certain version and might get browser problems. So technical support might become an issue.
    So the only opportunities you have without creating something new, is using Web Dynpro standard or a third party tool based on flash.
    Best regards

  • Control not going from Adobe Interactive form to ABAP WD Event handler

    Hi
    I am facing an issue with adobe interactive forms and WD ABAP integration.
    The buttons in adobe interactive form when clicked is going round and round and the control is not going to the ABAP code(WD ABAP event handler code whatsoever). I have also set the debugger but the control is not moving to the ABAP code from the adobe interactive form.
    Can anyone help me what can be the issue here and how can I resolve the same?
    Thanks.
    Sid

    Hi Babi,
    In the adobe form layout library Use the Submit(which internally means submit to SAP) button from the Webdynpro Native category.
    Only this button action can connect adobe to web dynpro.
    Whenever we click on this particular button the event will be trigger in the ONsubmit event of interactive form UI element in the webdynpro.There we can write our abap code.Hope this will help you.
    Regards,
    Simi A  M
    Edited by: amsimi on Mar 22, 2011 11:37 AM

  • Webservice giving error "couldn't post data to " in adobe interactive form

    Hi Gurus
                     My requirment in to place a submit button in adobe interactive form , when the user clicks on it the data in the form has to update the table. For this purpose i have configured webservice in my crm 2007 server. Now webservice is working and i m getting the response. but when i create a data connection in the adobe form and when i execute the webservice i getting " Couldn't post data to ". "
    error . Plz help me out to resolve this issue
    Thanks in advance
    Regards
    Johny

    Hi Jhonny,
    Make the Submit button a regular one instead of execute and place the following code in the click event(JavaScript).
    var cURL = "Provide the Soap Address url which is present in WSDL";
    var service = SOAP.connect(cURL);    
    xfa.connectionSet.DataConnection.execute(0);
    Regards,
    Mathan

  • Getting complete file path in Adobe Interactive Form

    Hi All,
    I have a requirement where I have a field ZPATH1 on Adobe Interactive Form. I am putting a BROWSE button and writing following JavaScript on CLICK event on this button for populating the chosen file path into field ZPATH1.
    *Start of JavaScript
    var sFile;
    event.target.importDataObject(sFile);
    var oFile;
    oFile = event.target.getDataObject(sFile);
    this.parent.parent.Sub_Form_Fields_Mass.ZPATH1.rawValue = oFile.path;
    *End of JavaScript
    1. event.target.importDataObject(sFile) --> Giving me the pop up to select the file.
    2. this.parent.parent.Sub_Form_Fields_Mass.ZPATH1.rawValue = oFile.path; --> Putting the oFile path in field ZPATH1 on the form.
    3. This way is only giving me the selected FILE NAME whereas I need the complete path.
    I have tried below way also:
    this.parent.parent.Sub_Form_Fields_Mass.ZPATH1.rawValue = even.target.path;
    This function returns me the complete path but in URL form. It does not give me the presentation server path.
    Please suggest me how to get the complete path of presentation server to the file.
    Appreciation would be honored in form of points!!!
    Regards,
    Ashish

    please post it here for quick response
    and also search in adobe forums also for java script related.
    http://www.adobe.com/support/forums/index.html

  • Need to capture full file path in Adobe Interactive Form

    Hi All,
    I have a requirement where I have a field ZPATH1 on Adobe Interactive Form. I am putting a BROWSE button and writing following JavaScript on CLICK event on this button for populating the chosen file path into field ZPATH1.
    *Start of JavaScript
    var sFile;
    event.target.importDataObject(sFile);
    var oFile;
    oFile = event.target.getDataObject(sFile);
    this.parent.parent.Sub_Form_Fields_Mass.ZPATH1.rawValue = oFile.path;
    *End of JavaScript
    1. event.target.importDataObject(sFile) --> Giving me the pop up to select the file.
    2. this.parent.parent.Sub_Form_Fields_Mass.ZPATH1.rawValue = oFile.path; --> Putting the oFile path in field ZPATH1 on the form.
    3. This way is only giving me the selected FILE NAME whereas I need the complete path.
    I have tried below way also:
    this.parent.parent.Sub_Form_Fields_Mass.ZPATH1.rawValue = even.target.path;
    This function returns me the complete path but in URL form. It does not give me the presentation server path.
    Please suggest me how to get the complete path of presentation server to the file.
    <REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
    Regards,
    Ashish
    I have also tried below way:
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Oct 17, 2008 3:26 PM

    please post it here for quick response
    and also search in adobe forums also for java script related.
    http://www.adobe.com/support/forums/index.html

  • How to capture full file path on Adobe Interactive Form using Acro JS

    Hi All,
    I have a requirement where I have a field ZPATH1 on Adobe Interactive Form. I am putting a BROWSE button and writing following JavaScript on CLICK event on this button for populating the chosen file path into field ZPATH1.
    *Start of JavaScript
    var sFile;
    event.target.importDataObject(sFile);
    var oFile;
    oFile = event.target.getDataObject(sFile);
    this.parent.parent.Sub_Form_Fields_Mass.ZPATH1.rawValue = oFile.path;
    *End of JavaScript
    1. event.target.importDataObject(sFile) --> Giving me the pop up to select the file.
    2. this.parent.parent.Sub_Form_Fields_Mass.ZPATH1.rawValue = oFile.path; --> Putting the oFile path in field ZPATH1 on the form.
    3. This way is only giving me the selected FILE NAME whereas I need the complete path.
    I have tried below way also:
    this.parent.parent.Sub_Form_Fields_Mass.ZPATH1.rawValue = even.target.path;
    This function returns me the complete path but in URL form. It does not give me the presentation server path.
    Please suggest me how to get the complete path of presentation server to the file.
    Appreciation would be honored in form of points!!!
    Regards,
    Ashish

    please post it here for quick response
    and also search in adobe forums also for java script related.
    http://www.adobe.com/support/forums/index.html

  • Browser hangs when an Adobe Interactive Form is

    Hi Folks,
    I'm fairly new to ABAP (< 1 year) and am in the process of creating my first Adobe Interactive Form. In fact it will be the first IFbA at our company, when I get done with it!
    Here's the problem am facing: The Interactive Form that I'm building is called within an ABAP Web Dynpro application. If the displayType in the view is set to 'native', when the IFbA is called, the browser hangs and eventually shows the form after 5 full minutes. However, if it is set to 'activeX', it comes up with the form instantly. It does not matter what objects(WD activeX or native) I have on the form, It does the same thing.
    Our System information:
    SAP_Basis and SAP_ABA: 701 SP5
    ADS: 802.20100902045248.720952
    Adobe Reader 9
    I've looked at the SAP Note 999998 and have pretty much done what they've asked for. But, have had no progress with it. I'm pretty much at my wits end. So, somebody please help?!
    Thanks,
    CS

    Hi,
    Goto the Layout,
    Then goto Utilities->Insert WebDynproScript  and Activate.
    it will work.
    Uma

Maybe you are looking for

  • AIO Remote app cant find HP 7150 aio printer on my wifi network, on Windows Phone 8

     HI, Yesterday I install You App AIO Remote on Windows Phone 8. I have connected to wifi HP 7150 aio printer, but phone cant find this printer... I have Lumia 1520 and Lumia 920 smartphones both is connect to this same wifi network like printer, but

  • How do I turn off the annoying voice on Apple TV.

    How do I turn off the very annoying voice to come on when I use Apple TV. I did not have this when I first set it up but had to reset the apple tv as my Netflix wa not working?

  • Finally got Photoshop Elements 11 installed

    I recently purchased PSE11 and just like everyone else in this forum I had massive problems trying to install this programme with the 'Shared Technologies' error.   I spent three days reading everyone's suggestions and trying everything that was sugg

  • Iphone 4s Loses Signal when Connected to HDMI

    Hello, I have an Iphone 4s with the most current software as of today.  When I plug the phone into the AV adapter and then to the HDMI to the TV, I lose cell service, it literally says NO SERVICE in the corner. If I unplug the HDMI, it comes back alm

  • Vanishing records in deferred-write database

    Upon upgrading to 3.2.43, one of our project's unit tests revealed an issue with records disappearing 'spontaneously' from a deferred-write database (a few seconds after a reinsertion at a previous key value). I was able to boil it down to a small te