Modifying the Crystal Report
- Open the report in Crystal in Field Explorer view.
- Add the cascading parameters to your report.
- Add the LAWSONRS_ReportAccessId variable to the report.
- Select Database > Database Expert.
-
Create a command table with an SQL query for
LAWSONRS_ReportAccessId.
For example, this is a s query based on the country or region example in the steps above.
SELECT DISTINCT Customer.`Country`, Customer.`Region`, Customer.`City` FROM Customer INNER JOIN User_Country ON Customer.`Country` = User_Country.`Country` AND Customer.`Region` = User_Country.`Region` WHERE User_Country.USER_ID = '{?LAWSONRS_ReportAccessId}'
- Click OK. Save the report.