OnDrawCommandClick event
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?
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?
This discussion has been closed.
Comments
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
http://www.digital-metaphors.com
info@digital-metaphors.com