TUniQuery

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Suhaimin
Posts: 79
Joined: Mon 06 May 2013 12:19

TUniQuery

Post by Suhaimin » Thu 25 Jul 2013 15:04

Hello,


I have a Table Customer (CustomerNO,Name )Primary Key : customerno
data Customer : 1 ,one
2 , two


then a Table Sales (Salesno,Date, CustomerNo) SalesNo is Primary Key.
data sales : 001, 2013/7/1, 1
002, 2013/7/1, 1
003,2013/7/1, 2


qryCustomer.SQL.Text := 'SELECT * FROM Customer';


qrysales.SQL.Text := 'SELECT * FROM Sales WHERE CustomerNo = :CustomerNo';


qryCustomerdatasource.DataSet := qryCustomer;
qrysales.MasterSource := qryCustomerdatasource;

qrycustomer.open;
qrysales.open;

why after qrysales.open i can not see any record ini qrysales even if i move to another customer ? whats happened in qrysales? thanks a lot.

isysoftware
Posts: 44
Joined: Wed 14 Nov 2012 17:33

Re: TUniQuery

Post by isysoftware » Thu 25 Jul 2013 17:18

I think because QrySales has a WHERE clause...

stevel
Posts: 125
Joined: Tue 02 Nov 2010 19:01

Re: TUniQuery

Post by stevel » Thu 25 Jul 2013 22:53

On the detail dataset (qrySales), in addition to the MasterSource property, you need to also set the MasterFields property (clicking on the ... button in property editor will open a dialog window where you can do this. This will also set the DetailFields property).

DemetrionQ
Devart Team
Posts: 271
Joined: Wed 23 Jan 2013 11:21

Re: TUniQuery

Post by DemetrionQ » Fri 26 Jul 2013 10:31

Hello.

I couldn't reproduce the issue. Please provide the following information:
  - the server version;
  - a simple project demonstrating the problem.
You can send me this information to dmitryk*devart*com

Suhaimin
Posts: 79
Joined: Mon 06 May 2013 12:19

Re: TUniQuery

Post by Suhaimin » Fri 02 Aug 2013 11:51

hello,

problem solved.. thanks for All...

DemetrionQ
Devart Team
Posts: 271
Joined: Wed 23 Jan 2013 11:21

Re: TUniQuery

Post by DemetrionQ » Fri 02 Aug 2013 13:44

If any other questions come up, please contact us.

Post Reply