//为查找属性的SQL语句赋值
with TSQLDataSet(DataSetBrokerLXTJZD.DataSet) do
begin
//close; // 必须要先打开,再关闭
TSQLDataSet(DataSetBrokerLXTJZD.DataSet).BizFieldByName('BLZ').LookupDef.SQL.Text := 'SLECT EXP_CONDITOINFIELD.TJZDLX FROM EXP_CONDITOINFIELD';
//open;
end;
end;
//为查找属性的SQL语句赋值
with TSQLDataSet(DataSetBroker1.DataSet) do
begin
TSQLDataSet(DataSetBroker1.DataSet).BizFieldByName('KHID').LookupDef.SQL.Text:= 'SELECT ddid,cpid FROM DDCB';
end;