tappatappa Posted August 28, 2013 Posted August 28, 2013 Development Environment: Microsoft Windows XP Professional 32bit RAD Studio XE2 (c++ builder) UniGUI 0.93 Description In web mode, the refresh button at the bottom of a TUniDBGrid does not call the Refresh method of the underlying dataset. Steps to reproduce 1) You need a UniDBGrid a datasource and a dataset which is connected to an actual database (I tested it with Oracle DB and ODAC) 2) Define the query, and the refresh query (if needed) 3) Run, the grid shows the results 4) On a separate session, change one of the records shown in the grid. Commit. 5) Click on the refresh button, nothing changes.
Administrators Farshad Mohajeri Posted February 19, 2014 Administrators Posted February 19, 2014 Refresh button only re-sends data from the a currently opened Dataset. It won't call Refresh() because calling Refresh() method may have different impacts on different type of datasets. I think we can implement a new DBGrid event named OnBeforeLoad which user can call Refresh() in it when needed. Moved to Feature Requests. 1
tappatappa Posted February 19, 2014 Author Posted February 19, 2014 Refresh button only re-sends data from the a currently opened Dataset. It won't call Refresh() because calling Refresh() method may have different impacts on different type of datasets. I think we can implement a new DBGrid event named OnBeforeLoad which user can call Refresh() in it when needed. Moved to Feature Requests. You are right, Farshad. A OnBeforeLoad (OnClientRefresh) event would be useful. Not a critical feature in my opinion, though.
Recommended Posts