gerhard.kimmeringer Posted August 11, 2013 Share Posted August 11, 2013 How can i refresh a grid from server. The eventalerter fires when new data inserted, then i like to refresh the grid on clientside. To close and open and or refresh the dataset in uniguimodule isn't the problem, only the datagrid dosen't refresh. Quote Link to comment Share on other sites More sharing options...
Oliver Morsch Posted August 11, 2013 Share Posted August 11, 2013 Do I understand right: You want to "push" changes from the server to the client (without that the client has sent a request to get this)? In UniGui/Web you can only answer to a request from the client! You can use an UniTimer, use websockets (HTML5) or use "Long Polling" (see here) Quote Link to comment Share on other sites More sharing options...
gerhard.kimmeringer Posted August 11, 2013 Author Share Posted August 11, 2013 Hi Oliver, thanks yes the client is readonly, it is only a monitor. Quote Link to comment Share on other sites More sharing options...
Oliver Morsch Posted August 11, 2013 Share Posted August 11, 2013 it is only a monitor. Then I would use long polling to refresh "the monitor". Quote Link to comment Share on other sites More sharing options...
gerhard.kimmeringer Posted August 11, 2013 Author Share Posted August 11, 2013 Thanks Oliver, i try it! Quote Link to comment Share on other sites More sharing options...
gerhard.kimmeringer Posted August 11, 2013 Author Share Posted August 11, 2013 Hi Oliver, thanks for your tip with timer. The eventalerter set a variable in unimainmodule. The timer on the form look at the state of the variable and if it set as true then refresh the grid. It works fine and is enoth for the monitor app. Quote Link to comment Share on other sites More sharing options...
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.