Saving forms with name different from Form1.xml - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Saving forms with name different from Form1.xml

Last post 02-27-2007 10:29 PM by Kalyan Gaddam. 13 replies.
Page 1 of 1 (14 items)
Sort Posts: Previous Next
  • 01-04-2007 04:16 AM

    Saving forms with name different from Form1.xml

    Greetings,

    Is there a way to define a certain name for the filled form (may be from a textbox entry in the filled form) instead of Form1.xml?

    Help is greatly appreciated.
  • 01-04-2007 04:42 AM In reply to

    • Aruna
    • Not Ranked
    • Joined on 12-13-2006
    • India
    • Posts 17

    Re: Saving forms with name different from Form1.xml

    Hi kelsawy,

    we can define a name for the filled form. Here are the steps:
    1.Create a button for submit.
    2.In the button properties, select Submit from the action drop down list.
    3.In Submitting Forms window select the radio button "Enable submit commands and buttons" and select sharepoint form library from submit to drop down list.
    4.Click on Add button.
    5.In the data connection wizard, select the xpath right to File name field and select the field name which you want as a file name.

    Hope this helps you!
  • 01-04-2007 04:47 AM In reply to

    Re: Saving forms with name different from Form1.xml

    Thank you very much. It looks doable if the user is to submit to SharePoint Form Library. Can this be done when the xml file is saved locally on the user's hard disk?
  • 01-04-2007 05:41 AM In reply to

    • Aruna
    • Not Ranked
    • Joined on 12-13-2006
    • India
    • Posts 17

    Re: Saving forms with name different from Form1.xml

    Hi kelsawy,

    We do not have such possibility to do this when the xml file is saved locally on the user's hard disk?
  • 01-04-2007 06:38 AM In reply to

    Re: Saving forms with name different from Form1.xml

    thisXDocument.UI.SetSaveAsDialogFileName("name");

    put it into an OnContextChange event.

    Hope this helps
    Listen to Motörhead cos they play Rock'n Roll :)
  • 01-04-2007 04:22 PM In reply to

    Re: Saving forms with name different from Form1.xml

    OnContextChange might not be the best event to do this as that event fires every time your context changes (i.e. tabbing, clicking, etc).
  • 01-04-2007 11:14 PM In reply to

    Re: Saving forms with name different from Form1.xml

    Oh yeah you are right Greg, like always.

    May be you could have a custom save button on your form and use the mentioned line of code there.
    Listen to Motörhead cos they play Rock'n Roll :)
  • 01-05-2007 11:17 AM In reply to

    Re: Saving forms with name different from Form1.xml

    Let us know if that works for you.
  • 01-10-2007 01:39 PM In reply to

    Re: Saving forms with name different from Form1.xml

    Dear Greg

    Thank you very much for your help. It looks that what you have described needs
    to be done with VB or Java scripts.

    Without scripting and even if I filtered the table for a specific row as you
    proposed, I will not be able to edit xpath (in rules actions) to reach my
    specific field in the specific row.

    When I add a rule, add action within the rule, and select "Set a Field Value",
    I am only restricted to the selection of a field without editing its xpath.
    This would set the value of the field in all rows in the table even after
    using a filter for a particular row.

    If you agree on what I am saying, then I have to use VB script.


    kelsawy
  • 01-12-2007 11:16 PM In reply to

    Re: Saving forms with name different from Form1.xml

    Try OnSaveRequest
    Patrick Halstead
    Project Manager at Qdabra
  • 01-16-2007 02:50 PM In reply to

    Re: Saving forms with name different from Form1.xml

    OnSaveRequest is not the right thing here.

    If you want, you can use code to solve the problem. That's the safest way. Otherwise, you can create a rule (the kind that updates all rows), and then manually edit the manifest.xsf file to update the xpath for that rule action to include the filter.
  • 01-24-2007 12:17 AM In reply to

    • elxany
    • Not Ranked
    • Joined on 01-24-2007
    • Australia
    • Posts 2

    Re: Saving forms with name different from Form1.xml

    Hi everyone,

    I think it would be better to look at this url... Here you may change location and name of form in infopath 2003 (hopefully for 2007 as well)

    http://msdn2.microsoft.com/en-us/library/aa168451(office.11).aspx

    Regards,
  • 02-08-2007 02:41 PM In reply to

    • Nyhus
    • Not Ranked
    • Joined on 02-08-2007
    • Denmark
    • Posts 1

    Re: Saving forms with name different from Form1.xml

    Hi
    I have a similar challenge.

    When saving, I want InfoPath to suggest a file name based on a specific field which the user has filled in while filling out the form (gibberish...).

    This is done on Sharepoint.

    Help is GREATLY appreciated!!
  • 02-27-2007 10:29 PM In reply to

    Re: Saving forms with name different from Form1.xml

    Hello Nyhus

    Try reading the link below
    http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=2455

    Hope it helps you
    Kalyan G Reddy
    Infopath MVP 2007 and 2008
Page 1 of 1 (14 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.