This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ctx = SP.ClientContext.get_current(); | |
// Change your list title here | |
var list = ctx.get_web().get_lists().getByTitle("Documents"); | |
list.set_allowDeletion(true); | |
list.update(); | |
ctx.executeQueryAsync( | |
function (o, d) { | |
console.log("You can now delete the list"); | |
}, | |
function (o, e) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// By Vincent Rothwell | |
// http://blog.thekid.me.uk | |
// | |
// Taken from blog post http://bit.ly/Create-XLSX-JavaScript-SharePoint | |
function createSpreadsheetData(number) { | |
var openedSpreadsheet = new openXml.OpenXmlPackage(blankSpreadsheet); | |
var workbookPart = openedSpreadsheet.workbookPart(); | |
var wbXDoc = workbookPart.getXDocument(); |