Submit Form as XML / Rename attached XML file

Hello,
I am using the followig script to submit a form:
var Mailto = "[email protected]";
var mySubject = "This is the subject";
var myMessage  = "Please find attached my file.";
var Mail = "mailto:" + Mailto + "?Subject=" + mySubject + "&Body=" + myMessage;
event.target.submitForm({
cURL: Mail,
bEmpty: true,
cSubmitAs: "XML"
Unfortunately I cannot change the name of the attached XML file. It is automatically the PDF filename.
Has anybody an idea how to change the attachement name?
Many thanks.
Regards,
ra_be

The attachment filename will always be the name of the PDF. The only way to change is to save the PDF under a different name before you email it.
Paul

Similar Messages

  • How can i convert  my invoice which is in smart forms to xml file

    how can i convert  my invoice which is in smart forms to xml file.

    Hi Anil,
    Please go through this link:
    1. XSF stands for XML for Smart Forms. It is important to contrast XSF with .... The eDocx script engine can provide a script to convert the file format to an 
    http://www.ossincorp.com/Black_Box/Black_Box_4.htm
    please rewrds if found helpful.
    Regards,
    Alok

  • How to save infopath form in XML file

    How to save InfoPath form in XML file.
    I want every new record in InfoPath form save in XML file and also retrieve these records from XML like databases

    Hi,
    Based on your description, my understanding is that you want to save InfoPath form in XML file.
    I have done a test in my SharePoint, Do the following steps:
    Create an form library and publish an InfoPath form into it, Then when we create new document into the form library, it is by default that InfoPath form is saved in XML file.
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • Managing Form Data XML files emailed

    I am exploring the use of the Email Submit button in a PDF Form. We need to collect form data sent in by many users. The one thing that seems like a challenge is that when people email their data back, then XML file containing their data will always have the same file name. I like the "Merge Data Filed into SpreadSheet" functionality, but what I'm sruggling with is how to best manage all of the xml data files, as they are emailed in, since the attachments will all have the same filename.
    Am I missing something, or will it just be necessary for the person managing the email box to extract each attachment & give it a unique name? I saw that someone has asked at one point is there was a way to have a unique filename for the attachment generated each time a user clicked the Email submit button, but it looked like the answer was No.
    Any suggestions for best practices when collecting emailed form data & collecting it all into and XLS or CSV?
    Thanks in advance!

    "Am I missing something, or will it just be necessary for the person managing the email box to extract each attachment & give it a unique name?"
    Yes. When they are detached from the email they should be given a unique name and that way you can build a dataset from the responses.

  • Problem filling in a form with xml file

    I have two forms that are used to inform people in town via the web of items needed in a food bank. The first form is filled out by the caretaker and has a "print" and "submit" button at the bottom. The second form is identical to the first but does not have a submit button since it is published on the web and readers can print it out to take with them shopping. Last month I was able to fill the second form with  data from the first that was exported as a xml file and inported into the second. For some unknown reason other that my program was updated this no longer works. Is there a way for this to still function?

    There is no built-in date picker available for forms created in Acrobat. There are some third-party solutions involving JavaScript (either a large collection of fields or a custom dialog) though. Also, text fields with date formatting will use a wheel type date picker on Android/iOS devices with Adobe Reader.

  • How to populate the values in the drop down list form the xml file ?

    I want to populate the drop down list values from a seperate xml file called ReferenceData. I created this file, which consists of a mapping entry in the form of ( key,value ) pair. Am mapping this xml file in to form by using rule named as getAppReferenceData.
    But the values are not getting populated in the form. And I have a doubt of, where should we keep that xml file? (under which path / folder ).

    what would help is if you showed what you do in the rule, either the code or a express trace of the rule.
    The other thing you need to know is where you want to get the file from. Yes java can read a file from anywhere on the system but there is a security layer in there which might prevent the file being opened. Have you allowed acces to the file via the security policy settings via java.io.FilePermission?
    WilfredS

  • Populating PDF Form with XML File.

    Hi,
    I need my PDF form to be populated with the data in XML file.I've created a data connction to the file and binded the values to my fields.When I've opened the form in Reader/Acrobat i'm not able to see any date on the form.
    Currently,I'm using "xfa.host.importData()" to import an XML file on a button click.It is working fine.But I need to load the data on Form Load itself.
    I'm relatively new to PDF technologies.Any help would br gratly appreciated.
    Thanks in Advance.

    The binding feature in designer just allows you to describe how to map fields to data elements, not to actually populate them autotmatically. You would need to have a server component to merge data / pre-populate or a script on your reader-enabled form to load the data. You can use xfa.host.importData() in DocReady event if you want it to prompt on loading the pdf. Earlier events in the chain wont work until the form has been properly loaded.

  • Help to rebuild a badly formed Index.xml file

    From time to time, I receive Numbers documents whose Index.xml file may be read by several programs but which can't be deciphered by Numbers itself.
    My guess is that for some reason, Numbers built a wrong instruction.
    Of course, it's annoying because many users don't backup their documents or use a wrong protocol to backup.
    Never replace an old backup by a new one before checking that the new one is usable is the rule to apply.
    Given that, I built an AppleScript which may help us to rebuild from scratch such a clobbered document.
    Running it upon such a file creates a folder in the Documents folder.
    In this new folder we will find several text files describing every sheet embedded in the document.
    In each of these file, it inserts tags marking delimiting the descriptors of every table.
    It also insert pairs of return characters between every cell descriptor.
    Last not least, it completes the codes describing references to other tables or to other sheet or to other table of other sheet by their "standard" description, the one which is used in the true formulas.
    Useful information, as often in AppleLand, consecutive objects are numbered starting from zero when we are accustomed to number them starting from 1.
    sf:col="0" means column number(0+1) which is column A
    sf:row="0" means row number (0+1)
    Given all these informations, rebuilding a document is quite easy (but it requires a lot of time and is boring for eyes).
    As the script is long and as I am afraid of the oddities which may be introduced by the forum's message parser, the script is not available here but on my iDisk.
    <http://idisk.me.com/koenigyvan-Public?view=web>
    Download:
    ForiWork:For_Numbers:découpe_Index_deNumbers.zip
    I apologize but given a bug of MacOS X 10.5.x, using the script under this operating system is less comfortable than it is under 10.4.x.
    Yvan KOENIG (from FRANCE mardi 26 août 2008 16:16:46)

    HI Balaji,
    Below is the sample xml file which i have saved as test.xml and placed it @ D: drive
    Test.xml:
    <employee>
    <emp>
    <eno>1</eno>
    <ename>Test1</ename>
    </emp>
    <emp>
    <eno>2</eno>
    <ename>Test2</ename>
    </emp>
    <emp>
    <eno>2</eno>
    <ename>Test2</ename>
    </emp>
    </employee>
    Goto Topology >Expand Technologues>right click on XML and select new data source
    in Defination Tab, provide the physical architecture name
    in JDBC Tab, provide the below details
    JDBC Driver: com.sunopsis.jdbc.driver.xml.SnpsXmlDriver
    JDBC URL: jdbc:snps:xml?f=d:\test.xml&d=test.dtd&re=employee&s=TEST&ro=false
    Save it
    Click on Test Connection and again click on test, it should show test connection as "Successfully Test"
    Hope this may helps you
    Regards,
    Phanikanth

  • I have two .xml files with one audio .mp3 file each; one that has been submitted to itunes and accepted. When I try to submit the other .xml file to itunes, with a different .mp3 audio file and changed metadata, Itunes says it has already been submitted.

    http://itunes.apple.com/us/podcast/village-parkway-baptist-church/id520252317

    iTunes is using your feed at http://vpbc.downloadsvr.com/Podcasts/Audio%20podcasts/VPBC%2004152012%20audio%20 podcast%20945%20service.xml
    When you want to add a new episodes to your podcast you don't make a new feed: you add the episode to the existing feed, then subscribers will see it immediately and the iTunes Store will pick it up in 1-2 days. You don't need to resubmit the feed - indeed you can't.

  • Checking Well-Formed XML files with ABAP Mapping

    Hi guys,
    Anybody knows which is the best way to check (well-formed) incoming XML files trough XI?
    I’m using ABAP Mapping and before I check the value of the XML fields I want to check if the XML is well-formed. For this reason I need to know which is the class or classes that I need to use to checking the format of XML using an XSD file?
    That is also possible using a DTD file instead of XSD?
    Which is better XSD or DTD?
    Thanks in advance,
    Ricardo.

    Hi Ricardo,
      try out these links.
    /people/r.eijpe/blog/2005/11/04/using-abap-xslt-extensions-for-xi-mapping
    /people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi
    /people/sap.user72/blog/2003/09/18/xsl-and-abap
    Thanks and Regards
    Vishal Kumar

  • How to parse an XML file in APEX and store details in DB

    I want to parse information from an XML document.
    This is the scenario, user will need to provide a name for the item, in the text field say Item name and click submit. This &item_name. is appended to the end of the URL as http://www.somewebsite.com/q=&item_name.
    The above website has the details about the item_name such as, Name, Price, Availability in the form of xml file.
    The details such as Name, Price and Availability should alone be fetched, and stored directly to the DB and displayed at the front end.
    How can this be done... Can someone provide me ideas?

    Isn't that just a webservice call? Look into that part (under Shared Components).
    If it is a proper webservice, it's not that hard. APEX will do all the XML processing for you.
    Otherwise you have to do a utl_http request yourself and process the results.

  • Save Adobe Form as XML

    Hello,
          I am ABAPer and wanted to know if there is a way I can save the Online Adobe Form as XML using the SUBMIT button? Can I convert the Online Adobe Form as XML file using JAVA Script and then save it at at maybe a default location?
    Regards,
    Shishir.P

    Otto,
           Let me take through step by step:-
    1.  I am working on SAP Version that does not support dynamic tables. Hence the when I convert the Adobe form into PDF  content extracted in SAP Web dynpro, the PDF content does not have data entered in Dynamic Tables. To read dynamic tables the SAP system will have to undergo a ABAP kernel upgrade which is not possible at this time.
    2.  I had come up with a concept that using JAVA Script if I could convert the live Online Adobe Form into XML using the SUBMIT button on the form and then store it in one of the invisible fields on the form itself or maybe at remote location in desktop / application server.
    3.  This would be picked up once again by the ABAP Web dynpro and this file would contain the data entered by the User, I could then read the data in Web Dynpro for ABAP and process it further.
    4.  Well this is just an Idea and I am not sure if this can be implemented, please let me know if anything of this sort is possible, please excuse me if this sounds weird as my knowledge of JAVA is limited.
    Regards,
    Shishir.P
    Edited by: Shishir Paltanwale on Apr 27, 2010 2:28 PM

  • Windows Phone 8 Can't Update listbox item in XML file after using hardware back button?

    Hi All i have a list box and i am saving list box selected item in XML file thats working fine but the problem is that when i will close my app and reopen and add more value to list box my previous value is removed form the xml file and listbox also how
    i can save my current added value and previous value in xml file i am using following code :
    and iam using following code
    <Grid x:Name="ContentPanel" Grid.Row="2" Margin="15,10,15,0">
    <ListBox Name="list_location" Tap="list_location_Tap" Foreground="Black">
    <ListBox.ItemTemplate>
    <DataTemplate>
    <TextBlock x:Name="item_name" Text="{Binding description, Mode=OneWay}" Padding="5,15,5,15" TextWrapping="Wrap" FontSize="{StaticResource PhoneFontSizeLarge}"/>
    </DataTemplate>
    </ListBox.ItemTemplate>
    </ListBox>
    <ListBox Name="list_locationAdd" Background="Red" Foreground="Black" Visibility="Collapsed">
    <ListBox.ItemTemplate>
    <DataTemplate>
    <TextBlock x:Name="item_name" Text="{Binding description, Mode=OneWay}" Padding="5,15,5,15" TextWrapping="Wrap" FontSize="{StaticResource PhoneFontSizeLarge}"/>
    </DataTemplate>
    </ListBox.ItemTemplate>
    </ListBox>
    </Grid>
    and my back end code is follow:
    XmlWriterSettings x_W_Settings = new XmlWriterSettings();
    x_W_Settings.Indent = true;
    using (IsolatedStorageFile ISF = IsolatedStorageFile.GetUserStoreForApplication())
    using (IsolatedStorageFileStream stream = ISF.OpenFile(filename, FileMode.Create))
    XmlSerializer serializer = new XmlSerializer(typeof(ObservableCollection<Prediction>));
    using (XmlWriter xmlWriter = XmlWriter.Create(stream, x_W_Settings))
    data.Add(new Prediction() { description = App.professionalId });
    list_locationAdd.ItemsSource = data;
    serializer.Serialize(xmlWriter, data);
    protected override void OnNavigatedTo(NavigationEventArgs e)
    try
    if (list_locationAdd != null)
    using (IsolatedStorageFile ISF = IsolatedStorageFile.GetUserStoreForApplication())
    using (IsolatedStorageFileStream str = ISF.OpenFile(filename, FileMode.Open))
    XmlSerializer serializer = new XmlSerializer(typeof(ObservableCollection<Prediction>));
    ObservableCollection<Prediction> data = (ObservableCollection<Prediction>)serializer.Deserialize(str);
    if (list_locationAdd != null)
    this.list_locationAdd.ItemsSource = data;
    list_locationAdd.Visibility = Visibility.Visible;
    catch (Exception ex)

    Can you provide a working sample?  Upload to Onedrive and share it with us.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • Combining XML files

    Hi,
    I have a collection of XML files that I want to embed in one XML file. What is the best way to achieve this?
    a) Manually create a new DOM from the existing DOMs
    b) Use XSLT
    c) Use XInclude
    d) Something else :-)
    As I only want to combine the xml files to form one XML file, i think that using XSLT or XInclue might be overkill. Any thoughts?
    Thanks,
    Shane

    A low budget non xml way would be to create a MultipleInputStream class that takes a bunch of streams and treats them as one big stream. You pass an instance of this to your sax or dom parser.
    InputStreams[] ises = getYourXMLFilesFromSomewhere();
    MultipleInputStream mis = new MultipleInputStream();
    mis.addStream(new StringStream("<root>");
    mis.addStreames(ises);
    mis.addStream(new StringStream("</root>");
    XMLReader r = ......
    r.parse(mis);

  • How to modify a xml file?

    I use JAXP 1.1 to read a xml file as a DOM tree. I can make change to the DOM tree in the memory, such as add an element or change the node value, but how can I apply these changes to the source xml file, i.e., write the changes back to the disk?

    you can write an xml file using DOMWriter.
    copy and compile this class
    and then use it:
    PrintWriter printWriter = //create a printWriter form your xml file
    DOMWriter writer = new DOMWriter(printWriter);
    writer.print(myXml.toString());
    package Zeus.core.XML;
    import java.io.*;
    import org.w3c.dom.*;
    * @author Rodrigo Gonzalez Asensio
    * @email [email protected]
    public class DOMWriter {
       protected PrintWriter out;
       protected boolean canonical;
       protected String encoding;
    public DOMWriter(OutputStreamWriter out) throws UnsupportedEncodingException {
         this(out, false);
    public DOMWriter(OutputStreamWriter out, boolean canonical)
         throws UnsupportedEncodingException {
         encoding = out.getEncoding();
         if (encoding == null) {
              throw new UnsupportedEncodingException(out.getEncoding());
         this.out = new PrintWriter(out);
         this.canonical = canonical;
    /** Normalizes the given string. */
    protected String normalize(String s) {
         StringBuffer str = new StringBuffer();
         int len = (s != null) ? s.length() : 0;
         for (int i = 0; i < len; i++) {
              char ch = s.charAt(i);
              switch (ch) {
                   case '<' :
                             str.append("<");
                             break;
                   case '>' :
                             str.append(">");
                             break;
                   case '&' :
                             str.append("&");
                             break;
                   case '"' :
                             str.append(""");
                             break;
                   case '\r' :
                   case '\n' :
                             if (canonical) {
                                  str.append("&#");
                                  str.append(Integer.toString(ch));
                                  str.append(';');
                                  break;
                             // else, default append char
                   default :
                             str.append(ch);
         return (str.toString());
    public void print(Node node) {
         // is there anything to do?
         if (node == null) {
              return;
         int type = node.getNodeType();
         switch (type) {
              // print document
              case Node.DOCUMENT_NODE :
                        if (!canonical) {
                             out.println("<?xml version=\"1.0\" encoding=\"" + encoding + "\"?>");
                        print(((Document) node).getDocumentElement());
                        out.flush();
                        break;
                   // print element with attributes
              case Node.ELEMENT_NODE :
                        out.print('<');
                        out.print(node.getNodeName());
                        Attr attrs[] = sortAttributes(node.getAttributes());
                        for (int i = 0; i < attrs.length; i++) {
                             Attr attr = attrs;
                             out.print(' ');
                             out.print(attr.getNodeName());
                             out.print("=\"");
                             out.print(normalize(attr.getNodeValue()));
                             out.print('"');
                        out.print('>');
                        NodeList children = node.getChildNodes();
                        if (children != null) {
                             int len = children.getLength();
                             for (int i = 0; i < len; i++) {
                                  print(children.item(i));
                        break;
                   // handle entity reference nodes
              case Node.ENTITY_REFERENCE_NODE :
                        if (canonical) {
                             NodeList children = node.getChildNodes();
                             if (children != null) {
                                  int len = children.getLength();
                                  for (int i = 0; i < len; i++) {
                                       print(children.item(i));
                        } else {
                             out.print('&');
                             out.print(node.getNodeName());
                             out.print(';');
                        break;
                   // print cdata sections
              case Node.CDATA_SECTION_NODE :
                        if (canonical) {
                             out.print(normalize(node.getNodeValue()));
                        } else {
                             out.print("<![CDATA[");
                             out.print(node.getNodeValue());
                             out.print("]]>");
                        break;
                   // print text
              case Node.TEXT_NODE :
                        out.print(normalize(node.getNodeValue()));
                        break;
                   // print processing instruction
              case Node.PROCESSING_INSTRUCTION_NODE :
                        out.print("<?");
                        out.print(node.getNodeName());
                        String data = node.getNodeValue();
                        if (data != null && data.length() > 0) {
                             out.print(' ');
                             out.print(data);
                        out.print("?>");
                        break;
         if (type == Node.ELEMENT_NODE) {
              out.print("</");
              out.print(node.getNodeName());
              out.print('>');
         out.print("\n");
         out.flush();
    } // print(Node)
    * Returns a sorted list of attributes
    protected Attr[] sortAttributes(NamedNodeMap attrs) {
         int len = (attrs != null) ? attrs.getLength() : 0;
         Attr array[] = new Attr[len];
         for (int i = 0; i < len; i++) {
              array[i] = (Attr) attrs.item(i);
         for (int i = 0; i < len - 1; i++) {
              String name = array[i].getNodeName();
              int index = i;
              for (int j = i + 1; j < len; j++) {
                   String curName = array[j].getNodeName();
                   if (curName.compareTo(name) < 0) {
                        name = curName;
                        index = j;
              if (index != i) {
                   Attr temp = array[i];
                   array[i] = array[index];
                   array[index] = temp;
         return (array);
    regards.

Maybe you are looking for