Subject | RE: [IBO] Refusal of ordering and searching |
---|---|
Author | Don Schoeman |
Post date | 2001-08-06T16:11:50Z |
Now I've also found the solution... I'm using Delphi frames which is fully
DB functional on it's own so I can simply stick it on any form and the form
becomes fully data-aware at once. The frame and the form I was using became
unsynchronized so whenever I made changes to the frame, the changes wasn't
reflecting on the form. I think it's something that we all have to watch out
for when working with frames.
Best Regards,
Don Schoeman
-----Original Message-----
From: Don Schoeman [mailto:ds@...]
Sent: 06 August 2001 05:57
To: IBObjects@yahoogroups.com
Subject: RE: [IBO] Refusal of ordering and searching
Hi Helen,
I think I found the problem (but not the solution), it seems like the
OrderingLinks and OrderingItems properties are cleared at some stage during
run time. I set all the properties during design time and I do not clear
them myself. It almost seems like the properties are not stored. Weird. I'll
let you know if I find what causes this.
-Don
-----Original Message-----
From: Helen Borrie [mailto:helebor@...]
Sent: 06 August 2001 05:30
To: IBObjects@yahoogroups.com
Subject: Re: [IBO] Refusal of ordering and searching
At 05:18 PM 06-08-01 +0200, you wrote:
Just an outside chance -
Does it make a difference if you use another word for the "user-friendly"
alias "NAME"? e.g. change the orderingitem entry to
CUSTOMERNAME=NAME;NAME DESC
and the orderinglink to
CUSTOMERNAME=2
NAME is sometimes a tricky word to use in Delphi because it's reserved.
Another one I've noticed causing problems is UNIT...
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/
DB functional on it's own so I can simply stick it on any form and the form
becomes fully data-aware at once. The frame and the form I was using became
unsynchronized so whenever I made changes to the frame, the changes wasn't
reflecting on the form. I think it's something that we all have to watch out
for when working with frames.
Best Regards,
Don Schoeman
-----Original Message-----
From: Don Schoeman [mailto:ds@...]
Sent: 06 August 2001 05:57
To: IBObjects@yahoogroups.com
Subject: RE: [IBO] Refusal of ordering and searching
Hi Helen,
I think I found the problem (but not the solution), it seems like the
OrderingLinks and OrderingItems properties are cleared at some stage during
run time. I set all the properties during design time and I do not clear
them myself. It almost seems like the properties are not stored. Weird. I'll
let you know if I find what causes this.
-Don
-----Original Message-----
From: Helen Borrie [mailto:helebor@...]
Sent: 06 August 2001 05:30
To: IBObjects@yahoogroups.com
Subject: Re: [IBO] Refusal of ordering and searching
At 05:18 PM 06-08-01 +0200, you wrote:
>I've got a simple one-table-non-joined query which I'd like to order andDon,
>search on.
>
>The query looks like this:
>SELECT
> CUST_ID, NAME, SURNAME, ID_NO, PHONE_H, PHONE_W, PHONE_CELL,
> FAX, PH_ADDR_1, PH_ADDR_2, PH_ADDR_3, PH_ADDR_4, PH_CODE,
> PO_ADDR_1, PO_ADDR_2, PO_ADDR_3, PO_ADDR_4, PO_CODE,
> NOTES
>FROM
> CUSTOMERS
>
>The TIB_Query .OrderingItems property is set to:
>CUST_ID=CUST_ID;CUST_ID DESC
>NAME=NAME;NAME DESC
>
>The OrderingLinks property is set to:
>CUST_ID=1
>NAME=2
>
>The OrderingItemNo property is set to 1.
>
>I've done the sorting of tables plenty times now and for some reason the
>sorting on the most simple query of them all doesn't want to work. What
>other properties do I still need to set? The CUST_ID field is the table's
>primary key. I also have a problem searching through the table but I think
>once the sorting has been sorted out, the searching would also work.
Just an outside chance -
Does it make a difference if you use another word for the "user-friendly"
alias "NAME"? e.g. change the orderingitem entry to
CUSTOMERNAME=NAME;NAME DESC
and the orderinglink to
CUSTOMERNAME=2
NAME is sometimes a tricky word to use in Delphi because it's reserved.
Another one I've noticed causing problems is UNIT...
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/