Recent

Author Topic: Zeoslib, dbedit and automatic post without post method  (Read 2469 times)

krzynio

  • Full Member
  • ***
  • Posts: 109
    • Krzynio's home page
Zeoslib, dbedit and automatic post without post method
« on: January 24, 2018, 11:51:09 am »
Hello!

Scenario: Zeoslib 4.21rc1, TZQurey on datamodule, some dbedits on a form/dialog for editing data.
In Lazarus data is automatically committed after exiting from dbedit control.
In Delphi when I edit data from query or table using dbedit control, edited data is committed after Post or Next or Prior method.
Is it possible to get the same behavior in Lazarus.
I just want to us Ok or Cancel buttons for committing or canceling edited data using standard data controls for editing instead of using SQL queries.
Debian 12.8 x64, / Windows 11 PL - latest updates
Lazarus 3.6

mangakissa

  • Hero Member
  • *****
  • Posts: 1131
Re: Zeoslib, dbedit and automatic post without post method
« Reply #1 on: January 25, 2018, 01:16:31 pm »
Quote
In Lazarus data is automatically committed after exiting from dbedit control.
That's not true. database GUI controls doesn't know when a record has to be saved. You always have to post manually. If autocommit is true, it will be handled by ZEOS.
Lazarus 2.06 (64b) / FPC 3.0.4 / Windows 10
stucked on Delphi 10.3.1

 

TinyPortal © 2005-2018