Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: UpdateList method can't unhide lists

$
0
0

Finally solved!!

To 'totally' hide:

$().SPServices({
  operation: "UpdateList",
  listName: "YourListName",
  listProperties:"<List Hidden='true' />",
  completefunc: function (xData, Status){
    console.log($(this))
  }
});

To 'totally' unhide:

$().SPServices({
  operation: "UpdateList",
  listName: "YourListName",
  listProperties:"<List Hidden='false' OnQuickLaunch='true' />",
  completefunc: function (xData, Status){
    console.log($(this))
  }
});

OnQuickLaunch property is the secret, that is not listed on UpdateList method:

http://msdn.microsoft.com/en-us/library/lists.lists.updatelist.aspx

Thanks to Thomas Lee and Keith Dahlby that talk about it on comments ;p


Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>