Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Communicate with a visual object from a nvo called by a browser

0 views
Skip to first unread message

FX Liagre

unread,
Dec 6, 2000, 3:00:00 AM12/6/00
to
Does anyone know if this is possible ?

I mean, I'd like to call a function of the "main" window of my WebPB app
(the window that make the transport listening).

To achieve this, I coded a nvo function calling itself the function window,
and try to call it from a browser. But I've got an execution error
(apparently my window is Invalid (null object reference when calling
window.function into the nvo function)...

I also tried to call directly the window function, and it "works", but this
function contain an OpenUserObject order, wich failed...

Any Idea ?

--
FX Liagre

fx.l...@lusis.fr
fxli...@hotmail.com

Giovanni Orecchia

unread,
Dec 7, 2000, 3:00:00 AM12/7/00
to
Probably your nvo is registered as a new thread and, as a consequense, it
won't see a global variable defined in the main thread (and windows, of
course).
You should define a new nvo (i.e. nvo_global) and move your window function
to nvo_global. Also you should register (SharedObjectRegister) nvo_global
and get reference to it (SharedObjectGet) everywhere you call
nvo_global.of_yourfunction().
If your original window function has some reference to the window object,
then you shuold change it, as nvo_global won't see it.
This way of programming helps you to keep separate logical business and
graphic interface.
Giovanni


FX Liagre <fx.l...@lusis.fr> wrote in message
BvUHbo4...@forums.sybase.com...

FX Liagre

unread,
Dec 7, 2000, 3:00:00 AM12/7/00
to
ok, it looks like what I had to do in the past for this kind of thing in
"standard" DPB, using SharedObjects.
Now I remember, I had to use an Interface Object (shared object) to
communicate "back" to my window App (there is no matter of mixing logical
business and graphic interface, because the purpose is to give visual info
to the GUI, this info comming from the nvo. I HAVE to give this info to a
window, not to a nvo...).

Thanks for reminding me this point.


Giovanni Orecchia <g.ore...@cedacriovest.it> a écrit dans le message :
CdWTBND...@forums.sybase.com...

0 new messages