Showing posts with label Custom ribbon button in sharepoint. Show all posts
Showing posts with label Custom ribbon button in sharepoint. Show all posts

Saturday, November 3, 2012

Add Custom button to SharePoint ribbon with server side code to execute


To add custom button to ribbon we will need to do below things:-

1.       Create SharePoint Empty Project.

2.       Add new “Empty Element”.

3.        Map Layout folder.

4.       Add One JS file to Layout folder.

5.       Add Application Page to same folder.

6.       Crete 2 logo images


Look at below solution Structure:-


 

Output:-



Custom button will be enabled only when item is selected:-


Code:-




SharePoint document metadata not updating

I faced a weird issue today, Metadata for document which has lookup column was not updating even after saving the item. There was no erro...