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

OnGetAliasForField & OnAssignField event

edited January 2002 in General
Hi,

Any example for using OnGetAliasForField and OnAssignField event?

Regards,
Danny.

Comments

  • edited January 2002
    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?


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited January 2002

    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?


  • edited January 2002
    Sorry for mis-posting question in previous posting.

  • edited January 2002
    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?


  • edited January 2002
    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.

    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.