Extract the uri filename of an attached file

Hi,
I am attaching a file by the click of a button. It is required to retrieve the filename of the attachment as a Text/ label.
can anybody help me out on these lines.
Prash

As documented in Converting Acrobat® JavaScript for Use in LiveCycle Designer Forms:
"All Acrobat Annot properties and methods can be used in LiveCycle Designer forms.
"Note: Only Static forms support the annotation layer; Dynamic forms do not."
You will need to know the number of the annotation on the page and then you can use the "contents" property to obtain the name of the file.

Similar Messages

  • Extract assets doesn't extract the 0.5x or 0.25x files but does the 2x and 3x, why?

    Dear Photoshop Community,
    I'm trying to extract assets but this doesn't extract the 0.5x or 0.25x files but does the 2x and 3x, why?
    I get the original file, and 2 folders, one named scaled-at-200 and one named scaled-at-300.
    I am using Photoshop CC 2014 on windows 7 and i don't get any other extracted assets.
    However using Photoshop CC 2014 on my windows 8.1 machine i get all the assets and two additional folders scaled-at-50 and scaled-at-25.
    Why is this? Is there a fix for this issue?
    Thanks,
    Craig Williams.

    Hi Ganesh,
    Thank you for your reply.
    However I don't think the problem I got is related to the boldFont object. I actually want all the column hearders to be bold so I did the following codings and it works:
    Font headerFont = table.getTableHeader().getFont();
    Font boldFont = new Font(headerFont.getFontName(), Font.BOLD, headerFont.getSize());
    table.getTableHeader().setFont(boldHeaderFont);
    It is actually working - it changes all the headers (except for the column0 which has its own hearderRenderer) to be bold. So I think the object boldFont itself is ok.
    My problem is that when I set the boldFont to the myHeaderRenderer for colomn 0, I just can't that that column header to be bold. I guess the problem is related to the header renderer.
    -wdyaoj

  • Which programs if any can extract the image from existing QTVR pano file?

    Which programs if any can extract the image from existing QTVR panorama files that were created with one image?
    Any ideas?
    Thank you

    Unless you can find an open source ODBC driver for SQL Server that runs on Solaris (and I wouldn't be overly hopeful there) Heterogeneous Services would require that you license something-- a third party ODBC driver, a new Oracle instance, or an Oracle Transparent Gateway.
    As I stated below, you could certainly use SQL Server's ETL tool, DTS. Oracle's ETL tools would require additional licensing since you're just on 9.2. You could also write a small application (Java or otherwise) that connected to both databases and transferred the data. If you're particularly enterprising, you could load the SQL Server Type 4 JDBC driver into Oracle's JVM and write a Java stored procedure that connected to the SQL Server database via JDBC, but that's a pretty convoluted approach.
    Justin

  • Using a Variable to Substitute the path\filename of a Batch file in the Start_Process Command

    I am trying to write a script that will execute a batch file on a remote Windows server.
    This line below is basically what I'm trying to do and it works without error, however I would like to use a variable for the path\filename of the batch file.
    invoke-command -computername QSC-A-ICE01 -scriptblock {Start-Process "\\qsc-a-ice01\D$\Test\RunThis.bat" }
    If I try to use a variable as in this example below I receive the error below. The error seems to indicate it's it expecting a "FilePath" parameter. Is this true? How would I change this script to make it work when substituting a variable.
    $MyProcess =  "\\qsc-a-ice01\D$\Test\RunThis.bat"
    Write-Host $MyProcess
    invoke-command -computername QSC-A-ICE01 -scriptblock {Start-Process "$MyProcess"}
    This is the error text I receive when using a variable:
     PS C:\Windows\system32> D:\Test\ThisWorks.ps1
    \\qsc-a-ice01\D$\Test\RunThis.bat
    Cannot validate argument on parameter 'FilePath'. The argument is null or empty. Supply an argument that is not null or
    empty and then try the command again.
        + CategoryInfo          : InvalidData: (:) [Start-Process], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.StartProcessCommand
        + PSComputerName        : QSC-A-ICE01
    PS C:\Windows\system32>

    Mike,
    Thanks for providing the link, it was very informative. The link described how to use the args in a ScriptBlock and provided me with an explaination as to why it works the way it does on a remote server. This is my 1st post to the forum and I don't know
    how the points system works yet.
    I would like to split the points , but I don't see that this is possible.
    You're very welcome, I'm glad that the information was helpful.
    You can mark as many posts as answers as you'd like, there's not a restriction on only having a single answer per thread. You certainly don't have to though, David's answer is more than sufficient to help any future people who find this thread.
    Also, on a side note, you may want to post in the thread below. Posting there will get your account verified so you'll be able to post links and images.
    http://social.technet.microsoft.com/Forums/en-US/200c33c9-abe9-494a-953a-bf53fccb3c76/verify-your-account-11?forum=reportabug
    (Future people - don't use that link.
    Click here and look for the current thread as a sticky.)
    Don't retire TechNet! -
    (Don't give up yet - 12,575+ strong and growing)

  • Retrieve the complete filename picked up by file adapter

    Hi all,
    I would like to retrieve the complete filename which is picked up by a sender file adapter. I need to know the exact filename during runtime in order to group some messages within an BPM process. No workaround (e.g. set up multiple file adapters) could be used. Do I have a chance to realize this with a module for the file adapter or maybe a dispachter class? If yes - how?
    Cheers, Katrin

    Hi Katrin,
    Check Oss note 639106.
    In this note SAP has provided information on how to determine the currently processsed file.
    Thanks
    Lakshman

  • How to print the Form and all its attached files

    Hello,
    I have a form created with Designer 7.0.7. I have extended the form to allow the data to be saved with the form, allow attachments, and allow printing of the form. What would like to do is to add a button to print the from and all of its attached files. If anyone has any samples I would greatly appreciate them.
    What I really needed to do was to insert/append a PDF file but this is not supported by the designer.
    Thanks,
    -Yolanda

    Hi Yolanda,
    I need to do the same in my form. Would you mind let me know if you found any solution. Appreciate if you can share some code.
    Thanks in advance,
    SekharN

  • How to extract the size and date from a given file

    Hi,
    I want to extract the size and date of a file (it can be either a video, audio or text file) that the user points to the location of. But I am not sure how. Does Java have an api that can do this? If not is there some other way of doing this? Can anyone help? Thanks in advance.

    Have a look at java.io.File, specifically
    public long lastModified()
    This format returned (I find) is nasty, so then use java.util.Date (or java.sql.Date, look the same on the surface to me) to format it.
    Cheers,
    Radish21

  • Apostrophe ( ' ) in the attachment file name

    Hi Guys,
    We have a EP application where the users are allowed to attach files. In the UAT and Prod box, there is apache server where as its not there in development.
    The issue is coming in UAT and production
    The user attached a file with (') in it e.g. SAP's.jpg
    The file was attached but when the user tries to view it, it gets error as
    FORBIDDEN
    you dont have permission to access /irj/go/km/docs/documents/SAP's.jpg
    I tried to use different file names such as  SAP~s.jpg. All seems to work so its not really a special character issue.
    BASIS team is not able to find any setting which could allow this.
    Appreciate if you can provide some explaination or the list of character which are not allowed.
    Thanks,
    Shailesh

    It seems (') is not allowed due to security reasons thus has a special meaning so not allowed

  • RAR - Attached file to the role definition

    Hi,
    In the "Configuration" tab -> Miscellaneous.
    I don´t understand what´s the function of the option "Allows you to attach files to the role definition".
    You can attach files only in the Testing stage, but if chose "Yes" or "No" in this option, the system allows you to attach files in this stage.
    Please, someone knows the real function of this option?
    Thanks!
    Kind regards,
    Sergio

    On which SP level are you?
    I'm on SP10 and I don't see such an option in RAR->Configuration->Miscellaneous.
    Thank you,
    Partha

  • Attachment file the open application web

    Hello
    I have a problem. i executed de application in the localhost and appear a attachment file and not appear de application that i need
    i hope de response
    thanks

    Hello everyone,
    The reason the question is not getting attention is because its in the wrong area. This is the HP Support Forum which handles consumer items like Home PC's and Cameras.
    You want the HP Enterprise Business Community and go to the Discussion Boards.
    Here is the link related to QTP items with 2 area to look in.
    http://h30499.www3.hp.com/t5/Functional-Testing-QTP/ct-p/sws-Fun_Test
    Hope it helps.

  • Extracting the first page of multiple PDFs & saving them as jpegs.

    Dear all,
    First post - hope its in the right place.
    I work in Publishing, and I have been given the following task - I have about 400 ebooks, all in pdf format, and my task is to extract the cover from every one of them (which is the first page of every pdf) and export them all as separate jpeg files (file names can remain exactly the same - ie, the name of the pdf book will be the same as the jpeg file). So I will end up with 400 ebooks and 400 jpegs of their covers.
    Anyone have any idea how to do this ?
    i have Windows and acrobat 8
    I have looked at batch processing in acrobat, but the option to extract the first page of multiple pdf files is not one of the options. there is an option to create your own script which im guessing is my best bet ? (hence why i have posted my question here)  Though I don't have the first clue about this. Have done some google searches, and some people have created similar things, but I cant seem to get them to work.
    Any advice greatly appreciated.
    Cheers,
    Rich

    ok, i have found a set of acrobat batch sequence and come across the following :
    Batch sequence name: Extract Pages to Folder.sequ. Task: For each file from the selected files, extract each of its pages and save the extracted pages to a particular folder.
    Example 2.10 Insert navigation icons
    /* Extract Pages to Folder */
    // A regular expression to acquire the base name of the file.
    var re = /.*\/|\.pdf$/ig;
    var filename = this.path.replace(re,"");
    try
      for ( var i = 0; i < this.numPages; i++ )
      this.extractPages
      nStart: i,
      cPath: "/C/temp/myDocs/"+filename+"_"+i+".pdf" // change this });
    catch (e)
       console.println("Batch Aborted: " + e )
    looks like i need something like this, but tried the above earlier, and couldnt get it to work (prob cause I didnt replace the words exactly correctly). I am guessing that i am entering this in the correct place though (ie - create new sequence, and got into the script editor box)

  • How to get filename from mail attachment

    Hi all,
    I have a XI scenario Mail->XI->RFC. I have created my own adapter module which handle all attachments from incoming mail.
    Everything work fine, but in my module I try to get information about filename of mail attachment. I use getContentType() metod to get the filename but this method return only the mimetype of the document. The getDescription() method return olny string "mail attachment". I need to get the original filename of the attachment or at least the file extension. 
    Is it possible to get the whole filename from mail attachment?
    Thanks
    Peter

    Hi,
    You can tryout with adapter modules . You can make use of following Adapter attributes also -
    http://help.sap.com/saphelp_nw2004s/helpdata/en/ad/bf93409c663228e10000000a1550b0/content.htm
    Similar discussion-
    Email attachment file names
    PayloadSwapBean-
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    Regards,
    Moorthy

  • Problem attaching file

    Hi
    I've tried to send a mail with a zip-file as attachment. The mail can be sent and I receive it, but unfortunately there is no attachment attached to it ?
    Here is the code (that is part of a servlet normally but since I can't post it here totally I copied the code that refers to the mail sending�
    CODE
         String mailHost = "smtp-server";
         String to = "[email protected]";
         String from = "[email protected]";
         String subject = "Packaging information";
         String body = "Dear, Madam, Sir, \n";
    if ((from != null) && (to != null) && (subject != null) && (body != null)) // we have mail to send
         try {
              //Get system properties
              Properties props = System.getProperties();
              //Specify the desired SMTP server
              props.put("mail.smtp.host", mailHost);
              // create a new Session object
              Session session = Session.getInstance(props,null);
              // create a new MimeMessage object (using the Session created above)
              Message message = new MimeMessage(session);
              message.setFrom(new InternetAddress(from, "Packaging"));
              message.setRecipients(Message.RecipientType.TO, new InternetAddress[] { new InternetAddress(to) });
              message.setSubject(subject);
    //          message.setContent(body, "text/plain");
              //Create the message part
              BodyPart messageBodyPart = new MimeBodyPart();
              messageBodyPart.setText(body);
              Multipart multipart = new MimeMultipart();                    
              multipart.addBodyPart(messageBodyPart);
              //Attachment
              messageBodyPart = new MimeBodyPart();
              DataSource source = new FileDataSource("E:\\Files\\images.zip");
              messageBodyPart.setDataHandler(new DataHandler(source));
              messageBodyPart.setFileName("E:\\Files\\images.zip");
              multipart.addBodyPart(messageBodyPart);
    //          Put parts in message
              message.setContent(multipart);
              Transport.send(message);
         } catch (Throwable t) {
    Anyone can help me please ?

                   String attachmentPath = "/usr/webMail";
                   String testString = "noneAttached";
                   if (!attachmentFile.equals(testString))
                        int stringLength = attachmentFile.length();
                        int nameStart = attachmentFile.lastIndexOf("/");
                        nameStart = nameStart + 1;
                        String fileName = attachmentFile.substring(nameStart,stringLength);
                        String newFile = (attachmentPath + "/" + fileName);
                        File fileData = new File(newFile);
                        MimeBodyPart mbp2 = new MimeBodyPart();
                        FileDataSource fds = new FileDataSource(fileData);
                        DataHandler dh = new DataHandler(fds);
                        mbp2.setFileName(fileName);
                        mbp2.setDescription("Attached File:" + fileName);
                        mbp2.setDisposition(Part.ATTACHMENT);
                        mbp2.setDataHandler(dh);
                        mp.addBodyPart(mbp2);
                   }

  • Byte data extraction and interpretation from a WAVE sound file

    Hello,
    I'm trying to extract the signal data from a WAVE-file for further processing. Suppose the WAVE-file is in 16 bit/stereo format - then I get (8 bit) low-byte and (8 bit) high-byte for the left channel first, and then the low- and high-order bytes for the right channel (I hope I've got it right this far).
    Now since I'm interested in doing some frequency analysis on the signal, I need to have the amplitudes for every sample, but since each byte is signed I can't just compose the complete amplitude value from the two bytes for each channel. A simple way to solve this would be (I think) to check if a byte is negative, and if it is, store the absolute value of the byte + 127 in an integer. For example, the byte 11111111 would be interpreted as -128, but taking the absolute value and adding 127 produces 255 which would be the maximum "unsigned" value for an 8 bit binary number.
    This seems like a quite "ugly" solution to me, and I don't really like ugly things. I haven't worked that much with binary math in Java, and my general knowledge on the subject is not very thorough in the first place. I would be very grateful for any suggestions.

    Ok, I went to buy some food and came up with another solution:
    Suppose I have a sample from one of the channels in my byte array "signal" and I want to compose a (signed) total amplitude of the two bytes in the array. Code:
    byte[] signal = ... ; //Get the data
    int amp = 0x0000;
    amp = ((signal[1] & 0xFF) << 8) | (signal[0] & 0xFF);
    Here I assume that the data is aquired in little-endian format. If you have a better solution, please let me know.

  • Can SAP send e-mail to external mail with attached file?

    Hi ABAP Guru.
    Can SAP send the E-Mail to external mail server? (e.g. Hotmail, Yahoo and so on.)
    And Can the E-Mail sent with attached file?
    And How to do that?
    Please give me your advice.
    Thank you and Best Regard,
    Nattapash C.

    Thank you very much! Amit Gujargoud.
    And I'm so sorry for my question that not clear for you and everyone.
    What I need to know is How to do with ABAP Code.
    I found the Function Module
    'SO_DOCUMENT_REPOSITORY_MANAGER' with method 'SEND' is being used for my case.
    but I don't know what field of structure RECIPIENTS (Table parameter of this Func. Module) that used for define recipient's E-Mail Address.
    Does anyone know the field or Have any method to solved my case?
    Please give me your advice.
    Thank you and Best regard.
    Nattapash C.

Maybe you are looking for

  • My story so far, TROUBLES

    Hi! I know there are a lot of complaints about the MBP in this forum, and unfurtunatly this will add to it somewhat, but most of all i am disapointed with the service of Apple's Techincal Support. So i have a MBP 1.83 gHZ week 12. It has always been

  • Multiple views in single View Container

    Hi Experts, Is it possible to display multiple views in single view container.!! . I want to display 2  views in a view container based on condition. Please suggest me how to achieve this. Thanks, Regards, Ram.

  • How to restrict user from deleting record

    Dear All, Kindly share your experience... Situation: My client have one SOB, used by several branches. Each branch has its own branch code in Chart of Account (accounting flexfield). Currently, to prevent branch accessing other branch's journal in Ge

  • Hi bdc

    hi i have uploaded data from flat file for VA01 successfully. now system generates sales order no automatically after uploading data. i want to show this sales order no in bdc report. the difficult is that sales order no vbeln itself is a primary key

  • Drop more tables

    Hi, Knows someone how can I drop more table, e.g. all tables that start with A and how can I add two columns to all tables that start with B? Thank you