Master/Detail where the Master-ID is an String

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
derSegler
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 13.07.2007, 13:58

Master/Detail where the Master-ID is an String

Post by derSegler »

I have a problem with Master/Detail

Zeos 6.6.2-beta, Delphi7, Access-DB

These are my tables:

Master
ID : String(10)
Spalte1 : String
Spalte2 : String

Detail
ID : String(10)
detail1 : String

zQuery1.SQL='select ID from Master'
DataSource1.dataSet=zQuery1
zQuery2.SQL='select * from Detail where ID=:ID'
zQuery2.MasterSource=DataSource1
zQuery2.MasterFields=ID

if I set active = true I get the Error "Die Argumente sind vom falschen Typ, liegen außerhalb des Gültigkeitsbereiches oder sind miteinander unvereinbar"

If I set the zQueryDetail.Params[0] DataType from ftUnknown to ftString, no Error, BUT:: there no Data!!

I have build these construct with ADO from delphi7, it run's without any problems

So, what is the Problem??

Thanks for help.
kmr
Fresh Boarder
Fresh Boarder
Posts: 17
Joined: 12.06.2006, 22:18
Location: Northern Germany (really northern)

Post by kmr »

I think you need the fields of at least the master-dataset in the corresponding field editor (right click on the dataset (query or table) and chose field editor,
right click in the field editor an chose add all fields)
should work

btw. Moin Moin von der Ostsee!
Post Reply