Procedure TMainForm.FlowDDLRAfterFlowOut(…);
begin
DSBrokerDDLR.DataSet.Edit;
DSBrokerDDLR.DataSet.FieldByName('bz').AsString:='1';
DSBrokerDDLR.DataSet.Post;
DSBrokerDDLR.DataSet.ApplyUpdates(False);
Command.FuncTerminate := False; //窗体不关闭
if Command.FlowControl.FlowStartuped then
Command.FlowControl.RegisterANewFlow;
DSBrokerDDLR.DataSet.Filter:='bz is null or bz=''''';
DSBrokerDDLR.DataSet.Filtered:=true;
end;
解决办法:第一:删除语义策略
2.2、在入口功能中增加“业务语义策略”,并定义“业务数据范围”&[标识] is null or &[标识] =''。
第二:代码修改
Procedure TMainForm.FlowDDLRAfterFlowOut(…);
begin
DSBrokerDDLR.DataSet.Edit;
DSBrokerDDLR.DataSet.FieldByName('bz').AsString:='1';
DSBrokerDDLR.DataSet.ApplyUpdates(False);
DSBrokerDDLR.DataSet.Filter:='bz is null or bz=''''';
DSBrokerDDLR.DataSet.Filtered:=true;
Command.FuncTerminate := False; //窗体不关闭
if Command.FlowControl.FlowStartuped then
Command.FlowControl.RegisterANewFlow;
end;