Subject | Re: [IBO] TIB_Qry and Multiple Rows... |
---|---|
Author | Helen Borrie |
Post date | 2007-03-29T21:33:47Z |
At 05:26 AM 30/03/2007, you wrote:
(COD_TALHAO, I assume).
different table. KeySource and MasterSource would never point to the
same datasource.
Multiple Rows error. And nil the KeySource property.
You have no JoinLinks, so ignore that.
MasterSource should be pointing to the datasource for the
CTPROPRIEDADE dataset. The CTPROPRIEDADE dataset should have
COD_PROPRIEDADE as its KeyLinks.
Please go back to the sample that I sent you and follow what I did there.
Helen
>Hello Friends.This is wrong. It should be the unique key of the dataset
>
>I have a TIB_Query with following SQL:
>
>SELECT CTTALHAO.COD_TALHAO,
> CTTALHAO.DESCRICAO,
> CTTALHAO.HA_TALHAO,
> CTTALHAO.COD_PROPRIEDADE,
> CTTALHAO.COD_LOCAL,
> CTTALHAO.COD_INSC
> FROM CTTALHAO
>
>In KeyLinks:
>
>CTTALHAO.COD_PROPRIEDADE=CTPROPRIEDADE.COD_PROPRIEDADE
(COD_TALHAO, I assume).
>Leave KeySource Nil. You would use KeySource for a lookup key to a
>In MasterLinks:
>
>CTTALHAO.COD_PROPRIEDADE=CTPROPRIEDADE.COD_PROPRIEDADE
>
>The property KeySource and MasterSource, linked to the same
>datasource and the property CachedUpdates as true.
different table. KeySource and MasterSource would never point to the
same datasource.
>Correct the KeyLinks. That is the reference that is causing the
>When I am navigating in the registrations the following message appears:
>
>Multiple Rows in singleton fetch
>
>Check KeyLinks and JoinLinks properties
Multiple Rows error. And nil the KeySource property.
You have no JoinLinks, so ignore that.
>"My SQL appears here, following for:"If the MasterSource and MasterLinks settings are correct,
>Where CTTALHAO.COD_PROPRIEDADE=?/*BIND_0*/
MasterSource should be pointing to the datasource for the
CTPROPRIEDADE dataset. The CTPROPRIEDADE dataset should have
COD_PROPRIEDADE as its KeyLinks.
Please go back to the sample that I sent you and follow what I did there.
Helen