Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Filters the dashboards/reports based on the user Privileges from iserver using jsapi
Srinivas Yarra
<p>Hi,</p>
<p> </p>
<p>I have created User Groups as <strong>G1,G2 </strong>in the FType server. Mean while created two dashboards as <strong>test_G1.dashboard </strong>and <strong>test_G2.dashboard.</strong> These two dashboards placed in the '<strong>Home/Test/</strong>' Path.</p>
<p>we are shared the test_G1.dasboard to G1 user Groups access like <strong>All</strong> and test_G2.dashboard to G2 user Groups acess like <strong>All</strong>.</p>
<p> </p>
<p>user1 belongs to G1,G2 user Groups</p>
<p> </p>
<p>user2 belongs to G2 user Groups.</p>
<p> </p>
<p> </p>
<p>we are able to fetch the test_G1.dashboard and test_G2.dashboard without filtering based on the privileges.But if we add the privilegeFIlter then not able get the data.</p>
<p> </p>
<div>
<div>var fileSearch = new actuate.reportexplorer.FileSearch();</div>
<div>var pFilter = new actuate.reportexplorer.PrivilegeFilter( );</div>
<div>pFilter.setGrantedRoleName('G1');</div>
<div>fileSearch.setPrivilegeFilter(pFilter);</div>
<div>var filterArr = new Array();</div>
<div>var fileCondition = new actuate.reportexplorer.FileCondition( );</div>
<div>fileCondition.setField("FileType");</div>
<div>fileCondition.setMatch("dashboard");</div>
<div>filterArr.push(fileCondition);</div>
<div>fileSearch.setConditionArray( filterArr );</div>
</div>
<p> </p>
<p> </p>
<p>How PrivilegeFilter will work?</p>
<p> </p>
<p>Please find my sample client page in the attachments.</p>
<p> </p>
<p>Thanks,</p>
<p>Srinvias</p>
<p> </p>
<p> </p>
<p> </p>
Find more posts tagged with
Comments
There are no comments yet