Client Script to Remove Item Level Permission in SharePoint 2013

2014-03-23 Thread ken zheng
Hi guys,

  just wonder if anyone has the code in CSOM or REST to remove all permissions 
from a list item. I have been searching around and tried for a day but not 
succeed.

My code is like:

currentItem.breakRoleInheritance(true, false);
roleAssgn = currentItem.get_roleAssignments();

for (r in roleAssgn) {
Assgn = roleAssgn[r];
Assgn.DeleteObject;
   }
currentcontext.executeQueryAsync(onGetAssignmentsSucceeded, 
onGetAssignmentsFailed);

The code runs without error but it didn't remove the permissions. I can grant 
permission without issue.

Cheers

Ken
  ___
Sponsored by Infotext - Amazing Search for Microsoft SharePoint - 
http://www.infotext.com/
ozmoss mailing list
ozmoss@ozmoss.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss

InfoPath - Rendering email addresses in Free Text as MailTo links

2014-03-23 Thread Nigel Witherdin
Hey All,
SharePoint single line of text fields seem to automatically render email 
addresses as mailto links when shown in the view form.
Is it possible to do this in an InfoPath form used to replace the ootb 
SharePoint form for a list?
Cheers,
Nigel ___
Sponsored by Infotext - Amazing Search for Microsoft SharePoint - 
http://www.infotext.com/
ozmoss mailing list
ozmoss@ozmoss.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss