zoukankan      html  css  js  c++  java
  • 数据提交到服务器后,在中间层所做的修改,能及时反应到客户端吗?

    我在客户端按下ApplayUpdate(-1)后。
    在中间层的DataProvder的OnUpdateData里写了如下代码
    procedure TFDM_BASE.DspCustSortCodeUpdateData(Sender: TObject;
      DataSet: TCustomClientDataSet);
    begin
      inherited;
      with DataSet do
      begin
        First;
        while not Eof do
        begin
          if UpdateStatus = usInserted then
          begin
            Edit;
            FieldByName('UpBuildTime').AsDateTime := Now();
            Post;
          end;
          Next;
        end;
      end;
    end;

    我想把中间层对数据所做的修改(即UpBuildTime)在客户端更新数据后可以看到对UpBuildTime做的改动。

  • 相关阅读:
    2021年4月1日
    2021年3月31日
    2021年3月30日
    2021年3月29日
    2021年3月27日
    2021年3月26日
    2021年3月25日
    人件集阅读笔记03
    2020年3月24日
    构建之法阅读笔记02
  • 原文地址:https://www.cnblogs.com/DKSoft/p/34237.html
Copyright © 2011-2022 走看看