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)
How to integrate BIRT rpt file with Java Liferay
Abdur Rahmaan
<p style="color:#000000;font-family:helvetica, arial, sans-serif;">Hi All,</p><p style="color:#000000;font-family:helvetica, arial, sans-serif;"> </p><p style="color:#000000;font-family:helvetica, arial, sans-serif;">I have created RPT design reports with cascading parameters, working fine when executing, successfully integrated to our application which has been developed by Java Liferay CE. Now, the challenging part is when an user <strong>" A "</strong> logs-in to our application, his UserId has to be passed as a parameter in BIRT report and he can be able to see only his reports nor others. But as of now my RPT file is talking to the backend database and it gives all the users Id's in the parameter list box. How can I direct my report to front end data which is often dynamic. Looking for work around. Can anyone guide me to solve this. Waiting for answers. Thanks </p>
Find more posts tagged with
Comments
kclark
<p>After the user has selected a user ID the report executes fine, then when the user navigates to other reports you want the user to remain without seeing the parameter anymore, is this correct?</p><p> </p><p>You could use a hidden parameter on each report. Then check for the value doing something like</p><pre class="_prettyXprint">if(param["hiddenID"] != null) { this.query = "select * from table where userid =" + params["hiddenID"];}else{ // query for the cascading parameter}</pre>
Abdur Rahmaan
<p>Thanks for your response, </p><p> </p><p>I don't want to confuse you. Let me explain with an example, there is a report which has a parameter like "Select_User" with (list box) display type. Users are A, B, C & D. when we select any of the user it shows the corresponding user report. This works fine in BIRT tool. Now I am integrating this report with my Java application. After integrating it works fine as worked as in BIRT tool.</p><p> </p><p>Now in my application, if user 'A' logs-in, then this 'A' value should be passed as a parameter in "Select_User" parameter. And it has to show only 'A' s report, not B , C and D. User A should not see others report. Kind of roles and permissions.</p><p>Similarly for B user , C user and D user. Tell me if you did not understand this properly.</p><p> </p><p>Is this possible in BIRT. Suggest me your ideas. </p>
Abdur Rahmaan
<p>Can anyone reply for my post, I am searching for solution more than 2 weeks, yet I didn't get it. Can anyone atleast tell me whether it could be achieved or not in BIRT. what s the work around for this.</p>