Event handler to set permissions on a list library when workflow status is set to approved.

Event handler to set permissions on a list library when workflow status is set to approved.

Post by Christine » Fri, 01 Aug 2008 04:36:00


I have a list library that has an approval worklow (out-of-box
SharePoint workflow). I need to write an event handler that will set
the permissions to read-only for an tem in the list library when the
workflow status for that item is changed to 'Approved'. Can an event
handler be written for the task library associated with workflow? If
so, does anyone have an example of code?

I would greatly appreciate any feedback.

Thanks,
Chris
 
 
 

1. How can I programmatically set the handler for a random event and handler

2. setting a breakpoint in a WinForms event handler... and then getting caught in the event loop.

What is the triggering action that raises the event which causes my
breakpoint to be reached, repeatedly, but does not allow my form to ever
remain visible. I set a breakpoint on the line Graphics.. below. Just
curious to help my 'system level' understanding. thx. -hazz

private void InitializeComponent() {
this.Paint += new
System.Windows.Forms.PaintEventHandler(this.Wassup_widdis_Paint); }

static void Main() {
Application.Run(new Wassup_widdis()); }

private void Wassup_widdis_Paint(object sender,
System.Windows.Forms.PaintEventArgs e) {
->Graphics grfx = e.Graphics; }

3. document library using workflow and creating a view that filter based on the workflow status

4. how do u invoke Tag b's Tag Handler from within Tag a's tag Handler?

5. Approve patch for group - set sub group to not approved

6. Job Fails when setting workflow status from vbscript

7. Workflow: Changing the Opportunity status when a quote is approved?

8. Workflow 4.0 - Set status of quote after 180 days

9. What permission set is required for adding events to Event Viewer?

10. Setting an Event Handler on data member of parent class in derived class

11. MSHTML PIA Events getting cancelled after setting a new handler?!

12. Setting minimum form size cancels active event handlers

13. Very strange result when I set breakpoint in DoWork event handler

14. why is this SelectedIndexChanged event handler called when I set the DataSource

15. error in event handler due to -yscrollcommand {widgets(selector.yscroll) set}