我正在重写一个现有的BDE数据库程序,以使用使用FibPlus组件的FibPlus。
由于我几乎在所有地方都使用了TQuery组件,所以更改相当简单。
除了一件我似乎找不到的事:
在我的一种表单中,我的
在BDE中,使用MasterSource和MasterFields属性很容易做到这一点。
如何使用FibPlus FibDataset或FibQuery组件来实现这一点?
发布于 2012-03-18 22:21:47
我认为使用FibQuery是不可能的,但是对于FibDataSet,有一个DataSource属性,您应该指向连接到主DataSet的DataSource。
在Detail fibDataSet中,应该使用where子句,其中参数与主表中详细表的主字段具有相同的名称。
例如:具有以下SQL的主pFibDataSet CustomerspFibDataSet:
select cusotmerid, name, address, country from customers一个主DataSource CustomersDataSource,其属性DataSet设置为CustomerpFibDataSet
detail pFibDataset OrderspFibDataSet,属性DataSource设置为CustomersDataSource,并使用以下SQL:
select orderid, date, amount from orders
where customerid = :customeridhttps://stackoverflow.com/questions/9756948
复制相似问题