Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

OnDrawCommandClick event

edited March 2002 in General
How can I access the current index # of the selected pipeline's record
in a report's OnDrawCommandClick event? I want to access data not
viewable in the report, and show it in a pop-up. I try to call
TppJitPipeline.RecordIndex, but it always returns my highest record.
How can I get the real record index?

Comments

  • edited March 2002
    Can you place this data in a drill down subreport? Create a master detail
    report, such that the 'missing' data is actually traversed and exists in the
    subreport. Otherwise, you'll need to regenerate the report to show this
    data in the report. There is a drill down demo in your installed
    ..\RBuilder\Demos\ main reports demo directory.

    In the preview, the page has already been generated. The pages are simply a
    collection of draw commands, much like a Windows metafile. It is too late
    to access the current record. When the report traverses the data and
    creates the pages in the first pass, you can build an TList of objects which
    have a draw command text (the one that is clicked) and the index it appeared
    in the JIT. I think you can then write your own method to get that value
    from based on the index. You might want to build a list of values so that
    you can access them by index, or you could traverse the JIT pipeline to get
    the value.


    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.