Recent

Author Topic: Sqlite3laz: refresh connection  (Read 3808 times)

ESC

  • New Member
  • *
  • Posts: 12
Sqlite3laz: refresh connection
« on: September 12, 2007, 02:50:09 pm »
I have 2 forms, Sqlite3Dataset and Datasource on each of them.

The first form makes an insert query to the database, and the second form displays this table.

So, i make insert, close this window, then open the second window, and do not see values, that i just have inserted.

I can close/open app, and only then i see changes made to the table.

I think, there should be some kind of refreshing of database connection.

Can anyone help me? I'm very new to Lazarus and FPC...

Thank you.

LuizAmérico

  • Sr. Member
  • ****
  • Posts: 457
Sqlite3laz: refresh connection
« Reply #1 on: September 13, 2007, 12:34:42 am »
Try to call Close and Open methods of the dataset in the OnShow event of the second form

 

TinyPortal © 2005-2018