OnGetDirectory event in TpsReportModuleVolume
In the Custom Parameters demo, reports that are the wrong colour (based on
the session parameters) are filtered out by removing them from
aEventParams.Directory in the TrsReportTemplateVolume.OnGetDirectory event.
How would you do that when using reports on forms? I assume you would use
the OnGetDirectory event in TrsReportModuleVolume, but how do you access the
instances of this class that are created when you call
TrsReportCatalog.RegisterReport?
--
Nathan Sutcliffe
nsutcliffe@speedlinesolutions.com
the session parameters) are filtered out by removing them from
aEventParams.Directory in the TrsReportTemplateVolume.OnGetDirectory event.
How would you do that when using reports on forms? I assume you would use
the OnGetDirectory event in TrsReportModuleVolume, but how do you access the
instances of this class that are created when you call
TrsReportCatalog.RegisterReport?
--
Nathan Sutcliffe
nsutcliffe@speedlinesolutions.com
This discussion has been closed.
Comments
Have researched this, but thus far have not found any way to access the
ReportModuleVolume instance. I will continue to research it more and post a
follow up here.....
--
Nard Moseley
Digital Metaphors
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
a
Thanks. An alternative might be a way to create instances of
TrsReportModuleVolume and register reports with them. I couldn't see how to
do that either.
a
Any progress on this issue?
No. I think this is a limitation of the current implementation.
I tried several work arounds and all failed.
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Thanks for looking into this. Can I turn this into a feature request for
the next version?
I was finally able to create an example of using TrsReportModuleVolume
event-handlers:
http://www.digital-metaphors.com/tips/ReportModuleVolumEventHandlers.zip
--
Nard Moseley
Digital Metaphors
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
This looks like it'll work nicely! Thanks for your help!
In the next maintenance release there will be a new
TrsReportCatalog.GetReportModuleVolume(aVolumeName) method that make
retrieving the report volume instance simpler.
--
Nard Moseley
Digital Metaphors
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com