Sharepoint 2013 compatibility?

Jul 9, 2013 at 3:41 PM
Edited Jul 9, 2013 at 3:42 PM
Can you please make this solution compatible with Sharepoint 2013 lists too?

I tried to deploy this to my 2013 farm and my CA broke :( I then canceled deployment and deleted solution and it came back.

This sounds like a great solution and would be very useful on 2013 too.
Coordinator
Jul 10, 2013 at 4:50 AM
I don't have SharePoint 2013 VM available right now. But I will do it as soon as I get one.
Jul 10, 2013 at 11:28 AM
I have been able to deploy it to my 2013 farm using the following commands:

Add-SPSolution C:..\NY.ExportVersionHistory.wsp
Install-SPSolution -Identity NY.ExportVersionHistory.wsp -CompatibilityLevel 15 -GACDeployment
Enable-SPFeature -Identity NY.ExportVersionHistory_NY.ExportVersionHistory.Feature -confirm:$false -url http://....

I can see the button but the image isn't being pulled through and the control seems disabled even when I select some list items
Jul 10, 2013 at 1:30 PM
I got it to work after following steps on here:
http://stackoverflow.com/questions/14716641/convert-sharepoint-2010-solution-to-2013-and-visual-studio-2012

I now get the icon but when i click it, it tries to take me .../_layouts/15/....

The only issue I now have is in file ExportVersionHistory.js on this line:
var pageUrl = SP.Utilities.Utility.getLayoutsPageUrl('/NY.ExportVersionHistory/ExportVersionHistory.aspx?ID=' + itemIds + '&List=' + listId);

It builds this URL as:
http://.../_layouts/15//NY.ExportVersionHistory/ExportVersionHistory.aspx?ID=3,2,&List={D50AC1E3-0401-4D47-AA5B-4E600325A4A0}

But the export is only visible from:
http://.../_layouts/NY.ExportVersionHistory/ExportVersionHistory.aspx?ID=3,2,&List={D50AC1E3-0401-4D47-AA5B-4E600325A4A0}

I then changed the above line to:
var pageUrl = '../../_layouts/NY.ExportVersionHistory/ExportVersionHistory.aspx?ID=' + itemIds + '&List=' + listId;

And all is working as expected.
Coordinator
Jul 10, 2013 at 2:38 PM
Great to hear that!