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)
getUserRoles() not returning user groups in Birt iHub Ftype
jkamaraj
<p>I have the following code in the onPrepare method of the table.</p>
<p> </p>
<p> </p>
<p> </p>
<p>userRoles = reportContext.getAppContext().get("ServerContext").getUserRoles();</p>
<p>reportContext.getAppContext().get("ServerContext").appendToJobStatus("The user roles are: " + userRoles +"\n")</p>
<p> </p>
<p>In the server, the report is run by a user who is the member of following usergroups</p>
<p> </p>
<p>Manager</p>
<p>Administrator</p>
<p> </p>
<p>I am expecting to see the following two roles in status but I get no user rolls when run in servers.</p>
<p> </p>
<p>Status only display the following:</p>
<p> </p>
<p>The user roles are:[]</p>
<p> </p>
<p>What am I missing? Thanks</p>
<p> </p>
<p> </p>
Find more posts tagged with
Comments
micajblock
<p>What version of BIRT are you using? How is the user running the report. I just tested with iHub 3.1 and your exact code works for me.</p>
<p> </p>
<p> </p>
jkamaraj
<p>I am using 23iHub ( Build 230A140709) Let me download the recent version and see</p>
<p> </p>
<p>Thanks.</p>
jkamaraj
<p>Mica., I tested in iHub 3.1 Build ( 231A150206) and it works fine there.</p>
<p> </p>
<p>Thank you.</p>
<p>Raj</p>