Yogaraajan N E

Yogaraajan N E

  • NA
  • 1
  • 1.7k

Create and Hide custom action context menu based on conditio

Jul 11 2013 8:54 AM

Hi,

I have the following requirment should be done using Visual Studio in Record Library. I am new to Sharepoint and would be appreciated if sample code with steps.

1) Create custom action in context menu for item in Record Library.

Declare Record, Undeclare Record and Delete Record.

2) Hide custom action in context menu based on some condition.

a) Only Declare Record should be visible in the context menu for item which is not record.

b) Undeclare Record and Delete Record should be visible in the context menu for item which is record. and Declare Record should be invisible or not shown.

3) When Declare record action is clicked, custom workflow should be called or programmatically declare the record. similarly for Undeclare Record and Delete Record.

I know only records will be present in Record Library, However we have a requirement, incase when undesired document becomes record in Record Library, We need option to declare,undeclare or delete for record/non-record.

Advance Thanks,

N.E.Yogaraajan