Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

SharePoint Ribbon custom button "enablescript"

$
0
0

Hi,

I want to set  permission for  all selected items in library.

I 've added custom button   to ribbon.

My custom button{  find all selected items and redirect to "mypage.aspx?ids=12,25,45" } .

In them there is no problem....

But..

if curentuser  does not have  full control  permissions  then  mybutton must be disable..

EnableScript not working:((

I 'have tried this and like this  examples.

I inserted alert('') between rows..

 and this row not working.

context.executeQueryAsync(Function.createDelegate(this, this.onSuccessMethod), Function.createDelegate(this, this.onFailureMethod))

http://social.technet.microsoft.com/Forums/sharepoint/en-US/f21ad6b1-445a-497d-a286-d3ba8c2928a6/how-to-get-the-current-user-permission-level-on-a-list-item-with-ecmascript




Viewing all articles
Browse latest Browse all 7589

Trending Articles



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