Save File with Field data plus append more information

I am looking to create a button that will save a button and append the data from a field to it when I save it.  So it would be a click event in javascript and inside the "saveFile" information would append TextField1 and "some text I make up" which would create the saved file name.

Hi There
Not sure if you have sorted this.
But I would achieve this using the trusted function
create your form as usual
then create an extra subform and make it in to a save as box (just add a textfield and some text and a button)
have the save button on the form simply call the saveas subform
saveas.presence = "visible";
then the button on the saveas subform have the following code (under click event in javascript) 
saveas.presence = "hidden";
event.target.saveasFunc();
to get this function to work you need to create a .js file using notepad with the following code
saveasFunc = app.trustedFunction(function () {
app.beginPriv();
var text1 = event.target.xfa.resolveNode("form1[0].saveform[0].TextField1[0]").rawValue;
var text2 = event.target.xfa.resolveNode("form1[0].saveform[0].saveas[0].TextField2[0]").rawValue;
try {
event.target.saveAs("/c/forms/" + text1 + " " + text2 + ".pdf");
} catch (err) {
app.alert("Error: " + err);
app.endPriv();
Obvisously setting the targets correctly and the save directory
then save this file as any name you like .js e.g. (saveas.js) then place this file in the c:\program files\adobe\acrobat\javascripts, or similar but with reader if using adobe reader.
If you intend to use this file in reader then you will need to enable extended features in reader on the file using Adobe Acrobat.
OK the above is only availble where you have the ability to load the .js file in to the correct directory.
I used it by creating a simple installation file which placed the .js file in teh correct directory and the form ont eh end users computer.
It may or may not work for you.
If I can be of any further help let me know.

Similar Messages

  • How to make the active save-to-file with the data from GPIB ?

    Hello,,everybody !!
    I want to make the active save-to-file with the data from GPIB since starting the measurement. To save-to-file at the end of measurment is somehow risky for losing the data because my measurment have to take for long time (eg. 24-48 hours).
    Thank you in advance for anybody's help !!

    Thanks Dennis,
    I have already append, I got it but still have one small problem that between each line it has the blank line. Example as below ,
    16:40:33 54.24
    16:40:34 54.23
    16:40:35 54.24
    I want to get rid of the blank line in between.. Do you have the idea about it ?

  • Can't save file with futura font?

    Hi
    I'm having a problem saving a file that contains the futura font. This is a font my company had to buy. I never had a problem with CS1 or CS2 using this font.
    Once I place the font in the document it will let me save it once. After making changes and trying to save again I get a window that simply says "can't save file". I've tried unchecking the pdf compatible option and the compression option with no change.
    I found one thread on this site about clearing out the font cache (by deleting the file C:\windows\system32\FNTCACHE.dat) and that didn't make a difference.
    When I'm done with the document I'll be converting the text to outlines but I need a fix will I'm working on the doc.
    Thoughts?

    Mike,
    Glad you got it sorted out. After I sent you back the regenerated fonts, I discovered something which I'm posting here for everyone's benefit.
    Myle nailed it when he suggested an "an issue with font embedding." The fonts you sent me were all embedding-restricted. It's possible you could have saved your documents had you turned off the PDF compatibility option, but it's moot now.
    It's doubtful the fonts I regenerated for you will solve the problem because putting them through my font editor did not remove the embedding restriction. I would bet dollars to doughnuts that your replacement fonts do not have embedding restriction.
    To check for the embedding restriction, you don't need a fancy program. Just download this Windows extension from Microsoft and install it. Then, right-click | Properties on any font file will give you a lot more information about that font, including licensing/embedding restrictions.

  • I can't open or save file with Java Web Start

    Hi,
    i can't open or save file with Java Web Start:
    import java.io.*;
    import java.util.*;
    public class MetaDataFileCreator {
    public String fileNameSpace = null;
    public String fileName = null;
    protected Properties file = null;
    public MetaDataFileCreator(String fileNameSpace, String fileName) {
    this.fileNameSpace = fileNameSpace;
    this.fileName = fileName;
    public void createMetaDataFile() {
    try {
    System.out.println("file METADATA");
    ClassLoader cl = this.getClass().getClassLoader();
    String nameFileMetaData = fileNameSpace + fileName + ".txt";
    FileOutputStream fileOS = new FileOutputStream(cl.getResource(nameFileMetaData).getFile());
    file = new Properties();
    file.setProperty("aaaaa", "aaaa");
    file.store(fileOS, "");
    fileOS.close();
    } catch (Exception e) {
    System.out.println("Error writing metadata-file: " + e);
    System.exit(1);
    e.printStackTrace();
    I have try also to open a file like this:
    ClassLoader cl = this.getClass().getClassLoader();
    file.load(cl.getResourceAsStream(nameFile));
    also like this:
    try {
    fos = (FileOpenService)ServiceManager.lookup("javax.jnlp.FileOpenService");
    fss = (FileSaveService)ServiceManager.lookup("javax.jnlp.FileSaveService");
    } catch (UnavailableServiceException e) {
    fss = null;
    fos = null;
    System.out.println("Error with JNLP");
    System.exit(1);
    if (fss != null && fos != null) {
    try {
    // get a FileContents object to work with from the
    // FileOpenService
    FileContents fc = fos.openFileDialog(null, null);
    //FileContents newfc2 = fss.saveAsFileDialog(null, null, fc);
    // get the OutputStream and write the file back out
    if (fc.canWrite()) {
    // don't append
    os = fc.getOutputStream(false);
    } catch (Exception e) {
    e.printStackTrace();
    also like this:
    File f = new File((System.getProperty("user.home")+"x.txt").toString());
    FileOutputStream fileX = new FileOutputStream(f);
    OutputX = new PrintWriter(new BufferedWriter(new OutputStreamWriter(fileX, "UTF8")));
    OutputX.println(....
    but it doesn't work with Java Web Start.
    Can someone help me?
    How can I open or save file?
    thank you.
    Sebastiano

    Did you specify <all-permissions/> in your JNLP file? Did you sign your code? What error are you getting?

  • [svn:fx-trunk] 7661: Change from charset=iso-8859-1" to charset=utf-8" and save file with utf-8 encoding.

    Revision: 7661
    Author:   [email protected]
    Date:     2009-06-08 17:50:12 -0700 (Mon, 08 Jun 2009)
    Log Message:
    Change from charset=iso-8859-1" to charset=utf-8" and save file with utf-8 encoding.
    QA Notes:
    Doc Notes:
    Bugs: SDK-21636
    Reviewers: Corey
    Ticket Links:
        http://bugs.adobe.com/jira/browse/iso-8859
        http://bugs.adobe.com/jira/browse/utf-8
        http://bugs.adobe.com/jira/browse/utf-8
        http://bugs.adobe.com/jira/browse/SDK-21636
    Modified Paths:
        flex/sdk/trunk/templates/swfobject/index.template.html

    same problem here with wl8.1
    have you sold it and if yes, how?
    thanks

  • Dupekill - delete files with duped data (2012-06-13 update)

    A few years ago, a friend and I had gotten a hold of a game's audio ripped directly from the disc. It included thousands of files that made up the game's sound, and many of the files sounded the exact same. We set out to pare this massive set of files down to something more manageable, with Python on our side. Thus, dupekill was born. When we first made it, it didn't recurse and was basically hacked together. I spent all of last night and most of this morning tweaking it for Python 3 and tried to turn it into a flexible console app/module.
    dupekill will (by default) search the current directory for files with duplicated data and get rid of them. It accepts -h (help), -r (recursive), and -v (verbose) flags, which are obvious, and a path.
    In addition, I added a "dry run" (-d) flag, so you know what will happen before you commit to getting rid of dupes. Without further delay, here it is:
    https://github.com/sporkbox/dupekill
    AUR Project Page
    It's my first Python 3 app and the closest I've come to a truly useful piece of software.
    Comments and suggestions welcome.
    UPDATE (2011-11-04)
    dupekill v1.3 is out. I followed keenerd's optimization suggestions to make it run better. Next on the list is an AUR package.
    UPDATE (2012-06-12)
    dupekill 1.5 supports ignoring symlinks with `-i`. Also available in the AUR.
    UPDATE (2012-06-13)
    dupekill 1.6
    ignores device and character nodes as well as sockets and FIFO pipes.
    `-a` and `-v` will now display the file that a dupe is a copy of, or the original file that a symlink clashes with.
    Last edited by xelados (2012-07-25 17:43:49)

    keenerd wrote:
    This sha256 sums every file.  That could be quite slow.  For example:
    time find /{bin,opt,sbin,usr,lib,lib32,lib64,boot,etc} -xtype f -print0 | xargs -0 NNNsum > /dev/null
    sha256sum - 153 seconds (user)
    md5sum - 44 seconds (user)
    head -c 512 - 2.5 seconds (user)
    ls -l - 5.6 seconds (user)
    User time ignores IO, but I ran all on cold caches to be safe.
    Some suggestions for optimizations:  first stat the files and get the total size.  If the sizes match, then read and compare the first 512 bytes.  If those match, then md5 the files.  If those match, then sha512.  (While head looks like a fast operation, comparing the 512 bytes is not, so it goes after the size.)
    edit, added stats
    If I understand correctly, the idea is to only use up resources when needed, correct? If two files are of a different size, then obviously their contents will differ, for instance. I tested dupekill on my music collection and it surely took a little while. I imagine checking simpler things would improve the speed of the system. Thanks for the suggestion! I'll see what I can do to introduce something like that in the next version.
    Last edited by xelados (2011-10-19 11:40:15)

  • How do I create an interactive PDF file with variable data

    We would like to basically do a 'mail merge' of our list of customers with an interactive PDF file (including videos, menus, etc - not just form fill out and web links) to create a single PDF file that contains multiple mail pieces ... one for each customer ... with each mail piece being customized for that customer.  Customizations would include different greetings (Dear Bob, Dear Dana, etc), as well as different charts based on data unique to the customer, different photographs, etc.
    I've seen that InDesign and Acrobat Professional can be used to create an interactive PDF (such as from http://tv.adobe.com/watch/ask-the-adobe-ones/14-calling-rufus-about-interactive-pdf-making).  However I don't understand how I can insert data from a database, csv file, excel file etc into the PDF file so that each page, or each set of pages, within the PDF can be customized.
    Can anyone point me to a tool to use for this?
    Thanks,
    Bob Kendall

    For that kind of volume and unattended operation, you want InDesign Server – which is the server/high volume edition of INDD.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Thu, 3 Nov 2011 06:58:07 -0700
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: How do I create an interactive PDF file with variable data
    Re: How do I create an interactive PDF file with variable data
    created by Ti26E31DSxxx<http://forums.adobe.com/people/Ti26E31DSxxx> in PDF Language and Specifications - View the full discussion<http://forums.adobe.com/message/4005459#4005459

  • How to save file with the "/" symbol in the name?

    Hi,
    I have Adobe Professional 8.  I need to save files with names that include the symbol /, but Adobe interprets, for example, A/88/6, as file name 6, in a folder named 88, in a folder named A, and sets up new folders to accommodate that.  I cannot substitute another symbol as I already have thousands of pdf files in a database using the / symbol, and I need them in the same folders.
    I would very greatly appreciate any advice,
    thanks,
    Mo.

    Thanks.
    As I said, I'm pretty ignorant about these things.  I wouldn't know how to begin using a "hack".  All I know is that I was able, for over a year, to save .pdf files directly from my browser on several computers, and use the forbidden "/" symbol in every file name.  After saving the files, Adobe will happily open them, and allow me to edit and re-save them, although I now see that it will not allow me to "save as" them under a different name without removing that symbol.
    I may not be tech-savvy, but I can state that everything I have said here and above is entirely accurate.  I would be happy to open a dropbox account to show you countless .pdfs with the symbol "/" in the name.
    This is honestly not that big a deal.  I greatly appreciate this discussion, and you have inspired me to become slightly less computer-ignorant.
    Hope you all had a great New Year.  I am still recovering.
    Cheers,
    Mo.

  • Hi i have a learning HTML file with a data file include a swf files how can i open it in my ipad?

    hi i have a learning HTML file with a data file include a swf files how can i open it in my ipad?

    iPad do not support flash natively.
    Look in the app store, some browsers do support flash with limited functionality.

  • I can't read a file with the ext PDF the sender informed me that the file was reset to PDF.

    I can't read a file with the .ext PDF the sender informed me that the file was reset to PDF. But when I tried to open it the caption box informed me"the file is not in PDF format. I suspect the sender simply changed the file .ext which is why I can't open it! What can I do about it! I am working on an iPad.
    Thanks
    Mr Jim Lapthorn

    If the document is not, in fact, a PDF, then you will need to get your sender to provide a PDF.
    Can you open this document in any other application?

  • JS - Save File as Field Name in the Data Merge Source File

    Hi All - I need some help...
    I'm trying to figure out the JavaScript code to save an indd file using the data merge source file field value.
    As an example...
    Let's say I have an invoice template called template.indd that is linked to invoice.txt.
    To make it easy, let's say the text file has 1 field called "invoice number" with a value of 123
    I run data merge.
    Now I want to save the merged indd file as 123.indd
    I've got everything figured out in JS except getting the source text file data into a variable to use when saving.  This one's been giving me fits for hours!
    Is this possible??
    Thanks very much

    Did you ever get this to work?

  • Photoshop Elements 13 (Mac) Organizer - Can't save file with version sets.

    I have spent many hours now trying to get Elements Organizer to save Version Sets when I've edited a photo. I've tried more or less every little thing you can find online without any luck. But just moments ago I found that if I move the file to my desktop everything works just fine. I then tried to edit files in a few other folders (also imported to my Organizer) and found that when ever the folder was named to something with a nordic letter in it (å, ä, ö) then I couldn't save my file with version sets (option greyed out) but if I moved that same file to another folder, well then everything worked as it's suposed to.
    I'm using the trial version of PSE 13 for Mac (Yosemite) and the full version is ordered and on it's way. But if this problem can't be fixed, I need to return that order and buy some other photo editing program.
    Can anyone help me with this problem? Is there perhaps a solution to this?
    Please, any help is much appreciated!

    I'm using the English version (as more or less always - Swedish is rarely an option). The thing is that I have never encountered this problem before in any other software I've been using, and certainly not in Aperture that I've been using up until now.
    I name my photo folders with a date and a few words, for ex. "2014-12-31 New Years in Stockholm" (but I normally write in Swedish). I use this method so that my folder that contains the original photos will be easy to find in even without any other software than Finder (or Windows Explorer if I connect my external drive to a Windows machine). I could change the name of all of my folders, or at least all of the folders with a name containing one or more of the letters Å, Ä or Ö to "force" PSE to work as it should, but why? This really shouldn't be a problem.
    I was hoping that their was a simple option or something like that that could fix this issue, but I guess not.
    If this problem lies in the software itself I will have to return it and look elsewhere (but where? Lightroom is certainly not an option if Adobe can't handle "normal" letters and Aperture is discontinued in a few months).
    Thank you for your reply!

  • How to get 'exit event' script to execute again when form file with saved data is re-opened?

    I have created an Adobe Dynamic XML Form using LiveCycle Designer with many fields / subforms that are ‘visible’ or ‘hidden’ dependent upon the options selected from various Drop-Down Lists. The form has also been save-enabled. Users can successfully complete the form and save a copy with the data that has been input.
    The problem I have is that when the saved file is re-opened the ‘hidden’ fields / subforms which were previously made visible by selection of the appropriate options from the Drop-down Lists are now NOT displayed. However if you make the same selections from each of the Drop-down Lists AGAIN the hidden fields / subforms are displayed and do contain the data that was entered.
    The problem appears to be that the script which determines whether a field / subform is ‘hidden’ or ‘visible’ is an
    <event activity="exit" name="event__exit">
    which is followed by
    if (this.rawValue == "0")- (i.e. the value of the Drop-down List)
    sfCompanyDetails.presence = "visible";
    sfRecruitmentAgency.presence = "hidden";
    etc, etc
    and, therefore, it is not executed again when the saved file is re-opened.
    Can anyone please advise how to achieve this?

    Moved from Adobe Connnect Forums.

  • How do I save emails with original dates to a cd

    I am trying to save a sizable group of emails to a CD and have tried to create a folder and simply drag and drop each one.  This is both time comsuming and it leaves me with all the dates reflecting today instead of the original email dates.  Is there a way to copy a groupo of email "with original dates" to a CD.  Please advise - urgent

    Hello
    into mail , make a new mail box (plus button left angle of mail )
    move messages to archive into it ,
    then archive the new mail box ( right click option to archive )
    then burn into cd the "mbox" file in this way no risk to lose date
    Pierre

  • Crertifiacte download in Safari Browser saves file with CGI name

    We need to download user certificate in FireFox and Safari browsers as a multiple MIME message.
    ---- Sample MIME message template - START ----
    Content-Type: multipart/mixed; boundary="ABABABABABAB"
    --ABABABABABAB
    Content-type: application/x-x509-user-cert
    <cert_blob binary here>
    --ABABABABABAB
    Content-Type:text/html
    <HTML content here>
    --ABABABABABAB--
    ---- Sample MIME message template - START ----
    In FireFox the certificate gets downloaded and installed properly.
    In an ideal world BROWSER should handle "Content-Type:
    application/x-x509-user-cert". Browser should recognize that a user
    certificate is being downloaded and provide steps for user to install.
    But Safari browser prompts user to save the file, where filename is same as the CGI. If you choose “Download”, you will be prompted to install certificate into KeyChain. Displaying the filename as CGI is bit odd and confuses end user.
    How this can be fixed. Why the end user experience is different than Firefox.
    Filename can be changed by using Content-Disposition: HTTP header, but then it would require to have different pages for Safari and Firefox.
    Any input is appreciated.
    Thanks

    hi..
    1. yes i am able to log the file name properly on the server side. Whatever name i use, in whatever language, its showing correctly on server logs.
    2. the content of the file is variable with japanese, english or any other language
    3. in firefox, the name is converted to ascii characters... a combination of asterix, underscores, letters and others.
    4 No i am not getting an exception.....the file isdownloaded with the kindof name i mentioned in above point but the contents are intact. So the contents of file really dont matter in this case. its only the name that is giving a problem.
    I found a solution which was by modifying the content-disposition field of the header. For firefox, it should be something like
    response.setHeader("Content-Disposition", "attachment;filename*=UTF-8''%D0%9C%D0%BE%D1%81%D0%BA%D0%B2%D0%B0.");
    where the numbers are the hex representation of the filename in bytes. ie
    byte[] utfName = filename.getBytes("utf-8");
    String nameToSend = /*Hex represenation of utfName with each hex character appended by % */
    This method is working in firefox but not IE. Now i need to get this sorted on that.
    ny help...

Maybe you are looking for