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

Tip: Looking for answers? Try searching our database.

Managed Code: OnSubmitRequest doesn't fire

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dominic Buschi - 21 Dec 2004 17:36 GMT
Hi,

I need to do some custom stuff in the OnSubmitRequest
Eventhandler.
I added the eventhandler into the codefile like this:

[InfoPathEventHandler
(EventType=InfoPathEventType.OnSubmitRequest)]
public void OnSubmitRequest(DocReturnEvent e)
{...}

but when I do a 'Submit', it isn't triggered: The InfoPath
form is submitted directly to the Sharepoint DocLibrary
bypassing the business logic.
I assume that I forgot to do something (like registering
the event or so), but I don't know what (I tried to use
the 'useScriptHandler' element in the 'submit' element in
the .xsf file, but that didn't help).

Appreciate any help, tip.

Thanks for your help,
Dominic
Dominic Buschi - 21 Dec 2004 18:34 GMT
Found the solution in the meantime:
Instead of having the Submit going to Sharepoint(Tools-
>Submitting Forms), needs to go to 'Custom Submit using
Code'.

Cheers,
Dom

>-----Original Message-----
>Hi,
[quoted text clipped - 22 lines]
>
>.
 
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.