DATA / calcs expression
I am trying to alter the contents of an Data/Calcs expression field within
and am having a spot of trouble..
Is there a way to name the "Field Alias" of an ISQLBuilder.Calcfields
value ??
I am trying to allow the "user" to manually enter a post code, then try
and change my default calcs expression to what they enter by using a
string replace or similar.
--- posted by geoForum on http://delphi.newswhat.com
and am having a spot of trouble..
Is there a way to name the "Field Alias" of an ISQLBuilder.Calcfields
value ??
I am trying to allow the "user" to manually enter a post code, then try
and change my default calcs expression to what they enter by using a
string replace or similar.
--- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.
Comments
Looking at the code, it looks like you can get access to the Items property
of the Calcfields list which returns a TdaCalculation object. It does not
however look like this (or the TdaField) class is exposed to RAP so you
would either need to create a pass-thru function or create and register your
own RTTI class exposing the TdaField published properties.
I will add this as a possible enhancement for the next release of
ReportBuilder.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I needed this was because I wanted the calcs expression field alias to
appear in my CROSSTAB report, as it shows the Alias. Thanks though, I will
have to look at another way of creating my Calcs expression. I will
probably just use a DECLARATION field and my Users can change instead.
Thanks Nico.
Steven
--- posted by geoForum on http://delphi.newswhat.com