Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refresh browse in another window

Status
Not open for further replies.

newtoclarion

Programmer
Jul 20, 2011
66
SA
Dear All,
I have this browse in a window, in this window I have a button that opens another window, in the other window I have to enter some data and do some processes. the thing is that the program is in multi user environment. so the brow in first window is updated. I tried to put a timer to update the browse but when I open the second window the timer stops until I go back to the first screen.


Any ideas are extremely appreciated
 
Sorry I mistaken in my description. with the timer it is working fine , but I want to press a button in the second screen that refreshes the first screen.

 
Hi,

you can use: NOTIFY( notifycode, <thread>, <parameter> )
It's very easy ,there is an example in Clarion-Help.

cagiv
 
Sorry cagiv I tried it but didnt give any results. can you explain more how to apply it.

with lots of thanks

 
Hi,

an example:
loc:ThreadID SIGNED
loc:NotifValue UNSIGNED


in FirstWindow you start the SecondWindow:
loc:ThreadID = START(prSecWindow, 2500, Window{PROP:Thread})

in SecondWindow you will now refresh the FirstWindow
NOTIFY(NOTIFY:RefreshWindow, pThread)

in FirstWindow you get the Notification in NOTIFY-Embed from Window Events
IF NOTIFICATION(loc:NotifValue)
CASE loc:NotifValue
OF NOTIFY:RefreshWindow
DO ...
END
END



cagiv
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top