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

How to access DataPipeline.FieldAliasForFieldName

edited May 2010 in RAP
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.

Comments

  • edited May 2010
    RB 12 introduces support for using the FieldAlias or the FieldName

    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
This discussion has been closed.