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

Similar Messages

  • 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

  • Attachment of files in an Adobe Interactive form

    Hi,
      Is it possible have 'File attachment' attach any type of file inside and Adobe Interactive form .. ?
    Thanks
    Sivaraj

    Yes, you can attach all kind of filetypes to an AIF.

  • Capturing entire directory 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

  • Getting complete file path in Acro Java Script

    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

    I don't recognize the tech - is it something related to BusinessObjects Enterprise?
    Sincerely,
    Ted Ueda

  • How to get the file path from HTML input form in Firefox 3...

    In IE7 (and probably all famous browsers, including old Firefox 2), if we submit a file like 'C:\folder1\folder2\folder3\filename' it works properly and gives the full path to the file and the filename.
    In Firefox 3, it returns only 'filename', because of their new 'security feature' to truncate the path, as explained in Firefox bug tracking system (https://bugzilla.mozilla.org/show_bug.cgi?id=143220)
    I have no clue how to overcome this 'new feature' because it causes all upload forms in my webapp to stop working on Firefox 3.
    Can anyone help to find a single solution to get the file path both on Firefox 3 and IE7?
    Thanks in advance....

    As you're posting this in the JSF forum and looking at your [previous topic|http://forums.sun.com/thread.jspa?threadID=5342365], I assume that you're using Tomahawk's t:inputFileUpload. In this case, just use UploadedFile#getInputStream(). You may find this article useful: [http://balusc.blogspot.com/2008/02/uploading-files-with-jsf.html].
    By the way, are you lazy or just dumb? You wasted one week to this! I've posted the aforementioned article one week ago. How did you stuck?

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

  • How to get the file path from HTML input form in Firefox3

    In IE7 (and probably all famous browsers, including old Firefox 2), if we submit a file like 'C:\folder1\folder2\folder3\filename' it works properly and gives the full path to the file and the filename.
    In Firefox 3, it returns only 'filename', because of their new 'security feature' to truncate the path, as explained in Firefox bug tracking system (https://bugzilla.mozilla.org/show_bug.cgi?id=143220)
    I have no clue how to overcome this 'new feature'.
    Can anyone help to find a single solution to get the file path both on Firefox 3 and IE7?
    Thanks in advance....

    Doubleposted and ignored any previous answer: [http://forums.sun.com/thread.jspa?threadID=5342405]. Don't do that. It's rude.
    Regarding to your "problem": why do you need the file path?

  • 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

  • Saving Adobe Interactive Form into a Server Path in Webdynpro.

    Hi Forum,
                     I have an Adobe Interactive Form as UI element in my webdynpro View. This form is available in the context attribute in Binary Format. I can read the form from this attribute as Byte Array only. I want to save this file in to a folder located in the Portal Server (ex : path :
    usr\jc00\j2ee\........\temp\myfolder).
                  I am trying  with the following code :
      IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute(IPrivateTestCompView.IContextElement.PDF_SOURCE);
           IWDModifiableBinaryType binaryType =(IWDModifiableBinaryType) attributeInfo.getModifiableSimpleType();
           IPrivateTestCompView.IContextElement element =     wdContext.currentContextElement();
           binaryType.setMimeType(WDWebResourceType.PDF);
           //if a file in the 'FileResource' attribute exists
           if (element.getPDFSource() != null) {
                try {
                                         String ext=binaryType.getMimeType().getFileExtension();
                                    String fileName="PriceUpdateForm1";
                          byte[] b = wdContext.currentContextElement().getPDFSource();
                          File files = new File("C:
    usr
    sap
    EP7
    JC00
    j2ee
    temp
    HTI
    "fileName"."+ext);
                          try {
                                                           FileOutputStream out = new FileOutputStream(files);
                                                           out.write(b);
                                                           out.close();
                                                                                              } catch (FileNotFoundException e) {
                                                            //TODO Auto-generated catch block
                                                           e.printStackTrace();
                                                           wdComponentAPI.getMessageManager().reportSuccess(e.getMessage());
                                                 } catch (IOException e) {
                                                           //TODO Auto-generated catch block
                                                           e.printStackTrace();
                                                           wdComponentAPI.getMessageManager().reportSuccess(e.getMessage());
                          element.setPDFSource(null);
                      } catch (Exception e) {
                           throw new WDRuntimeException(e);
    it is giving me the error :-
    java.lang.Exception: Incorrect content-type found 'text/html'
        at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.ClientMimeMessage.initDeserializationMode(ClientMimeMessage.java:120)
        at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.handleResponseMessage(MimeHttpBinding.java:951)
        at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1430)
        at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:82)
        at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:99
    Can any one tell me what went wrong and how to convert the ByteArray into PDF and save it on to network path.
    Any help will be highly awarded........
    Thanks
    Ramesh.

    Hi,
    Please refer this, Page 7-8
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1bbc91c3-0401-0010-91bc-a25b2a3dff19
    Regards,
    Eric

  • Blank page getting displyed whn using adobe interactive forms

    Hi All,
    I am Facing one problem while using Adobe interactive forms in Web Dynpro.
    on deploy interactive form is not getting displayed.
    Deployment result shows blank view....
    m not getting the cause of the problem.
    kindly help if someone knows the cause/solution.
    Thanks,
    Amit

    Hi there,
    I am having the same problem. I deployed the same WD with IF on 2 different machines and there everything works fine. I using the same browser (IE6) on all the machines. Where  are using Native IF and running Adobe Reader 7.0.8. We are on NW04s SP9.
    I tested the ADS Webservice on the machine and that is working fine.....
    Hope somebody can tell me where to look.
    Thx in advance.
    Amit, when you are using IF type "native"  the at least run Adobe Reader 7.0.8. Maybe this solves the problem for you.
    Kind regards,
    Maarten.

  • 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

  • Error in Adobe Interactive forms

    Hi All,
    I am implementing MSS/ESS.
    I created an Adobe Interactive form in my View and mapped it with the corresponding context. I binded the interactive form(in the Right Click->Interactive Form->Edit) also with the corresponding context. But when I run the Application, I am not getting the following error.
    com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: IOException occured while creating template stream from the TemplateSource : ./temp/webdynpro/public/sap.com/ess~rep/webdynpro/Components/com.sap.xss.hr.rep.vciframe.VcRfwIFrame/VcRfwIFrameView_InteractiveForm.xdp (No such file or directory (errno:2))
    But the VcRfwIFrameView_InteractiveForm.xdp is available in the respective folder.

    HI
    Hi
    Firstly check weather ur ads configuration of the server is done properly. i
    see weather ur ads settings are as per the following document
    Tutorial on Installing Credentials and Configuring ADS
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f03414f8-d4ce-2a10-d4b6-ab201b329d98
    f yes ur ADSUser password
    must have expired follow the steps to reset the password
    SAP NetWeaver '04 / 2004s
    1. Log on to the Visual Administrator.
    2. Follow the path:
    Server -> services -> Security Provider -> User Management tab
    3. Display the user ADSUser.
    4. Change the ADSUser password. (You can use the same password.) Check the checkbox
    'No password change is required'.
    Note: The below mentioned technical user role is available for the ADSuser as of
    NetWeaver 2004s SPS 7.
    5. Log on to 'User Management' of your AS Java:
    http://<AS Java server>:<http port> -> User Management
    6. Display the user ADSUser.
    7. In the 'Security policy' field, change the setting from 'Default' to 'Technical
    Users' and save.
    (For more information on the 'Security Policy' option, see the Release Notes in
    the SAP Help Portal at
    http://help.sap.com/saphelp_erp2005vp/he
    lpdata/en/44/04265816343fdbe10000000a11466f/frameset.htm.)
    After changing this option, the ADSUser password will not expire.
    Note that this feature is not available for SAP NetWeaver '04.
    regards,
    Nikhil Tapkir.

  • Using WSDL in Adobe Interactive forms

    I am developing an Adobe interactive form in SAP netweaver 2004s.For that i must import WSDL file which is in EJB's.When i am creating a new data connection,
    I specified the WSDL path like this,
    "http://192.168.1.36:50000/WSCreate1/Config1?wsdl"
    it is not accepting.It is showing my methods.But getting an error as
    "there is no associated SOAP Binding"
    Can anyone tell me how to get the WSDL file in Interactive forms

    Hi Suma,
    During Creating a Web Service Definition have you provided the authentication?
    Check this link.
    <a href="http://help.sap.com/saphelp_nw70/helpdata/en/b5/ce88b82d7bfe4799ba7e175558d0ba/frameset.htm">Creating a Web Service Definition</a>
    Regards,
    Mithu

Maybe you are looking for

  • Satellite P855-108 - PC health Monitor fails to update - Windows 8.1 update

    Hello, today updated to win 8.1 from a one year old windows 8, everything went fine Then I followed Toshiba recommendations for updating the tools but despite doing exactly as explained the flash cards(and the functions buttons) are not functioning,

  • Custom Stamp no longer worker in Acrobat X

    I created a custom stamp using Adobe X; not sure it was working the way it was suppose to but it still met my needs. I used a PDF form which I created using Word, added some form fields and saved it. Added the PDF form file as a custom stamp. Opened

  • Preview mark up shortcut

    Hello, When in Preview I try to use the shortcut to mark up some text (which includes apple + h) The Preview window minimizes (goes out of sight) and mark up occurs. Any suggestions?

  • Toolbar visibility button (lozenge)?

    greetings, just transitioning from 10.6 to 10.7.  many subtle surprises, not all of them good... this is driving me nuts.  where has the "show/hide" toolbar button or lozenge gone in the title bar in 10.7?  on MBPro, screen real estate is still a val

  • Is it possible to pass the property value dynamically to composite.xml

    Hi, Is it possible to pass the property value dynamically to composite.xml from bpel? For ex: <property name="bpel.config.auditLevel">$variable</property> I will get a different $variable value every time to bpel. Also, when I included the following