Hello all: Over the past few months I have been doing quite a bit with InfoPath 2007 and Forms Services. We have started putting together a fairly complicated application, using many of the features of InfoPath and Forms Services, web service connections, resource files, managed code in the form where applicable, submitToHost, notifyHost, switching views in the initialize event of the XmlFormViewer, custom web part connections, etc.
However, I'm facing an issue I can't find an answer to. Does anyone know if its possible to somehow use NotifyHost for example, or another method to trap or be notified of a SAVE event?
I am NOT talking about submit, or submit connections or rules. I mean, using the InfoPath Forms Services the save button is pressed to save the form to a forms library/MOSS site. I realize you can not have custom code for the save event if using Forms Services, but I'm trying to find a way to notified or trap that the save has occured. I don't even need to cancel it or intercept the event, I basically just need a pre or post save notification so in my code behind I can do some dynamic activity. My other idea, which I loathe unfortunately, is to remove the ability to use the built in Save button and create my own button, which basically does a submit behind the scenes, using a library connection.
The current submit process is already through a custom button/our own events, and I don't want to remove the user's ability to name the form themselves (if I use another custom button for saving, I will be auto-generating the name for the library connection, etc).
Any ideas on getting a save notification from InfoPath Forms Services?
Thanks
MK