Subject Re: [IBO] TIB_Query.ColumnAttributes -->MyComputedColumn=computed
Author Jason Wharton
Oh yes, in that case what the COMPUTED flag allows is for the column to be
modified. Otherwise you may get an exception telling you that you cannot
modify a calculated field.

I think I have it so that it won't do that but I'll have to double check it.

Entering it into KeyDescLinks should be everything necessary, IMO.

Thanks for drawing attention to this.

FWIW,
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com


----- Original Message -----
From: "Claudio Valderrama C." <cvalde@...>
To: <IBObjects@yahoogroups.com>
Sent: Friday, April 06, 2001 7:34 PM
Subject: RE: [IBO] TIB_Query.ColumnAttributes -->MyComputedColumn=computed


> > -----Original Message-----
> > From: Jason Wharton [mailto:jwharton@...]
> > Sent: Viernes 6 de Abril de 2001 14:34
> >
> > If a field in a select is a derived calculation IBO will know that it is
> > calculated without you having to flag it as COMPUTED in the
> > ColumnAttributes
> > property. This is because it won't return anything in the RelName
> > or SQLName
> > portions of the column descriptors. It will only have the AliasName
filled
> > in depending on what you named the column.
>
> So, a master dataset that uses
> select ...
> (select ... from ...) as FIELD
> from ...
>
> to populate FIELD and FIELD is used as the display field for a lookup
> dataset embedded in a grid, doesn't need to flag FIELD as computed as the
> help says but still needs KeyDescLinks?
>
> C.