Showing posts with label Event Handler. Show all posts
Showing posts with label Event Handler. Show all posts
Friday, March 6, 2009
Creating & Adding Event Handler
In this article, author has create an event handler that captures the events of the document library and add an entry in the cell of the document added. It can add an event handler using code or as a feature. In order to write an event handler, we will first create a sharepoint site and create a document library. We will, then, capture the events of the document library.
Sample Event Handler to set Permissions
This is something I have been seeing the need for in the forums for quite some time, and today I found an hour to find this. A request is often made to have an event handler that automagically sets the permissions on a list item so that only the author of the item can edit it, while other people with contributor permissions on the library can only read it.Sometimes the logic is more complex, but I think this sample code should be enough to get anyone started!
Monday, February 16, 2009
PreSaveAction to EditForm.aspx
The creators of that script added a “hook” for custom validation called PreSaveAction. This function gets called during the submit action but was never defined so we can create our own. We have a simple strategy: identify Tasks surfaced through our Linked Tasks web part and stop the submit action if Issue status = ‘Closed’ and number of Tasks > 0. Translating that “simple” logic into javascript takes patience and testing. Add the PreSaveAction to the EditForm.aspx page
Subscribe to:
Posts (Atom)