Jump to content

Recommended Posts

Posted

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.

  • 5 months later...
  • Administrators
Posted

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.

  • Upvote 1
Posted

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.

×
×
  • Create New...