Grabbing the filename of the document a dynamic stamp is being placed into.

I need to get the filename of the "parent" document a stamp is being placed into to put into one of the stamps textfields. This was what I was hoping would work inside of stamps textfield custom calculation:
event.value = app.activeDocs[0].documentFileName;
Thats a no go. For some reason activeDocs is always empty, despite the fact I have 3 pdfs open. Does anyone have any ideas on why this is not working? Have a better idea to do the same thing?
Thanks for your help.

Thank you! Works great.
And for those looking for the quick answer in the future:
event.value = event.source.source.documentFileName;

Similar Messages

  • Retaining the FileName in the Receiver FTP adapter

    Hi experts,
    I have a situation here, were i need to retain the FileName in the message header in the receiver FTP adapter.
    I have tried using variable subtitution but seems the FileName is not supported in variable substitution.
    Please help
    Thanks

    Hello,
    if you need file name to be retained in the receiver adapter from the sender side. then u can do that by dynamic configuration using adapter specific message attributes, check this blog for details-
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    if you dont have a mapping in your interface to use dynamic configuration, then you can do it via adapter module also- have a look here, /people/sap.user72/blog/2005/07/15/copy-a-file-with-same-filename-using-xi
    regards,
    francis

  • Receiver determination based on the filename of the incoming xml file

    hi folks,
    is it possible to base the receiver determination from the filename (pattern) of the incoming xml file?
    suppose, if the filename is partner1.xml, then the receiver determination has a condition of partner1.  in this case, the message is received by partner1.
    any advise please?
    thanks!
    -lex

    Hi Lex,
    You can use Enhanced Receiver Determination for this. Do your normal mapping from source to target. And another mapping for the receiver determination. In that mapping you can use the UDF for Dynamic Configuration and set the filename as the receiver service name.
    Use the following blog for Enhanced Receiver Determination:
    /people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16
    This blog explains the usage of Dynamic Configuration:
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Regards,
    Sanjeev.

  • Writing the filename as the prefix for bates or page numbering during batch process.  PRO 9

    While batch processing in Acrobat PRO 9 I am trying to insert the file name as the prefix automaticily either for page numbering or bates labeling.
    Not very good with javascript.  Any one have any ideas?
    Everyone is always asking to have the filename as the prefix and it starts to wear on you after 1000 exhibits.

    Don't know what script you're using, but this command will return the document's file name:
    this.documentFileName
    and this one will return the full path:
    this.path

  • Processing the filename in the payload

    Hi,
    I am getting the filename in the payload, I want to read that file.
    How do I achieve this..
    Regards,
    Varun

    Hi,
    For Example if we want to get the Input file name & Directory Details into Target message.
    Ex:
    I/P File name is :::::231004.xml  Ftp Serve Path : //xideveloper/Test_XI/PO
    O/P File name can be :::Any thing
    Input File :  231004.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_TEST_AGCO xmlns:ns0="http://tafe.test.com">
       <Header>
          <NAME>giri</NAME>
       </Header>
    </ns0:MT_TEST_AGCO>
    Output File : Out.xml
    Here in this output we are able to get the Filename & Directory Info in the FileName_1 Field.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_target xmlns:ns0="http://test.com">
    - <Header>
      <Name_1>giri</Name_1>
      <File_Name_1>231004.xml //xideveloper/Test_XI/PO/</File_Name_1>
      </Header>
      </ns0:MT_target>
    You should capture the Source File name & Directory Info into Target Message.
    1)     Write One UDF & Map Like Constant(u201Cu201D)---UDF----FileName_1
    2)            In Advanced mode check the check box Set Adapter-Specific Attributes
    3)     Check the ASMA Parameters in Sender Adapter Alone
    4)             No need to check the check box ASMA in the receiver side
    UDF Code:
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    //for getting filename
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    //for getting directory
    DynamicConfigurationKey key2 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
    /similarly for getting filetype, filesize you need to specify in the above code instead of filename or directory/
    String FileName = conf.get(key1);
    String Directory = conf.get(key2);
    String Cat = FileName+ " "+Directory;
    //return FileName;
    //return Directory;
    return Cat;
    Regards
    Seshagiri

  • I need to start and stop logging based on a digital input event(or analog if necessary), log data for several seconds prior to the event, and have the data file close at the end of event and increment the filename for the next logging event.

    I don't know if this can be done with VI Logger or need to use Labview V7.1.

    After browsing through the VI Logger User Manual, it looks like the triggering that you are hoping to accomplish is possible. However, incrementing the filename for the next logging event is not going to be possible. VI Logger does exactly what its name tells - logs data. I don't think the automation that you are hoping to accomplish is possible.
    For help with setting up your application, if you do choose to stay with VI Logger, make sure to chek out the Getting Started with VI Logger Manual.
    Best of luck.
    Jared A

  • How to get the filename of the active jsp page?

    how can i get the filename of the active jsp page?

    You could register the JSP [ages in the web.xml and then use the ServletConfig.getServletName.
    You could use the JspContex.getServletName which will return the registered name or the name of the servlet class.
    You could programmatically add a page context attribute that holds the jsp page name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to see the filename of the photos available in the iphone without downloading them or connecting to any other device

    I am unable to find the filename of the photos available in my iphone 5. How should i get that?

    You can't view that on the iPhone natively.
    You can, however, import the pictures to your PC or Mac and view the file names there. They should be in the IMG_XXX format.

  • Get only the filename not the full path of the file.

    hi to all..
    how can i get only the filename of the file not the full path and to be placed on a textinput.?
    example:
    when i'browse the file and select sample.txt
    "C:\Users\user\Desktop\folders\sample.txt" this will be inputted on the textinput.
    however, what i want to have is when i'browse and select a file..
    textinput should only contain "sample".
    does anyone knows how to do it?

    Hi cyrus@adobe,
    How are you getting the full path of the file when you browse, I dont think for security reasons the Flash Player will aloow to do so. You can only get the file name not the full path of the file when you browse.
    Are you using Flex4..?? I am not sure whether this is possible in Flex4..However if you are getting full path and if you wanted to show only the filename then you can just use theString class split function to acehive this..
    var fullPath:String = "C:\Users\user\Desktop\folders\sample.txt";
        var splitPath:Array = fullPath.split("\");
        textInput.text = splitPath[splitPath.length-1];
    Thanks,
    Bhasker

  • Has anyone tried changing the drummer on a drummer part that has already been placed into a track stack?

    Has anyone tried changing the drummer on a drummer part that has already been placed into a track stack?
    I find that if I do that, the parts in the stack all get merged together with no way to expand them (ie the triangle you would click on to expand the stack disappears).
    I believe this is a bug, and wonder if anyone else has encountered it?

    Mac Fool wrote:
    Unfortunately, when I click on the link I get "Error: you do not have permission to view the requested forum or category".
    i believe the thread was removed due to the discussion was not in accordance with the ToU of the forum. it was a heated discussion as well (i was following it).
    here's a similar discussion from the Apple TV forum. note the very last post ...
    http://discussions.apple.com/thread.jspa?threadID=2313089&start=0&tstart=30
    JGG

  • Can an image in the slideshow widgets be moved around inside the bounding box as can be in a normal image placed into Muse (double clicking on a placed image gives the functionality to move the image around - as per Indesign functionality)

    Can an image in the slideshow widgets be moved around inside the bounding box as can be in a normal image placed into Muse (double clicking on a placed image gives the functionality to move the image around - as per Indesign functionality)

    Can an image in the slideshow widgets be moved around inside the bounding box as can be in a normal image placed into Muse (double clicking on a placed image gives the functionality to move the image around - as per Indesign functionality)

  • How to get the filename of the opened Illustrator document

    Hi All,
    I'm using Adobe Illustrator CS2, i have problem in getting the file name of the document opened. i have succesfully got the document reference(of opened document) but from that reference i'm not able to find the method which gives me the filename. Can you please help me out.

    Hello, I need to automatically enter the file name and date in a drawing using illustrator DC 2014, please can you help me understand how can I do?
    Thanks so much

  • Is there a way to automatically add the filename in the page header when batch printing text files directly from finder?

    hello, i have 80 text files (docx). the finder preview works great and i can open them in pages.
    I need to batch print them from finder:
    I select all the documents > drag on printer's icon> printer puts them in queue ( after an on the fly pdf conversion)  ad starts printing.
    BUT
    i need the filename printed on each page  ( in hearder or footer) , not only the regular text content.
    Do you know if there is a workaround?
    thank you
    Tullio

    If that section has an ID or NAME attribute then you can add that to the URL (#anchor) that you want to reload.
    See View > Page Source
    https://support.mozilla.com/en-US/questions/774792#answer-128100

  • Adding filename in PDF form and inserting the filename as the subject when emailing the form

    I have created a form in LiveCycle and have added 2 buttons - Save As and Submit by Email (created successfully thanks to the posts in this Forum).  Can someone please advise how I can:
    1.  Add the file name to the PDF document when the Save As button is clicked.
    2.  Use the file name as the Subject when the user clicks the Submit by Email.
    Thank you in advance for your help with this query.

    Here is a sample for your save as request.
    http://thelivecycle.blogspot.com/2009/11/save-form-to-specific-directories-and.html
    To determine the file name and use it in the subject you can use for example:
    var FileName = event.target.documentFileName;
    event.target.mailDoc({
            bUI: false,
            cTo: [email protected],
            cSubject: FileName,
            cMsg: "Bla bla bla...",
            cSubmitAs: "PDF"

  • How do I set the filename using the inline reader with a web browser?

    Hi all,
        Most likely an age-old question that I have not been able to track down an answer for ...
        My application presents a pdf to the user using an embedded reader and gives them the saveas button as an option in the toolbar.
        When they go to save the file it defaults the filename to be the entire URL of the document.
        How can this be changed to be something more user-friendly??
        Thanks in advance for any help you can provide for this issue.
    -Dennis

    I suppose you could use Javascript.
    Or you could display the content within the applet itself.
    But probably the best thing would be to have the server return a URL (or an identifying token to be added to a URL) and the applet could use AppletContext.showDocument to send the user to another page.
    That's my opinion anyway.

Maybe you are looking for

  • Tables for materials and services in SRM

    Hello, In what tables can I find the information of materials and services of the COMMPR01 transaction, especially the Orderunit-field? This field is not stored in the  COMM_PRODUCT table. Thanks, Aart

  • Upgrade to 6.0.4 lost All purchased music et al...

    went to 6.0.4 from some flavor of 5 and now No purchased music At All, also about 1/3 of my library is gone also curious that.... tried the usual trashing prefs etc to no avail

  • Backing up a bare-bone install questions

    So I've set up a bare-bone install (no Desktop Environment, absolute minimum packages) which I thought about backing it up by using a LiveCD distro called Parted Magic. From the terminal I copied all the files from / to an "arch" folder: cp -a /media

  • Protecting some of the form fields

    I have set up auto-populating of form fields in an Acrobat Pro 9.0 form. A selection from a drop down (a company name) auto-populates the address, phone number fields, etc. How can I lock or protect the address and phone fields so that someone can't

  • Add photo to keynote

    Is there no way to insert a photo in to a keynote page with out installing I photo? Iphoto is a horrible piece of software for any one other than facebook folks. Keynote keeps telling me to go to Iphoto too get an image and will not let me choose fro