Crystal and Lawson's OLE DB

Sort:
You are not authorized to post a reply.
Author
Messages
Bob Beverley
Advanced Member
Posts: 31
Advanced Member
    I'm able to generate reports in Crystal using the Lawson Connector (not by choice, but it's the way the client wants me to connect). Couple of issues:
    1. When I first run the report I am prompted that the table isn't recognized and I have to respond 'No' to 'do you want to remove the table from the report'. However, the report runs successfully. Why is it that Crystal doesn't think it's a valid table?

    2. When I view the SQL (Database/Show SQL Query) I get just a list of the tables with nothing else.


    As I read the Lawson 'Reporting Services User and Administration Guide', it appears that I should be able to build my queries in Crystal (as opposed to creating them in Lawson's query builder) - but I am concerned that there seems to be a 'disconnect' between Crystal and the OLE DB connector.

    John Henley
    Senior Member
    Posts: 3348
    Senior Member
      What version of Crystal are you using to build the reports?
      Thanks for using the LawsonGuru.com forums!
      John
      Bob Beverley
      Advanced Member
      Posts: 31
      Advanced Member
        Sorry for the delay I'll watch it a little closer - I'm using Crystal 11 and OLE DB Ver 9
        Bob Beverley
        Advanced Member
        Posts: 31
        Advanced Member
          I should also mention that it's iSeries
          John Henley
          Senior Member
          Posts: 3348
          Senior Member
            When you create the report -- are you selecting the table from the table list, or are you using "Add Command"?
            Thanks for using the LawsonGuru.com forums!
            John
            Bob Beverley
            Advanced Member
            Posts: 31
            Advanced Member
              Selecting from a list
              Bob Beverley
              Advanced Member
              Posts: 31
              Advanced Member
                Is the add command preferred?
                John Henley
                Senior Member
                Posts: 3348
                Senior Member
                  You definitely want to use "Add Command", which *should* bring up the Lawson query builder, and build the AGS query. That will fix both of your problems, in fact, when you view the SQL (Database/Show SQL Query), you will see the AGS query.

                  If "Add Command" does not bring up the Lawson Query Builder, you need to make a one-time registry tweak to connect the Lawson OLEDB provider to Crystal XI:

                  Save the following into a file (e.g. CRXI_Lawson.reg), and then double-click CRXI_Lawson.reg to load it into the registry:

                  Windows Registry Editor Version 5.00

                  [HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.0\Crystal Reports\DatabaseOptions\Lawson.LawOLEDBC.4]
                  "QueryBuilderFunctionName"="BuildQuery"
                  "QueryBuilderProgID"="LawQueryBuilder.Query"

                  Thanks for using the LawsonGuru.com forums!
                  John
                  Bob Beverley
                  Advanced Member
                  Posts: 31
                  Advanced Member
                    Thanks for your help - I can see now that if you're using ole db you 'have to' use the add command nad build the basic report with query builder and just format it in Crystal.
                    Linda Herrmann
                    Basic Member
                    Posts: 8
                    Basic Member
                      John...

                      I'm using Crystal 9 with Query Builder 9.0.3.1. I'm on Lawson 8.1.0.4

                      When I click "Add Commmand" query builder does not launch. The Enter SQL Query box appears.

                      I have the same settings as you show above in my registry with one exception..

                      [HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.0\Crystal Reports\DatabaseOptions\Lawson.LawOLEDBC.4]
                      "QueryBuilderFunctionName"="BuildQuery"
                      "QueryBuilderProgID"="LawsonQueryBuilder.Query" --- Lawson is spelled out.

                      I scoured the Lawson KB. Their "fix" was to uninstall Crystal and uninstall Query Builder. Then install Crystal (first) and install Query Builder.
                      Needless to say, didn't work!

                      Any suggestions?


                      John Henley
                      Senior Member
                      Posts: 3348
                      Senior Member
                        Hi Linda,
                        You'll need to add those registry keys under the "Crystal Reports" key for Crystal 9...those registry keys are for Crystal XI ...

                        For Crystal 9, I think it's under

                        [HKEY_CURRENT_USER\Software\Crystal Decisions\9.0\Crystal Reports\DatabaseOptions\Lawson.LawOLEDBC.4]
                        "QueryBuilderFunctionName"="BuildQuery"
                        "QueryBuilderProgID"="LawQueryBuilder.Query"

                        Thanks for using the LawsonGuru.com forums!
                        John
                        Linda Herrmann
                        Basic Member
                        Posts: 8
                        Basic Member
                          Thanks John.

                          It worked but, in case someone else experiences the same issue as I, I did have to change it FROM
                          "QueryBuilderProgID"="LawQueryBuilder.Query"
                          TO
                          "QueryBuilderProgID"="LawsonQueryBuilder.Query"

                          Linda
                          John Henley
                          Senior Member
                          Posts: 3348
                          Senior Member
                            Thanks. I think that changed from v4 to LSF9 version of the OLEDB provider...
                            Thanks for using the LawsonGuru.com forums!
                            John
                            You are not authorized to post a reply.