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 / July 2004

Tip: Looking for answers? Try searching our database.

Where is OnSaveRequest??

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nick Head - 19 Jul 2004 23:36 GMT
I am using SP-1 and the VS.Net Toolkit to write some managed event handlers. I am still learning how managed Infopath code works so please bear with me if this is a dumb question :)

I am trying to hook up the OnSaveRequest event, but I can't see where within InfoPath I should set it up. If I go to Tools > Programming I see OnLoad, On Context Change,  On Switch Views, and On Sign, but there is no mention of OnSave. I assume I can't just write the event handler directly into my form code, as the event source isn't aware of it. So how do I hook this up?

As point of interest, whereabouts in the xsn solution are these event handlers actually hooked up with the event sources? e.g. if I set an OnClick event for a button, how does the form know that my OnClick event handler is supposed to be invoked?

Many thanks
Nick
Brian Teutsch [MSFT] - 20 Jul 2004 00:59 GMT
Just had to ask someone about this myself. You can edit the OnSave method by
using Tools->Form Options, and using the Open and Save tab create custom
code.

InfoPath uses the XSF file to know what events should be fired when using a
form. As you thought, InfoPath needs to be "hooked up" to the event handler.
If you're new to the XSF, it's an XML configuration file that you can view
by doing Extract Form Files while designing a form. The XSN is a collection
of files (CAB format), which you can then recreate by simply republishing
the form.

Thanks,
Brian

>I am using SP-1 and the VS.Net Toolkit to write some managed event
>handlers. I am still learning how managed Infopath code works so please
[quoted text clipped - 14 lines]
> Many thanks
> Nick
Nick Head - 20 Jul 2004 01:15 GMT
Ha! I knew it was hiding around there somewhere

Thanks for you help

> Just had to ask someone about this myself. You can edit the OnSave method by
> using Tools->Form Options, and using the Open and Save tab create custom
[quoted text clipped - 28 lines]
> > Many thanks
> > Nick
 
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.