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

Pipeline names in data tree

edited March 2010 in General
Hi,
is it possible to show other pipeline name than UserName in Data tree in
report designer?

For example:

Data Tree now
PipeXYZ1234567890
+-- xPrintA583D27AB94649AAACA7962F75B6BFFD

And I want to show to end user this:
Orders
+-- Customers

Thanks
Roman

Comments

  • edited March 2010
    AFAIK, no. That is what the user name is for. Do you want to change the name
    of the pipeline?

    Ed Dressel
    Team DM

  • edited March 2010
    I should have asked another question.... why do you want a different name
    for the user verses what you have?

    Ed Dressel
    Team DM
  • edited March 2010
    Hi,
    we create pipelines automatically and UserName is unfortunately not in
    "human language".
    For example we are using GUIDs in some cases.
    And then second reason is translations. We cannot change UserName for
    different languages
    because it is saved in report definition...

    Regards
    Roman Krupicka

    "Edward Dressel [Team DM]" píše v diskusním príspevku
  • edited March 2010
    Hi Roman,

    As Ed mentioned the purpose of the UserName property is to give your users a
    human readable name for each pipeline.

    I'm a bit unclear about what you mean by the UserName saved in the Report
    definition. The pipelines are not saved in the report definition unless you
    are using DADE to create your pipelines.

    The DataTree uses the TppLayoutFactory (ppRptWiz.pas) class to determine
    which component is created for a given field. This class is completely
    replacable so it would be possible for you to create your own LayoutFactory
    that adds some functionality to check to see if a memo field contains
    RichText code. Take a look at the CreateComponentForField and
    DataTypeToComponentClass routines specifically.

    To replace the existing LayoutFactory you would simply assign your own to
    the gcLayoutFactory variable.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2010
    Hi Nico!


    You are right, but I cannot change UserName for example due to translation
    (different users with different languages can edit the same report).


    UserName is saved in report calculations, so if it is ones used, I cannot
    change...

    Regards
    Roman
  • edited March 2010
    >UserName is saved in report calculations, so if it is ones used, I cannot

    I'm a bit unclear about this, do you mean RAP? Basically our intension with
    the UserName property was to give the report creator a way to define the
    pipeline names in separate translations if needed. If you are loading
    templates, you can perform the translations after the template is loaded.
    If the pipelines are created in code, you will need to wait until they are
    created then update the UserName with the proper translation.


    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2010
    Hi,
    yes I mean RAP.
    What name of pipeline is used in RAP? Object name (APipeline.Name) or User
    name (APipeline.UserName)?

    Main problems with translation of UserName are:
    1. it must be unique
    2. it must be valid delphi identifier
    If I want to translate, I have problem with unicode characters (for example
    chinese, russian etc.).

    I think than better would be to add property Description to TppPipeline and
    show it in data tree:
    instead of
    MyMainPipeline
    +---- MyNextPipeline

    this
    MyMainPipeline (description of MyMainPipeline)
    +---- MyNextPipeline (description of MyNextPipeline)

    I tried it but I cannot recompile sources due to RAP (interface of
    TppPipeline is changed).


    There is a list view 'Fields for ' in data tree with 3 columns
    (Name, Type and Size).
    Is it possible to add next column with description (for example Display
    name)?

    Thanks
    Roman

This discussion has been closed.