We don't have any specific examples, since this is for the designer window. There is a data dictionary component which lets you define the field aliases that the user sees. What are you trying to accomplish?
As my application is using XML for passing data from server to client, a ADO dataset is dynamic created for storing the data. And I am trying to display the alias field name instead of the database field name. I have try to use DataDictionary for the matter, but I fail (may be I am trying in a wrong way). Does there any sample teaching how to dynamic create the Table ppline and Field ppline without connecting to database?
If you aren't connecting to a database, then you could use the JITPipeline to retrieve the data. There are examples in the RBuilder installation (main reports demos) which use the JITPipeline. These demos illustrate how to use the JIT. You'll have to take it a notch further and define the fields on the datapipeline at runtime.
To create a field at runtime, see the help file. There are methods such as Datapipeline.DefineField which creates a field object which you can then modify.
If you want to see how RB creates a field, see the source in RBuilder\Source\ppDB.pas in the TppCustomDataPipeline.CreateDefaultFields method.
Comments
There is a data dictionary component which lets you define the field aliases
that the user sees. What are you trying to accomplish?
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
I am using RB 6.03. And I have tried to install a fresh WIN98 with no
default printer and my application is working fine. Any more clues?
dataset is dynamic created for storing the data. And I am trying to display
the alias field name instead of the database field name. I have try to use
DataDictionary for the matter, but I fail (may be I am trying in a wrong
way). Does there any sample teaching how to dynamic create the Table ppline
and Field ppline without connecting to database?
to retrieve the data. There are examples in the RBuilder installation (main
reports demos) which use the JITPipeline. These demos illustrate how to use
the JIT. You'll have to take it a notch further and define the fields on the
datapipeline at runtime.
To create a field at runtime, see the help file. There are methods such as
Datapipeline.DefineField which creates a field object which you can then
modify.
If you want to see how RB creates a field, see the source in
RBuilder\Source\ppDB.pas
in the TppCustomDataPipeline.CreateDefaultFields method.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com