Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Performance Management
Lawson Business Intelligence/Reporting/Crystal
Can you query this in LRS?
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Jessica
Past 24 Hours:
2
Prev. 24 Hours:
0
Overall:
5164
People Online:
Visitors:
282
Members:
0
Total:
282
Online Now:
New Topics
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3288
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1348
Roger French
1311
mark.cook
1244
Forums
Unanswered
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Lawson Business Intelligence/Reporting/Crystal
Can you query this in LRS?
Sort:
Oldest First
Most Recent First
You are not authorized to post a reply.
Author
Messages
Ronnie
Veteran Member
Posts: 152
11/17/2015 12:07 PM
I have been asked to check into querying our LRS for some info.
We are wanting to see what users are tied to all of our reports. Sure I could go into each report and look and see what users and roles are assigned, and then go into security and see who is assigned to each of those roles, BUT we have almost 600 reports I have to query through.
I have found the LRS database and tables, but I do not find the info where it shows what users and roles are assigned to the reports.
Joan Herzfeldt
Veteran Member
Posts: 74
11/17/2015 1:28 PM
Here is the sql statement from the crystal report that I created to pull that information.
SELECT "ERS_REPORTACCESS"."INSTANCEID", "ERS_REPORTS"."REPORTID", "ERS_REPORTS"."REPORTNAME", "ERS_REPORTACCESS"."JOBNAME", "ERS_REPORTACCESS"."ACCESSVALUE"
FROM "LAWRS"."ERS_REPORTS" "ERS_REPORTS" INNER JOIN "LAWRS"."ERS_REPORTACCESS" "ERS_REPORTACCESS" ON ("ERS_REPORTS"."REPORTID"="ERS_REPORTACCESS"."REPORTID") AND ("ERS_REPORTS"."INSTANCEID"="ERS_REPORTACCESS"."INSTANCEID")
WHERE "ERS_REPORTACCESS"."ACCESSVALUE">='A' AND "ERS_REPORTACCESS"."INSTANCEID"=0
ORDER BY "ERS_REPORTS"."REPORTID", "ERS_REPORTACCESS"."JOBNAME"
Joan Herzfeldt
Veteran Member
Posts: 74
11/17/2015 1:40 PM
I don't like how Crystal sql statements look. The two tables are ERS_REportAccess and ERS_Reports Link on Report id and Instance ID.
Criteria is {ERS_REPORTACCESS.ACCESSVALUE} >= 'A'
and {ERS_REPORTACCESS.INSTANCEID} = 0 --every report has a zero instance, but the table also contains all of the instances created for each report.
and " " in {ERS_REPORTACCESS.ACCESSVALUE}
You are not authorized to post a reply.