Tokay Posted July 31, 2018 Share Posted July 31, 2018 The data in the DB chaneges. I try to refresh Grid with it refresh button but nothing is happend. The changes are visible only after the form is reopened. I try to add some code to afteropen of the connected dataset, but this code fired only once when form is opened. Link to comment Share on other sites More sharing options...
Sherzod Posted July 31, 2018 Share Posted July 31, 2018 Hi, The data in the DB chaneges. Where and how is changing, can you clarify? Link to comment Share on other sites More sharing options...
Tokay Posted July 31, 2018 Author Share Posted July 31, 2018 For example, other db connection adds a record. DB server is FireBird. Link to comment Share on other sites More sharing options...
Sherzod Posted July 31, 2018 Share Posted July 31, 2018 Are you using a "transaction" ?! Link to comment Share on other sites More sharing options...
Tokay Posted July 31, 2018 Author Share Posted July 31, 2018 Yes. Both, transacation (TIBTransaction) and connection (TIBDatabase) are outsuide of the form unit - they located in the TDataModule. Link to comment Share on other sites More sharing options...
Rebelss Posted November 25, 2018 Share Posted November 25, 2018 i'm having this problem as well, it seens that refresh button don't re-open the dataset. steps to reproduce : 1) Open a dataset ( select * from Clientes order by idCliente desc) ( last record inserted : 1000 ) 2) Insert and commit record 1001 using MySQL workbench 3) Hit refresh button on UniDBGrid, doesn't show record 1001, only works if i explicit call FDQuery1.refresh. Link to comment Share on other sites More sharing options...
Tokay Posted November 26, 2018 Author Share Posted November 26, 2018 I have opened the bug in tracker, and waiting for fixing: http://jira.fmsoft.net/servicedesk/customer/portal/4/FSD-726 as a temporary solution you can hide the button and do refresh with external control. Link to comment Share on other sites More sharing options...
Sherzod Posted November 26, 2018 Share Posted November 26, 2018 9 minutes ago, Tokay said: I have opened the bug in tracker, and waiting for fixing We will check 9 minutes ago, Tokay said: as a temporary solution you can hide the button and do refresh with external control. Also you can try to use this approach I think: http://forums.unigui.com/index.php?/topic/4425-grid-refresh-button/&do=findComment&comment=48748 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now