Filename from field

I have seen in past discussions about the difficluty and even impossibility of creating a SAVE AS filename from a field value in an Adobe form.  These discussions were posted back in 2006-2008.
I am hoping that someone knows a relatively simple way to do this (if it's possible in Acrobat 10)  I am relatively new to Adobe and Javascripts.
All I want to do is have a button that does a SAVE AS (I can do this), but pull the filename from the "NAME" field in the form and add the .pdf extension and place it in a particular directory on the server.
Seems like this would be possible...  can anyone point me in the right direction?
Thanks a million!!
DMD    

George,
I think I should document exactly what is happening, so here goes…
FROM ACROBAT X PRO - The form is working and saving via the mouse up JavaScript action coupled with the folder-level JS that contains;
myTrustedSpecialTaskFunc   and  mySaveAs = app.trustPropagatorFunction
In order to save it for READER users, I do a FILE, SAVE AS, READER EXTENDED PDF, ENABLE ADDITIONAL FEATURES.
I copy the folder level JS over to the proper JS folder associated with READER
I can open the file in READER and edit the form fields. 
When I try to save the file using the Custom Save As button that works in ACROBAT, I get this error;
NotAllowedError: Security settings prevent access to this property or method.
Doc.saveAs:4:Field Save:Mouse Up
NOTES:
·         I know that I am using the correct JavaScript folder for READER because I placed this JS code in the folder and it DOES display when I open READER-  app.alert("It works!");
·         I am saving the file in both instances to c:\temp\filename.pdf
·         When I distribute the form, I will be able to place the folder-level JS on the users machine.
Per your last post, when I open the file that I have saved as above for READER in ACROBAT and go to file>properties>security I have the following displayed;
Security: No Security
Can be opened by: All versions of Acrobat
Document Restrictions Summary
Printing: Allowed
Changing the document: Not allowed*
Document assembly: Not allowed*
Content copying: Allowed
Content copying for accessibility: Allowed
Page extraction: Allowed
Commenting: Allowed
Filling of form Fields: Allowed
Signing: Allowed
Creation of template pages: Not allowed*
*This document restricts some Acrobat features in order to allow for extended features in Adobe Reader
At this point, I am a a loss as to what is causing the error.  I hope this documentation helps you see where my problem is.
Thanks,
Dan

Similar Messages

  • Autosave form with filename from field

    can anyone tell me how to autosave a form (maybe with a button?) where part of the filename is taken from a field in the form?
    Thanks!

    This requires installing a script on the local machine. See this tutorial for more information: http://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript

  • File Receiver - Dynamically create filename from data in payload

    Hi there.
    Can anyone tell me the approach I need to take to be able to use the data in one field to determine the filename in the file receiver adaptor.
    I have a requirement that requires that I save a file with the following mask:
    xxxx_xxx<b><date extracted from field in payload></b>.csv
    I would appreciate any help on this.
    Thanks in advance.
    Mick.

    Hi Mick,
    you just need to use adapter specific parameters
    and you will be able to set the name in your mapping
    (from your payload)
    /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Dynamic Filename from source Idoc

    Hi All,
      I need to give the filename from the field in the source idoc. the field value need to be picked up as below
    ZSSV_GENERIC_IDOC
    -IDOC
    --Z1SSV_ITEMS_SUMMARY
    ---HOST_FILENAME
    Note: - represent the level in the datastructure.
    here the value of HOST_FILENAME need to be given as filename.  I check the Variable Substitution but I hope we can give only the values from message: and payload:
    Please let me know how to give this valueas filename.
    my filename need to be as
    HOST_FILENAMEmatmastimestap.dat
    Regards,
    Dhill

    Dhil,
    Check the below code if its feasible to you rather than going for variable substitution.
    input --->UDF -
    >Root node of  target.
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create(
        "http://sap.com/xi/XI/System/File",
        "FileName");
    String fname =input+"MATMAS";
    conf.put(key,fname);
    return "";
    In receiver comm.channel check the checkbox for ASMA -Filename.
    Creation mode - AddTimestamp.
    Hope it helps!!!
    Best regards,
    raj.

  • Same filename from a sender to receiver :: DO we really need UDF ?

    Hi
    This is in refrence of Weblog " <i>same filename from a sender to a receiver file adapter "</i> by <i>Michal Krawczyk</i>.
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Actually I worked on another weblog by " <i>Shabarish Vijayakumar</i> "-->
    /people/shabarish.vijayakumar/blog/2006/04/03/xi-in-the-role-of-a-ftp
    And I am getting file created on the receiver side with the same file name as on the sender side without using the user-defined function mentioned in Michal's weblog.
    Now my question do we really need UDF for same file name when on the sender we are polling for one file only by its name.
    I am not exaclty getting the benefit of this feature. Can you tell me why do we need this feature as in whatever scenarios I worked I mentioned the file names in both Sender & Receiver File Adapters.
    So I am not getting what is the use of using this UDF, when we mention the name of file needs to be created on Receiver side.
    - Lalit Chaudhary -

    Hi
    I put this code for UDF -->
    <i>String valueNew;
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String valueOld = conf.get(key);
    if (valueOld != null)
        valueNew = valueOld.replaceAll("input123",name);
        conf.put(key, valueNew);
    return valueNew;</i>
    Signature of UDF is this :: <u>public String GetFileName(String name,Container container)</u>
    But when I am testing this UDF, I am getting following RunTime exception -->
    <i>Runtime exception during processing target field mapping /ns0:FileFTP_InOut_MT/File_nm. The message is: Exception:[java.lang.NullPointerException] in class com.sap.xi.tf._FileFTP_MsgMapping_UDF_ method GetFileName$[lalit, com.sap.aii.mappingtool.tf3.rt.Context@735df3b0] com.sap.aii.mappingtool.tf3.MessageMappingException: Runtime exception during processing target field mapping /ns0:FileFTP_InOut_MT/File_nm. The message is: Exception:[java.lang.NullPointerException] in class com.sap.xi.tf._FileFTP_MsgMapping_UDF_ method GetFileName$[lalit, com.sap.aii.mappingtool.tf3.rt.Context@735df3b0]</i>
    I am not much of Java Guy, can you pls. suggest what am I doing wrong, I copied this code from <a href="http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm">SAP Help</a>
    - Lalit -

  • Problem: The same filename from a sender to a receiver file adapter - SP14

    Blog : /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    My Problem:
    The thing works for me and i am able to get my input files name as my output file name. But one thing i noticed is that in my target message, the field where i have mapped the code it always returns the value "null" but finally when the file is created i get the required result.
    My input file name is input.txt and i get the same name in my output file too.
    In sxmb_moni if i check DynamicConfiguration link i see the following
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!-- Response
    -->
    - <sap:DynamicConfiguration xmlns:sap="http://sap.com/xi/XI/Message/30">
    <sap:Record namespace="http://sap.com/xi/XI/System/File" name="SourceFTPHost">10.25.116.98:21</sap:Record>
    <sap:Record namespace="http://sap.com/xi/XI/System/File" name="Directory">/input/test</sap:Record>
    <sap:Record namespace="http://sap.com/xi/XI/System/File" name="SourceFileTimestamp">20060228T112200Z</sap:Record>
    <sap:Record namespace="http://sap.com/xi/XI/System/File" name="FileType">bin</sap:Record>
    <b><sap:Record namespace="http://sap.com/xi/XI/System/File" name="FileName">input.txt</sap:Record></b>
    <sap:Record namespace="http://sap.com/xi/XI/System/File" name="SourceFileSize">770</sap:Record>
    </sap:DynamicConfiguration>
    But when i check my mapped field i see
    <field3>BodyC</field3>
    <keyfield>02</keyfield>
    <field5>BodyE</field5>
    <field6>BodyF</field6>
    </Body>
    - <Trailer>
    <keyfield>03</keyfield>
    <b><field2>null</field2> -> Null value instead of input.txt</b>
    </Trailer>
    </ns0:MT_Putfile>
    The code i have used to map the field2 of the trailer is the following ....
    <i>DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileType");
    String valueOld = conf.get(key);
    return  valueOld;  </i>
    Any clues ?

    Gosh this is spooky
    Anyway i tried with that line of code but it throws me an error during activation ...
    Activation of the change list canceled Check result for Message Mapping mm_IS | http://t-systems.com/Shabarish:  Starting compilation  Source code has syntax error:  /usr/sap/TXT/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map387c7300a9ac11da9d280011256afae8/source/com/sap/xi/tf/_mm_IS_.java:104: cannot resolve symbol symbol : method getTransformationParameters () location: interface com.sap.aii.mappingtool.tf3.rt.GlobalContainer DynamicConfiguration conf = (DynamicConfiguration) container.getGlobalContainer().getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION); ^ 1 error
    The code is :
    DynamicConfiguration conf = (DynamicConfiguration) container.getGlobalContainer().getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    //DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    //String valueOld = conf.get(key);
    String valueOld = conf.toString();
    return  valueOld; 
    Thanx Renjith so far .. but i hope this gets resolved (else i will loose my sleep thinkin abt the situation)

  • Map Filename to field within mapping

    I have a requirement to map the filename to a field in the header of a file to file scenario and then create a new filename based upon the fields of the data structure of the header record.
    I am comfortable using the variable substituion to either map the filename from sender to reciever and to use dynamic file names to create the new file name, but I am unsure how i can the read filename from the Adapter Specific Message Attributes and pass this value to a field on the outbound structure of the mapping.
    Can anyone give me some pointers on how i can map the sending "Filename" to the outbound field within PI7.1 SP6?

    Is it any different from PI 7.0?
    http://help.sap.com/saphelp_nwpi71/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm
    In your UDF, just use .get() (no need for .put() ).
    Regards,
    Henrique.

  • Get filename from file sender adapter

    Hi Experts,
    I have a question regarding the file/ftp adapter (sender).
    I have a directory with xml and pdf files. for every xml file there is a pdf file with the same filename. for example:
    file1.xml
    file1.pdf
    file2.xml
    file2.pdf
    file3.xml
    file3.pdf
    Now I want to read the xml file with the file sender adapter. afterwards I want to read the related pdf file. for example: If I read the file file1.xml afterwards I want to read the pdf file file1.pdf with the file sender adapter. For this it is nessessary to get the filename from the xml file so that I can read afterwards the pdf file. How can I realise it?
    Thanks and best regards
    Christopher

    Hi srinivas,
    thanks for your quick answer.
    That the file adapter is not able to read pdf files is clear to me. In this case I only want to transport the pdf. that works fine. I tested it.
    the problem is the following:
    I have a xml file with the name "file1.xml". I read the xml file with the sender file/ftp adapter configured with filename "*.xml". Then I want to import the pdf file with the name "file1.pdf". Therefor I need the filename from the xml file.do you know what I mean? So XI has to know the filename of the xml to import the pdf with the same name ...
    regards

  • How to acces the filename from Message Header during variable substitution

    Hi,
    We need to access the attribute filename from Message Header during Variable Substitution.We are able to access the following attributes of Message Header
    sender_party, sender_service, receiver_party, receiver_service, interface_name, interface_namespace,
    message_id (message ID with hyphens, for example 9fbe1ff1-9a0d-11d9-8665-cbf10a126331)
    message_id_hex (message ID in hexadecimal format, for example 9fbe1ff19a0d11d98665cbf10a126331)
    For example, if we want to specify the interface name from the message header in the target directory or in the file name scheme, we enter message:interface_name as the reference.
    In the same way i need to access the filename which we get in the Message Header(which we get in the Message Header when we check the Adaptor specific message properties and filename in sender CC).Any suggestions on the same
    Thanks and Regards,
    Bhargav
    Message was edited by:
            bhargav gundabolu
    Message was edited by:
            bhargav gundabolu

    Hi Bhargav,
    Use this UDF to retreive the file name from the Dynamic Configuration Payload in the mapping.
    getFileName(UDF) -
    > Filename(node in the target structure).
    public String getFileName(Container container)
       //write your code here
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String ourSourceFileName = conf.get(key);
    return  ourSourceFileName; 
    Create a node in the target structure top hold the filename returned by the UDF.
    Now your payload will have the filename along with the actual data.
    U can use the variable substution now as u use for the other data in the payload since the filename is now a part of your payload.
    Regards
    San

  • HT5624 Why in my email ( the one on my ipod5 that I use with my apple ID) when I get emails about my use of my apple ID to use a service in the from field it has my fathers name and when I click on it it shows his contact info ????

    Why in my email ( the one on my ipod5 that I use with my apple ID) when I get emails about my use of my apple ID to use a service in the from field it has my fathers name and when I click on it it shows his contact info ???? I also set up my apple ID with a new email account and also I signed up for iCloud but used the same apple I'd email and password but it gave me a I cloud email! I did activate the favorites in my email . Noticed the from field has my fathers name and contact and it is a notification about me using my apple ID to sign in to FaceTime! Something is messed up, not sure how or why???

    i didn't read a lot of your 2nd paragraph, but it seems like the password is the issue, right?
    do a true clean install
    reboot your machine and hold down command+option+r, you should see a spinning globe - if you don't see the globe or anything that reads internet recovery, shut down and try again
    at menu, chose disk utility and once there, find your HD on the left side, select the physical name and erase it as mac journaled
    exit disk utlity
    at menu, choose install OSX
    this time, when it asks for a password just hit continue, it will let you complete without a password
    you should be able to get into your laptop, now figure out what password you'll be able to use with your kb issue

  • How can I change the "From:" field in iOS Mail?

    This is a weird one.
    I have a gmail work email account that has been set up for me. There's a primary email address assigned to it, and a secondary one (which is the one I want to use).
    No problem at all sending from the secondary account on my MacBook Pro. I just hit the drop down menu by the "From:" field, and I can select it from there.
    However, when I send from my iPhone, I'm only given the option of sending from my primary email address, not the secondary one. This is despite the fact that I've synced Mail accounts via iTunes.
    Any idea how I might fix this so I can send from the secondary account on my iPhone?

    First of all, please fill in the Computer Model and Operating System fields on your My Settings’s profile (and click Save). This is essential information that should always be provided when asking for help.
    Now, what does “I can't change it” mean? What appears in the From header of the messages you send is determined by your Mail > Preferences > Accounts > Account Information settings...

  • How to use alias in "From" field when I send a mail with utl_smtp ?

    Hi all,
    I'm using a PL/SQL package with an Oracle 11G database to send mails. It works fine but instead of use of my mail in "From" field like "[email protected]" as sender E-mail address, I would like to have "Toto" in the sender address. I tryied to use utl_smtp.mail(l_connection, '<toto> [email protected]') but it doesn't work. The only way I can send mail is when I set utl_smtp.mail(l_connection, '<[email protected]>') directly. When I use the Alias, I have an error from smtp server telling that I use a bad syntax address.
    Does someone know how to use the alias ? Where do I do a mistake ?
    Thank you for your help.
    sis2b

    Thank you, I find how to solve the problem thanks to your link.
    I try to send HTML E-mail so I had the From in the from field writen in the header of the mail and not to initialize the connection.
    sis2b.

  • Apple Mail "From:" Field Customization

    I have several IMAP accounts in Apple Mail. One of them is a Gmail account that I use as a conduit account for work, so when I reply to messages or compose new mail, I would like it to display a specific address in the "From:" field, instead of selecting it every time (I added my work account to Mail as well, though I forward messages to my Gmail account). So, for example, my Gmail account is "[email protected]" and my work email is "[email protected]".
    When I compose messages from the Gmail account I would like the "From:" field to display "[email protected]" instead of "[email protected]". I am able to set up Gmail web interface to do this, but have not been able to set up Apple Mail to do the same (aside from instructing it to send messages using my work server, instead of the Gmail server).
    In Lion, Mail was able to specify that address if I was replying to a messages sent to "[email protected]" but would show "[email protected]" for every new message. In ML, even replying to a message sent to "[email protected]" shows "[email protected]" in the "From:" field.
    Does anyone know how to instruct Mail to choose only "[email protected]" when replying or composing new messages?
    Thanks for your help!

    What you are describing is what is known as "articulation work". To quote Suchman, "'Articulation work' names the continuous efforts required in order to bring together discontinuous elements - of organizations, of professional practices, of technologies - into working configurations". That makes it sound better than it is.
    Ideally, your non-profit needs a decent webhost like Dreamhost that can transparently integrate with Google Mail and make the whole problem go away.
    asmystiq wrote:
    I configured Mail to use the work SMTP server to send messages from the Gmail account.
    This is what is known as e-mail spoofing.
    In the web Gmail interface, everything works smoothly.
    Yes. Google is known for ignoring laws and facilitating any kind of network traffic, legitimate or not, in order to track activity and build value for its advertising business.
    In Mail, even if the message was sent to [email protected], Mail replies show up with [email protected] in the "From:" field
    Yes. That is the way it is supposed to work.
    I also set up a rule for redirecting Sent messages to Gmail and moving the original copies to Trash on the work account. In Lion, all was well and the replies indicated [email protected] in the "From:" field and when I manually applied the rule to the Sent messages, they were sent to the Gmail account.
    That's the "articulation work" in action.
    I've looked at some of the discussion you linked (thank you for that) and found it enlighening, though I am not done reading all of it yet.
    There are a number of different issues going on. Modern e-mail is extraordinarily complicated.
    What I do now is not forward work email and keep the daily workflow focused on the Inbox of the [email protected] account, which handles replies appropriately. I then set up a rule to redirect any mail from the work account that is over a day old to the Gmail account. I then organize it on the web interface (which is not optimal, but cuts down my time spent on the web interface from "always" to once daily or so).
    You could probably improve that by creating folders in GMail from within Apple Mail. Once you move an old message from the work server to GMail where you have more room, you can have additional rules to move it around within GMail.
    The only real, definitive solution is to have more room for e-mail. You should contact your system administrator and suggest switching to GMail or Microsoft's version. Everyone hates dealing with e-mail. That is why these transparent e-mail services are so popular. Once it gets setup, all the magic happens in the name servers and all anyone ever sees is "work.org". Plus, you will likely gain some additional functionality that Microsoft Exchange supports that older systems do not.
    In the interim, the best solution is to show the "Reply-to:" field and put your "[email protected]" address in there. Replies will be directed to that address but you will still have to move everything around after receipt. You should be able to configure your "work.org" e-mail system to automatically forward all you rmail to the GMail account. Combined with "Reply-to:", that is about as good as it is going to get.
    If you need more clarification, let me know. Though I think that ML is behaving in a way that is not convenient and I don't see a way to create a hack to fix it. It seems like it would be an easy feature to add, but who knows what Apple folks are thinking...
    What you have described is e-mail spoofing and Apple doesn't support that. No legitimate internet e-mail provider should support it. If Google does, then that is Google's problem. Most other e-mail servers would not allow that and that is why Apple doesn't support it. And, in general, Apple software is simply not very amenable to "hacks".
    I have though about writing an Apple Mail plugin to automatically add a "Reply-to:" to certain e-mail messages. It will be a few months before I get time for that, so don't hold your breath.

  • HT1277 how can i remove the email add from a deleted mailbox from the prompts of the 'from' field?

    how can i remove the email add from a deleted mailbox from the prompts of the 'from' field?

    Thanks a lot, roam! That worked

  • The incorrect iCloud email (in the from field)address is appearing

    The incorrect iCloud email (in the from field) address is appearing on my iPod touch, but not on my MacBook Pro. The I Pod's ICloud email account is using my account for Itunes etc., not the icloud email address, how can I reset the "from" address?

    ok thanks, so if I do nothing straight away, they won't free the address up and give it to someone else, correct?

Maybe you are looking for