|
楼主 |
发表于 2007-8-1 10:12:45
|
显示全部楼层
我单独运行B功能或单独运行A功能都是没错误的。只是用IE运行时,才出现。
A功能能的BUTTON事件:
procedure TCMDJForm.ButtonZJGLClick(Sender: TObject);
var
cmnbid :String;
begin
try
cmnbid := InfoBrokerCMXX.Info.DataSetByID('CMJBXX').FieldByName('CMNBID').AsString;
TSystemCore.FuncManager.RunFunc(Context, '', 'Biz:\CBCM\CMZJGL.Func', cmnbid , nil, False);
except
end;
InfoBrokerCMXX.Info.ApplyUpdates;
close;
end;
B功能主窗体ONSHOW事件:
procedure TCMZJYWCX.BizFormCreate(Sender: TObject);
var
cmnbid :string;
begin
cmnbid := FuncBroker.Func.Parameters;
if length(cmnbid) > 0 then
begin
with TSQLDataSet(InfoBrokerCMZJCXYWXX.Info.DataSetByID('CMSJJ')) do
begin
SQLfilter := 'CMNBID = ''' + cmnbid +''' ';
SQLfiltered :=true;
if not active then
begin
open;
end;
end;
end;
end;
-----------------------
顺便问一下:用代码怎么调用 DataNavigator 的按钮功能;麻烦各位了◎◎!! |
|