I am developing an application which has a simple database. All of the functions are going well but when a user is editing the database from the program, the other user cannot see the content immediately. The other user needs to close the program and reopen it for the data to appear and its DBGrid be updated with those changes form the other computers. I am using Delphi 7 for this and ZeosLib to access my Firebird database. I tried using the refresh button on the DBNavigator but it doesn't work.
The components I used to connect to the database are:
- ZConnection
- ZQuery
- DataSource
- DBGrid
- DBNavigator
This is the code for my ZConnection and ZQuery.
object ZConnection1: TZConnection ControlsCodePage = cGET_ACP UTF8StringsAsWideField = False Connected = True Port = 3051 Database = '192.168.254.254:test' User = 'test' Password = 'test' Protocol = 'firebird-2.5' Left = 96 Top = 8 end object ZQuery1: TZQuery Connection = ZConnection1 Active = True SQL.Strings = ( 'select * from "test"') Params = <> Left = 128 Top = 8 object ZQuery1ID: TStringField FieldName = 'ID' Required = True Size = 8 end