Subject | Re: [IBO] Newbie and Master-Detail |
---|---|
Author | Helen Borrie |
Post date | 2001-08-07T04:46:32Z |
At 11:57 AM 06-08-01 -0700, you wrote:
A computed or calc field is the way to go, I think. It will be read-only, of course.
regards,
Helen
InterBase Developer Initiative · http://www.interbase2000.org
_______________________________________________________
>Helen,No problem. You can get it either as a computed output column (in your query) or create a calculated field for it on the client side.
>
>Thanks for your advice. I agree with both points. Though, I must respond.
>
>1. But, but, but..... "they" changed their minds.
>
>2. Reorganizing the DB is not currently in the cards. In a few months, yes.
>
>Meanwhile, any thoughts about "workarounds"?
>a) Calculated fields?
>b) OnGetText? - which I can't get to work with a TIB_QueryOnGetText is an event belonging to the TIB_Column object. It is fired each time you reference the column with Fields['ColName].AsString or FieldByName('ColName'].AsString. I think it's pretty obscure and maybe is not meant for handler use (no GetText method is surfaced for it).
A computed or calc field is the way to go, I think. It will be read-only, of course.
regards,
Helen
>PhilAll for Open and Open for All
>
>At 8/4/01 05:33 PM +1000, you wrote:
> >At 09:09 PM 03-08-01 -0700, you wrote:
> >
> > >The problem is: The user requires that the MasterLink field , which is
> > >ACCOUNT always be displayed in UPPER case. And the actual database field
> > >is in *lower* case. It is very convenient to use the CharCase Field
> > >Property to UPPER case it for display.
> > >
> > >But if I do that, the MasterLink Param is also passed in UPPER case rather
> > >than in the *actual* case of the field in the database. And therefore, no
> > >matches.
> > >
> > >Can anyone suggest some simple solutions?
> >
> >Phil,
> >You are being confronted with what can happen when you use non-atomic
> >keys. Without going into one of my famous sermons :), any column that
> >could be affected by a user's requirements should *NOT* be a key.
> >
> >If possible, add a new, atomic column to both tables, an integer or INT64
> >that becomes the primary key of the master table and the foreign key on
> >the detail table. Then you can display the account number in whatever
> >what you like and, in fact, you will do yourself a favour for search
> >purposes by adding a trigger-populated proxy column that contains the
> >account code uppercased.
> >
> >Regards,
> >Helen
> >
> >All for Open and Open for All
> >InterBase Developer Initiative · http://www.interbase2000.org
> >_______________________________________________________
> >
> >
> >
> >
> >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
InterBase Developer Initiative · http://www.interbase2000.org
_______________________________________________________