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 / May 2005

Tip: Looking for answers? Try searching our database.

OnSaveRequest Event Handler

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Renjith - 10 May 2005 17:42 GMT
Hi,

I have to perform few tasks when a Infopath form is saved to local system
from a document library. For this I have written the below function but it
doesnot get invoked and Iam not able to view the alert message given. What
could be the reason?

function XDocument::OnSaveRequest(eventObj) {
// Write the code to be run before saving here.
       XDocument.Application.Alert("on save");

       eventObj.IsCancelled = eventObj.PerformSaveOperation();
// Write the code to be run after saving here.
       eventObj.ReturnStatus = true;
}

Thanks
Renjith
Brisk - 10 May 2005 21:32 GMT
If i remember correctly, the form must be fully trusted for this event
handler to fire.
Renjith - 11 May 2005 06:04 GMT
I had given 'Full Trust' to the form but still it doesnot work.

Renjith

> If i remember correctly, the form must be fully trusted for this event
> handler to fire.
Brian Teutsch [MSFT] - 11 May 2005 18:39 GMT
Use Tools->Form Options to add the handler for your code. The code will not
be fired if there is not an entry in the XSF telling InfoPath to fire the
code (true for all handlers), so simply adding it in code will not work.

Brian

>I had given 'Full Trust' to the form but still it doesnot work.
>
> Renjith
>
>> If i remember correctly, the form must be fully trusted for this event
>> handler to fire.
Renjith - 16 May 2005 08:17 GMT
That worked ! Thanks

> Use Tools->Form Options to add the handler for your code. The code will not
> be fired if there is not an entry in the XSF telling InfoPath to fire the
[quoted text clipped - 8 lines]
> >> If i remember correctly, the form must be fully trusted for this event
> >> handler to fire.
 
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.