How do I create a button on the ribbon and how do I move the selected item(s) from the list/library into a Document Set?
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
|
Here you have something quite similar (just few changes needed): How to Display a SharePoint Dialog from Ribbon Button and Get Selected Item Context Basically you need two things:
For that last part you can use info provided here: How to programmatically create document set, add or move files, GetDocumentSetById For more info on Ribbon customizations I recommend reading SharePoint 2010 Ribbon Customization series by Chris O'Brien (@ChrisOBrienMVP). Addition (thx goes to @StuartPegg): Some info on how to enable Ribbon Button when item(s) in list is(are) selected: Enable Ribbon button when one item only is selected and it is not folder SharePoint 2010 Ribbon Customization Part VI: How to enable/disable buttons in ribbon conditionally? |
||||
|
|