Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / April 2006

Tip: Looking for answers? Try searching our database.

Closing Infopath Form then trying to save with errors on form....

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tonyeley@btinternet.com - 21 Apr 2006 17:46 GMT
I have a form that accesses a SQL database only.

I fill in some fields but leave some mandatory fields blank.

I then click the X to close the form and it prompts 'do you wish to
submit the form?'

I click yes and it gives me the error saying cannot submit as there are
errors on the form.

I then click ok and the form closes so I have lost all my changes.

Any ideas?
Greg Collins [InfoPath MVP] - 22 Apr 2006 00:19 GMT
That's a tough one. I'm not so sure that you have any control over that action. The application "X" button does what it wants. Perhaps you can add a close button in your form that would give you more control.

Signature

Greg Collins [InfoPath MVP]
Visit http://www.BrainTrove.com
Visit http://www.InfoPathDev.com

I have a form that accesses a SQL database only.

I fill in some fields but leave some mandatory fields blank.

I then click the X to close the form and it prompts 'do you wish to
submit the form?'

I click yes and it gives me the error saying cannot submit as there are
errors on the form.

I then click ok and the form closes so I have lost all my changes.

Any ideas?
Tony Eley - 22 Apr 2006 15:55 GMT
Greg

Thanks for your reply. I thought about adding a close button but it's
obviously not the best solution.

Do you (or anyone) know if there is a close event in 2007?

Thanks
Tony
Greg Collins [InfoPath MVP] - 24 Apr 2006 17:53 GMT
I don't personally know. It seems, though, if you are using managed code, and set your form to full trust (which you might not want to do) that you should be able to tap into that event somehow. Someone else will have to help you figure out how that would work.

Signature

Greg Collins [InfoPath MVP]
Visit http://www.BrainTrove.com
Visit http://www.InfoPathDev.com

Greg

Thanks for your reply. I thought about adding a close button but it's
obviously not the best solution.

Do you (or anyone) know if there is a close event in 2007?

Thanks
Tony
Tony Eley - 25 Apr 2006 10:47 GMT
I am using managed code and have the form set to full trust so can
anyone help me tap into this event please?

Thanks
Greg Collins [InfoPath MVP] - 25 Apr 2006 20:14 GMT
It might be helpful to also post this question in the C# and WindowsForms newsgroups as it seems to pertain more to those scenarios than specifically to InfoPath.

If you receive an answer, please post back here as this question has been raised numerous times, and I'm sure there are many who would love to know how to do this.

Signature

Greg Collins [InfoPath MVP]
Visit http://www.BrainTrove.com
Visit http://www.InfoPathDev.com

I am using managed code and have the form set to full trust so can
anyone help me tap into this event please?

Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.