Note that there are some explanatory texts on larger screens.

plurals
  1. POSharePoint view access control
    primarykey
    data
    text
    <p>I have the following requirement to fulfill:</p> <p>I have a view group by "Project" column. Current logged in user need to expand only a project that he/she belongs to (I have a way to get the user's project). The grouped projects have the following forms:</p> <pre><code>&lt;td nowrap="" class="ms-gb" colspan="100"&gt;&lt;img width="0" height="1" alt="" src="/_layouts/images/blank.gif"&gt;&lt;a onclick="javascript:ExpCollGroup('1-2_','img_1-2_');return false;" href="javascript:"&gt;&lt;img border="0" alt="Expand/Collapse" src="/_layouts/images/plus.gif" id="img_1-2_"&gt;&lt;/a&gt;&amp;nbsp;&lt;a onclick="javascript:ExpCollGroup('1-2_','img_1-2_');return false;" href="javascript:"&gt;Project&lt;/a&gt; :&amp;nbsp;&lt;a href="[mysite]&amp;amp;RootFolder=*"&gt;Project1&lt;/a&gt; &lt;span style="font-weight: lighter"&gt;&amp;lrm;(2)&lt;/span&gt;&lt;/td&gt; &lt;td nowrap="" class="ms-gb" colspan="100"&gt;&lt;img width="0" height="1" alt="" src="/_layouts/images/blank.gif"&gt;&lt;a onclick="javascript:ExpCollGroup('1-3_','img_1-3_');return false;" href="javascript:"&gt;&lt;img border="0" alt="Expand/Collapse" src="/_layouts/images/plus.gif" id="img_1-3_"&gt;&lt;/a&gt;&amp;nbsp;&lt;a onclick="javascript:ExpCollGroup('1-3_','img_1-3_');return false;" href="javascript:"&gt;Project&lt;/a&gt; :&amp;nbsp;&lt;a href="[mysite]&amp;amp;RootFolder=*"&gt;Project2&lt;/a&gt; &lt;span style="font-weight: lighter"&gt;&amp;lrm;(1)&lt;/span&gt;&lt;/td&gt; </code></pre> <p>Tried the following but disables all project links:<br> $('td:contains("Project1") td.ms-gb a').removeAttr("onclick").click(function() { return false; });</p> <p>Also when a user clicks on project that he/she don't have access to, I need to throw out a message "you do not have access to this project...".</p> <p>All helps are greatly appreciated! Thanks!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload