Issue of kbmMWClientQuery.Undo

Home Forums kbmMW Issue of kbmMWClientQuery.Undo

Viewing 2 reply threads
  • Author
    Posts
    • #55873
      TomYU
      Participant

      hi,kim

      The record after Undo is still submitted.

      kbmMWClientQuery1.Append;
      kbmMWClientQuery1.FieldByName('fid').AsString:='4';
      kbmMWClientQuery1.FieldByName('fname').AsString:='4';
      kbmMWClientQuery1.FieldByName('fint').AsInteger:=4;
      kbmMWClientQuery1.FieldByName('fint64').AsInteger:=4;
      kbmMWClientQuery1.Post;

      kbmMWClientQuery1.Undo;

      kbmMWClientQuery1.AppendRecord(['5','5555',1,1]);
      kbmMWClientQuery1.Resolve;

      best regards.

    • #55875
      kimbomadsen
      Keymaster

      Hi,

      Have you set EnableVersioning:=true ?

      /Kim

    • #55912
      tomyu666
      Participant

      hi,kim

      For ClientQuery, EnableVersioning:=true is the default setting, I need to submit the modification of ClientQuery, so EnableVersioning:=true is what I need.
      In this case, I do not need to submit Undo content.
      In order to make ClientQuery work as expected, I now have to replace Undo with Delete.

      best regards

      Tom YU.

       

Viewing 2 reply threads
  • You must be logged in to reply to this topic.