How to Handle window from another runing window

djharsha

New Member
I just want to run two separate windows in same time . . .
and i want to pass some values to window1 to window 2 . . and displaying it..

i try to do it by handle but didnt works . . .
can some body tell me how can i done this . . .
and i want to close window2 from window1 . . . .

pls pls . . . . . show me the path to do it . . . .
 
There are probably a few ways to do this. Depending on the situation, I'd probably recommend creating both windows from the same procedure (.p). Then you can easily assign/display from a local variable.
Also you should be able to easily close the other window. In the trigger, just call "delete window2" (where window2 is a local variable with a handle to window 2)
 
I already develop one window and i want to add another one to it . . .
for displaying purpose . . . .

example when iam receipting customer would see what r his dues and amount what i entered
thats why i need this . . .
i already done one window . .
i wnat to post amount to customer view screen

pls shoe me tha way
 
Sounds like you're trying to do it in the right way - using handles. You really need to post some code to show us what you are attempting to do at the moment, but one possible solution:

1. Parent window runs child window PERSISTENTLY, setting a handle.
2. Write an internal procedure in the child window, accepting whatever parameters are required to do the display update.
3. When event occurs in parent window (following an update or whatever), you run the procedure defined in (2) in the handle set in (1).

That should sort you out. You could also use PUBLISH/SUBSCRIBE.
 
Back
Top