Communication trouble

legionar

New Member
Hi !

Can you help me ?
I have, for example, smart window with one fill-in and one smart browser.
How can I change that fill-in's screen value from smart browser trigger ?
Thanks.
 
The browser will have to communicate with the fill-in through the container window, which can contains both and can communicate with both.
 
To the container window, add an internal procedure that will accept the value from the browser which it can then pass it on to the viewer, which will itself need a new internal procedure to accept the value. Then in the browser, you can obtain the handle to the container window at runtime:

hContainer = DYNAMIC-FUNCTION('getContainerSource':U).

Using this handle, you can call your new container procedure from the browser. The variable name of the viewer handle, which the container ip will need to be able to call the viewer ip, can be obtained by clicking on "list objects" in design mode for the container object.
Publish/Subscribe is also an option.
 
By the way, depending upon what you are doing, if you have established the proper links, what you are trying to do may not be necessary.
 
Thank you very much, it really helped me.
Don't you know about any good resource, where can I find such 'useful' ideas about using hundreds of functions, procedures, properties etc. WITH some code examples ? Progress help is very bad method ...
 
While the Progress Language Reference is quite good, the ADM2 library documentation is not so great - but perhaps I just don't where to look. I'm learning from my colleagues and by trial an error so I'm in the same boat as you are, really. There are a number of thrid party publications - google will help you with that. Perhaps some others in this forum would have information on ADM2/SmartObject education.
 
By the way the guy that wrote that book at the Allegro site you listed "Coding Smart", is sitting a few cubes over from me :) He's been trying to get us to buy it, but we figure we can save some cash and just bug him all the time :awink:
 
John Nebi said:
By the way the guy that wrote that book at the Allegro site you listed "Coding Smart", is sitting a few cubes over from me :) He's been trying to get us to buy it, but we figure we can save some cash and just bug him all the time :awink:


Why would a millionaire Progress author still need to be programming?:)
 
Back
Top