Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

Datawindow(s) auto-retrieve on set time interval - tips pls

$
0
0

Hi,

 

Powerbuilder 11.5.1

 

I'm sorry for asking what is probably a run-of-the-mill functionality, I did some initial googling, but I am incredibly pressed for time, and I cannot afford to spend a lot of extra time researching it. I would appreciate someone pointing me out to any examples that they know about having a window within the app which automatically refreshes its datawindows every 60 seconds.

 

From what I understand from a couple of documents I've seen, it sounds to me as simple as coding

 

Timer (60, this)


in the open() event of the window, and then in the Timer() event of it put something simple like

 

dw_browser1.Retrieve()

dw_browser2.Retrieve()


Is that really all there is to it, and are there issues with this or other hints?

 

Two questions:

1. Would this Timer() based auto-refresh work if the window instance in question does not have focus on it?

2. Would it work if the application does not have focus on it (in Windows)?

 

 

The objective is to present a window (or two) showing two self-refreshing lists with daily orders inserted elsewhere that would for large amounts of time just stand on one of the PC screens while user is busy with other applications.

 

 

Thanks


Viewing all articles
Browse latest Browse all 2935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>