How to access DataPipeline.FieldAliasForFieldName
Is there currently a way to get the FieldAlias for a given field in RAP? I
know I could write a new function to do it but I wanted to find out if there
was a way without having to do that.
I need to do something like this in the OnCalc event of a Variable
component:
Value := dbText1.DataPipeline.FieldAliasForFieldName(dbText1.DataField);
If there is no solution I will probably write a function such as:
function GetFieldAliasForFieldName(aDataPipeline: TppDataPipeline;
aFieldName: String): String;
Thanks for your help.
know I could write a new function to do it but I wanted to find out if there
was a way without having to do that.
I need to do something like this in the OnCalc event of a Variable
component:
Value := dbText1.DataPipeline.FieldAliasForFieldName(dbText1.DataField);
If there is no solution I will probably write a function such as:
function GetFieldAliasForFieldName(aDataPipeline: TppDataPipeline;
aFieldName: String): String;
Thanks for your help.
This discussion has been closed.
Comments
Value := DataPipeline['FieldAlias or FieldName'];
Prior to RB 12, you would need extend RAP with a custom pass-thru function
as you propose.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com