Portal report as Data Source for LBI Crystal report

 4 Replies
 0 Subscribed to this topic
 22 Subscribed to this forum
Sort:
Author
Messages
Illvatar
Basic Member
Posts: 4
Basic Member

    We have some users who have access to LBI but not to Portal, so we have several Portal reports that we read into Crystal and output in LBI, usually in Excel format.  One report that I am trying to do this with is the Payment Voucher Interface Error Report (YP520).  This report has two logical sections to is, depending on the types of errors encountered.  The report populates 0, 1, or both sections, depending on the errors encountered, if any.

    My problem is that I need to be able to report this in Crystal.  If one or both sections of the report are empty (just the message <<< NO ERRORS >>>) then the report does not contain the fields from that section and my Crystal report burps and dies.

    What would be a proper method for me to use to allow my Crystal report to recognize that there is no data and to allow it to report both sections of this report?

    David Williams
    Veteran Member
    Posts: 1127
    Veteran Member
      Could you use the different sections of the report as subreports in Crystal so if the data from one section isn't available then the other section should still work?
      David Williams
      Illvatar
      Basic Member
      Posts: 4
      Basic Member

        Thanks David, that is where I am heading with it.  However, the column from the report that indicates that there is no data does not exist if there is data.  I'm trying to figure out how I can determine whether to produce the subreport, but I can't figure a way to determine if any given column exists or not.

        Illvatar
        Basic Member
        Posts: 4
        Basic Member
          I understand that in the past (previous versions) there were ways of using VBScript with Crystal. Might there be a way to use a script from within Crystal to determine the layout of the custom Portal report and pass that back to the Crystal?

          I have not found a way to do this, but maybe someone has, or they have a better idea then I do.
          Illvatar
          Basic Member
          Posts: 4
          Basic Member
            Since I have this setup as a command in Crystal, is it possible to read the output of one command into another command? If so, is there then a way to determine what column names were returned from that first command? If so, then I can probably figure a way to Select data based on what columns exist.

            Does anyone have any thoughts on this?