Username property of a report
Hi all,
I'm trying to find a way to store in the TppReport, the classname of the
datamodule that contains the report-design and thought i could use Username
for this. I want to do this, because at runtime i expand a baseReport with
a certain subreport, and store that total template. Later on i read the template
and want to be able to re-create the datamoduile that contains the code specific
for that subreport
But after a lot of debugging i found the following very strange situation:
TppReport.SetUsername is implemented in TppCommunicator.SetUserName and works
like a charm, setting the protected FUsername field
but
TppReport.GetPropUsername is implemented in TppCustomReport.GetPropUserName
and always returning the constant 'Report' !!!!!
Why is the username of a report always 'Report' ?
Why isnt the SetUsername method "disabled" ?
and most important ... where can i store my classname?
greetings
Bas
I'm trying to find a way to store in the TppReport, the classname of the
datamodule that contains the report-design and thought i could use Username
for this. I want to do this, because at runtime i expand a baseReport with
a certain subreport, and store that total template. Later on i read the template
and want to be able to re-create the datamoduile that contains the code specific
for that subreport
But after a lot of debugging i found the following very strange situation:
TppReport.SetUsername is implemented in TppCommunicator.SetUserName and works
like a charm, setting the protected FUsername field
but
TppReport.GetPropUsername is implemented in TppCustomReport.GetPropUserName
and always returning the constant 'Report' !!!!!
Why is the username of a report always 'Report' ?
Why isnt the SetUsername method "disabled" ?
and most important ... where can i store my classname?
greetings
Bas
This discussion has been closed.
Comments
Here is an rbWiki article that explains how to store custom information with
report templates.
http://www.digital-metaphors.com/rbWiki/Design/Templates/How_To...Store_Information_With_My_Report_Template
The UserName for components such as TppLabel can be specified. The UserName
for the Report class is always Report.
The UserName is displayed by the report designer and used by the RAP
environment for reference objects in code.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com