Tokay Posted July 31, 2018 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. Quote
Sherzod Posted July 31, 2018 Posted July 31, 2018 Hi, The data in the DB chaneges. Where and how is changing, can you clarify? Quote
Tokay Posted July 31, 2018 Author Posted July 31, 2018 For example, other db connection adds a record. DB server is FireBird. Quote
Tokay Posted July 31, 2018 Author Posted July 31, 2018 Yes. Both, transacation (TIBTransaction) and connection (TIBDatabase) are outsuide of the form unit - they located in the TDataModule. Quote
Rebelss Posted November 25, 2018 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. Quote
Tokay Posted November 26, 2018 Author 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. Quote
Sherzod Posted November 26, 2018 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.