Refresh window in background

Kim Sargent ksargent at oversiteonline.com
Tue May 19 15:13:28 EDT 2020


Have to just done $redraw()

-----Original Message-----
From: omnisdev-en <omnisdev-en-bounces at lists.omnis-dev.com> On Behalf Of Alan Grinberg
Sent: Tuesday, May 19, 2020 2:11 PM
To: OmnisDev List - English <omnisdev-en at lists.omnis-dev.com>
Subject: Refresh window in background

Hi Listers,

Studio 8.1
How to Refresh (call a method) in a window in the background without an item reference.

I have multiple windows open (A, B, C, D, E), that may have been opened from different places, other windows, menus, etc.

On Window A, there is process that should refresh window D.
I do not have a reference to Window D since it was opened from elsewhere.
I want to call a method in window D if it is open.

I tried this and some variations it, in Window A, but no success:

Set current list winList
Build open window list (Clear list)
Redefine list {winName}
If winList.$search(pos('WINDOW_D',$ref.winName)>0)
	Set reference winRef to $iwindows.[winName]	
	Do winRef.$refresh
End If

Or even better, if possible:
;  Set reference winRef to $iwindows.WINDOW_D/'*'  
;  Do winRef.$refresh


Any help here?

Thank you!

----------------------------------------------------
Alan Grinberg
AG Systems/ZOO-INK
San Francisco, CA 

www.zoo-ink.com <applewebdata://9A892D81-A7E0-486E-8C43-3270C21BC84B>
www.perfectfit.net
alan at perfectfit.net
----------------------------------------------------




_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 



More information about the omnisdev-en mailing list