Javascript code for setting output file name of emailed form in Livecycle

I was given a task of creating a new form with livecycle. I have no knowledge of javascripting so I am struggling with one of the things I am trying to get this form to do. The overview of this form is people around my company fill out this form then hit a button to email the completed form to me. I was able to accomplish part of this task by using the following code within an up mouse event script on a button.
oDoc = event.target;
oDoc.mailDoc({
cTo: ********@******.com,
cSubject: "IB Update Request - Instance" + IBInstance.rawValue,
This takes the form and emails it to me with the data from the field called "IBinstance" in the subject line which is what I want but the file name attached to the email is garbage. presently is says "newupdateform.pdf - Adobe Acrobat Pro.pdf"
What I would like is some javascript code that I can take the data from the field called "IBinstance" and use it as the name of the file being sent in. Is there a simple code that i can put in this event to allow me to do this?
Thank you

Hi Joerg,
I have been trying to solve this as well, but gave up. I also could not get the workaround you found to work with EFM files.
If you do find a solution, please update your message to share?
Thanks
Julie

Similar Messages

  • Setting output file name in export transaction data package

    Hi all,
    I am running an "export transaction data" package in the data manager. I wanted to set the output file name so that it will be a constant value. I wrote the following in the package editor:
    INFO(%FILE%,\ROOT\WEBFOLDERS\COLMOBIL\VEHICLES1\DATAMANGER\DATAFILES\vehicles_to_pca2.txt)
    TASK(/CPMB/TD_FILE_TARGET,FULLFILENAME,%FILE%)
    The system run the package and reported success but the file was not created. When i did the same with an existing file name, it was not updated.
    When I run the same package with the following PROMPT command instead of the INFO command:
    PROMPT(OUTFILE,,"Please enter an output file",Data files (*.txt)|*.txt|All files(*.*)|*.*)
    The system works fine.
    Any ideas?
    TIA
    Avihay

    I am sad to report that apparently Adobe does not do a very good job with the PDF printer. I have just spent over an hour with support to get the answer we can not help you. I guess I will have to spend $50 for NovaPDF to handle my problem. It's a shame when a superior overall product like Acrobat is not able to keep up with the knockoffs on the small things.

  • Export Indd to EPS/JPG and set the file name  for EPS/JPG file

    Hi,
       When I export the INDD to JPG/EPS, I want to set the file name with pageNumber  for JPG/EPS files using javascript.
    For Example
    If I set the file name as EPSFile.eps, after exporting the indd(with 2 pages) to eps
    ,files are generating in the following name EPSFile_1.eps, EPSFile_2.eps.
    but I want to set the file name as EPSFile_001.eps and EPSFile_002.eps using javascript.
    anyone knows please reply for this.
    Regards,
    Mubeen

    Hi,
      I tried the following code.
    var JPGe = new File("Applications/PDF/JPG/file.jp");
    app.activeDocument.exportFile(ExportFormat.jpg, );
    when I use this code ,exported jpg file names are
    file.jpg, file1.jpg,file3.jpg.
    but ,I want the output file names as file_001,file_002,file_003,
    Thanks,
    Mubeen

  • On file open: "This document contains JavaScript code for a widget that no longer exists."

    I had an existing, functional datepicker in a web page.
    Recently I downloaded the UI Datepicker in the Widget Browser and installed it in DW CS5. Now every time I load the file that calls the datepicker that I added myself, a warning opens with the following text:
    This document contains JavaScript code for a widget that no longer exists. If you don't remove the code, the browser might display JavaScript errors when loading the page. Would you like Dreamweaver to find all instances of this code for you?
    Widget: $("#reservDateBegin").datepicker();
    Widget: $("#reservDateEnd").datepicker();
    Clicking "Yes" opens the file and shows the search box at the bottom of the window with [current document] in File and $("#reservDateEnd").datepicker(); in Matched Text. Clicking "No" just opens the file.
    The error is wrong, since installing the widget is what caused the error in the first place!
    How can I get DW to stop showing this message?
    Thanks for any help.

    I do understand you're trying to be helpful. I was just hoping providing the relevant code snippets would be sufficient so I didn't have to take the time to provide a "cleaned" version of the files and upload those to a public-safe location.
    Zabeth69 wrote: If you don't understand what 'code at the bottom of the page' means, you have not used one of those systems. I don't know what causes the error code to come up (besides removing a Spry widget, I mean). So if it doesn't apply to you, ignore it.
    This is exactly my point: I haven't used any of the DW "systems". I've always manually coded in DW, so I can't have removed a Spry widget in the first place. It wasn't until I installed the Widget using the Widget Browser that I started getting the error (I don't mean adding the datepicker widget to the code using the DW Insert menu - I mean installing the Widget into DW itself). Ignoring such an erroneous/incorrect error seems kind of silly, since every time I open the file I get the error message.
    Anyway, as requested, the following are links to the contactUsCleaned.php page, and the php included headerCleaned.php file. Since these use php includes to complete the rendered HTML, they won't look right in the browser, but as you know viewing the source will show the relevant html, javascript, and jquery code. I didn't see any way to upload the files in this forum, which, due to the php code, would be preferable to see exactly what my code looks like...
    http://www.eventidewebdesign.com/public/contactUsCleaned.php
    http://www.eventidewebdesign.com/public/headerCleaned.php
    The footer.php file the contactUs page includes is simply a set of HTML links to the pages on the site, copyright info, and the Google Analytics script. There is no other code in the footer.php file.

  • How to programmatically disable prompts for output file names in Acrobat X

    My code to programmatically disable output file names (below) is not working on a Windows 7 64-bit machine using Acrobat Distiller X.  It works perfectly on a Windows XP machine with Acrobat Distiller 8.
    The latest API Reference I was able to find is dated June 2008.  My logic follows this convention.
    I have confirmed that the registry key is updated as specified below.  I have also confirmed that I am able to write to the directory indicated.
    Please provide any suggestions to resolve. 
    Thank You!
    ~Lori
    'Create the Registry Key where Acrobat looks for a file name
            CreateNewRegistryKey HKEY_CURRENT_USER, _
                         "Software\Adobe\Acrobat Distiller\PrinterJobControl"
    'Put the output filename (FilePath) where Acrobat could find it
            SetRegistryValue HKEY_CURRENT_USER, _
                     "Software\Adobe\Acrobat Distiller\PrinterJobControl", _
                     C:\Program Files (x86)\Microsoft Office\Office12\MSACCESS.EXE, _
                     T:\PDF Files\Current Week\NFS_Lori,Test.pdf

    I remember seeing that the problem is thunking. A little more specifically, because it's a 32-bit driver but a 64-bit executable, there's a 32-bit system spooler process which will always show up as the EXE name.

  • Configure:3955: checking for C compiler default output file name

    Hi,
    I am trying to configure oracle bsd on AIX and got the below error,
    # sh /ldap/db-4.6.21.NC/dist/configure
    checking build system type... powerpc-ibm-aix5.3.0.0
    checking host system type... powerpc-ibm-aix5.3.0.0
    checking if building in the top-level or dist directories... no
    checking if --disable-cryptography option specified... no
    checking if --disable-hash option specified... no
    checking if --disable-mutexsupport option specified... no
    checking if --disable-queue option specified... no
    checking if --disable-replication option specified... no
    checking if --disable-statistics option specified... no
    checking if --disable-verify option specified... no
    checking if --enable-compat185 option specified... no
    checking if --enable-cxx option specified... no
    checking if --enable-debug option specified... no
    checking if --enable-debug_rop option specified... no
    checking if --enable-debug_wop option specified... no
    checking if --enable-diagnostic option specified... no
    checking if --enable-dump185 option specified... no
    checking if --enable-java option specified... no
    checking if --enable-mingw option specified... no
    checking if --enable-fine_grained_lock_manager option specified... no
    checking if --enable-o_direct option specified... no
    checking if --enable-posixmutexes option specified... no
    checking if --enable-pthread_api option specified... no
    checking if --enable-rpc option specified... no
    checking if --enable-smallbuild option specified... no
    checking if --enable-tcl option specified... no
    checking if --enable-test option specified... no
    checking if --enable-uimutexes option specified... no
    checking if --enable-umrw option specified... no
    checking if --with-mutex=MUTEX option specified... no
    checking if --with-tcl=DIR option specified... no
    checking if --with-uniquename=NAME option specified... no
    checking for chmod... chmod
    checking for cp... cp
    checking for ln... ln
    checking for mkdir... mkdir
    checking for rm... rm
    checking for sh... /usr/bin/sh
    checking for a BSD-compatible install... /ldap/db-4.6.21.NC/dist/install-sh -c
    checking for C compiler default output file name...
    configure: error: C compiler cannot create executables
    See `config.log' for more details.
    and in config.log,
    configure:3955: checking for C compiler default output file name
    configure:3982: xlc_r -O2 -D_THREAD_SAFE -Wl,-brtl conftest.c >&5
    /ldap/db-4.6.21.NC/dist/configure[3983]: xlc_r: not found
    configure:3985: $? = 127
    configure:4023: result:
    configure: failed program was:
    | /* confdefs.h. */
    | #define PACKAGE_NAME "Berkeley DB"
    | #define PACKAGE_TARNAME "db-4.6.21"
    | #define PACKAGE_VERSION "4.6.21"
    | #define PACKAGE_STRING "Berkeley DB 4.6.21"
    | #define PACKAGE_BUGREPORT "Oracle Technology Network Berkeley DB forum"
    | #define HAVE_UPGRADE_SUPPORT 1
    | /* end confdefs.h. */
    |
    Is this beacase valid c compiler not existing?
    # which cc
    which: 0652-141 There is no cc in /usr/bin /etc /usr/sbin /usr/ucb /usr/bin/X11 /sbin /usr/java14/jre/bin /usr/java14/bin.
    # ksh: which:: not found.
    # which c
    which: 0652-141 There is no c in /usr/bin /etc /usr/sbin /usr/ucb /usr/bin/X11 /sbin /usr/java14/jre/bin /usr/java14/bin.
    Thanks,
    Message was edited by:
    GK Joe

    Joe,
    I presume you are trying to build Oracle BDB and not bsd as you have mentioned.
    Yes, the error message you are getting is for not having the CC compiler in your system or the path isn't set. Check in the /usr/vac/bin directory if you have one in your system. You might find both xlc and cc compiler there. Set this directory to your path so that 'configure' can see it.
    Regards,
    -Debsubhra

  • When I open up an e-mail attachment a box pops up PRINT TO FILE below that line OUTPUT FILE NAME with an empty line for the file name vs. simply going to my default printer?

    when I open up an e-mail attachment a box pops up PRINT TO FILE below that line OUTPUT FILE NAME with an empty line for the file name vs. simply going to my default printer?

    Make sure that '''''Print to File''''' isn't selected in the native print dialog box ''(see screenshot below)'' middle-right, and make sure your Printer is selected at the top of that dialog box.
    ''I'm a little confused why an email attachment would need to go directly to the printer, but that's what you asked about.''

  • Dynamic output file name for scheduling a BIP report

    Hi All,
    I have a BI Publisher report. It has Department as prompt. we need to run the report for each department. I need to schedule the report such that, for each department i need to FTP the output with file name as department_INFO.pdf in the one folder (i.e. if dept is ABC, then i need to store the output with file name as ABC_INFO.pdf and ftp to the folder). Folder will be created already in the server.
    We have around 40 departments, so i need to manually schedule this report 40 times with 40 files names and ftp the output to the folder in the server.
    Can we dynamacally give the output file name based on the prompt we are using to run, instead of manually scheduling for each department.
    Please help me ASAP..we cant move further due to this problem.
    Regards,
    Sandy

    .

  • Can I print to AdobePDF with a pre-determined output file name?

    I have a list of PDF files that I need to reduce in size. I have tried many combinations of Adobe's "Save As Reduced PDF", "Save As Optimized PDF", as well as several compression programs. The best results I've found have been to print the PDF via AdobePDF, using the standard quality settings.
    This leads me to my problem. It's simple to batch the print process to print multiple files to AdobePDF, however each one requires the user to specify the output file name. Is there a way to interface with the AdobePDF tool in a way that the output file name is already determined? I.e. passed into the program as an argument? Any help would be greatly appreciated.
    Thanks,
         Dan
    EDIT: Under the Adobe PDF Settings, the option for Adobe PDF OUtput Folder is set for Prompt for Adobe PDF filename. There is also an option to dump to Documents\*.pdf, which retains the original filename. Is there a way to specify a different directory, rather than Documents, while retaining the *.pdf argument? Again, thank you.

    You would probably get better results printing from Acrobat. The HTMLLoader rasterizes the image first. You could possibly add a JavaScript function inside the PDF that prints and call that from your AIR app.
    See http://www.adobe.com/devnet/air/flex/quickstart/scripting_pdf.html for information on calling JS functions in a pdf file from AIR.

  • How do I write a javascript code to open InDesign File, import Doc, save and export to pdf?

    How do I write a javascript code to open InDesign File, import Doc, save and export to pdf?

    Hi hasvi,
    Need Template(.indt), textframes etc for the following script:
    var myFolderInd = Folder.selectDialog();
    var myFile = myFolderInd.getFiles("*indt");
    app.open(myFile)
    var myDoc = app.activeDocument;
    var myDocName = myDoc.name;
    var mySaveFile = app.activeDocument.save(myFolderInd.fsName + "/" + myDocName.split(".indt").join(".indd"));
    var myFolderDoc = Folder.selectDialog();
    var myFile1 = myFolderDoc.getFiles("*doc");
    mySaveFile.pages[0].textFrames[0].place(File(myFile1))
    //~ mySaveFile.place(File(myFile1))
    app.activeDocument.textPreferences.smartTextReflow = true;
    var myPDFFile = new File(mySaveFile.filePath + "/" + mySaveFile.name.split(".indd").join(".pdf"))
    myDoc.exportFile(ExportFormat.PDF_TYPE, File("~/Desktop/abc.pdf"));
    alert("Process Completed")
    Regards
    Siraj

  • How to get the Output File Name as One of the Field Value From Payload

    Hi All,
    I want to get the Output file name as one of the Field value from payload.
    Example:
    Source XML
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_TEST xmlns:ns0="http://sample.com">
    - <Header>
      <NAME>Bopanna</NAME>
      </Header>
      </ns0:MT_TEST>
    I want to get the Output file name as " Bopanna.xml"
    Please suggest me on this.
    Regards
    Bopanna

    Hi,
    There are couple of links already available for this. Just for info see the below details,
    The Output file name could be used from the field value of payload. For this you need to use the UDF DynamicFile name with below code,
    //       Description: Function to create dynamic Filename
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");
    conf.put(key,a);
    return "";
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");
    conf.put(key,a);
    return "";
    With this udf map it with the MessageType as
    (File Name field from Payload) > DynamicFileConfiguration>MTReceiver
    Thanks
    Swarup

  • Use job parameter as output file name "alias" ?

    I have a Hyperion 9.3 job with a # of cycles. Is there a way to tell Hyperion to use the job parameter/filter as part of the file name? For example, if there is a filter called "division" and for one of the cycles that is set to "sales", is there a syntax like "{division}" I can use in the output file name so that it picks up the filter?

    Unfortunately, I have never seen any kind of syntax that would allow this in Hyperion. The only way I know to do it would be using the java sdk, but that is not something that can be done on the fly...

  • XML Publisher - Specify Output file name

    Hi All
    I am using XML Publisher in one of our OAF pages to generate PDF reports based on some parameters. I am using the shared region which OAF has provided. On export, I see that the output file name is : template code + random number + _out.pdf. Is there anyway to specify custom output file name?? As this is little critical for me, any pointers would be greatly appreciated.
    Thanks in advance,
    Murari

    Hi Avaneesh,
    Thanks for your prompt response. I see that the logic for file name is in xml publisher utility class: DocumentHelper. I dont see any option to pass file name as a parameter to DocumentHelper. So I am not sure if extending OAF region controller : "DocumentViewerCO.java" would be of any help?? Please correct me if I am wrong. Did you ever try changing output file name from OAF page?
    Many thanks,
    Murari

  • Output file names from Premiere sequences in AME CS5

    Why, oh why, does AME not automatically names files according to their sequence names when added from a Premiere project? Instead, it auto-names them sequentially based on the project name. It is extremely annoying and confusing when trying to queue-up a project with many sequences.
    Is there a way to change this behavior (other than to simply disable "Increment output file name", which results in multiple targets of the same exact name) ?
    I really wish you could have it name the files like the sequence names.

    Just to confirm what you're saying: Premiere Pro sequences added to AME from Premiere Pro are not being named properly? Because they should be...
    However, Premiere Pro sequences added to AME from AME (File > Add Premiere Pro Sequence) are NOT named for the sequence, and there is no way around this; you get the project name with a serial digit. There is no setting to change this behavior, unfortunately--it is how it is.
    I must agree: it is a particularly annoying oversight. How to change this behavior? Like this: Adobe - Feature Request/Bug Report Form

  • Concurrent Output File Name

    Hi ,
    I need to change the concurrent output file name based on the parameters assigned.Please guide as to how this can be achieved??

    Hi,
    I need to change the concurrent output file name based on the parameters assigned.
    I am not sure whether output name based on parameter value is achievable, anyhow please refer the follow doc which might be helpful.
    What to Set $APPCPNAM for the Report Output File Naming Convention Format (Doc ID 1050938.6)
    Thanks &
    Best Regards,

Maybe you are looking for