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
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.
>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.
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)?
Comments
of the pipeline?
Ed Dressel
Team DM
for the user verses what you have?
Ed Dressel
Team DM
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
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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