FoxInCloud
Event from one window to another
Gravatar is a globally recognized avatar based on your email address. Event from one window to another
  Vincent H.
  All
  Dec 13, 2019 @ 11:00am

Hi Thierry,

I know that we cannot execute an event from a window A to a control of a window B, typically a Refresh()
This has no effect.
But can we do this with a jQuery command ?
Thanks in advance,
Vincent

Gravatar is a globally recognized avatar based on your email address. re: Event from one window to another
  FoxInCloud Support - Thierry N.
  Vincent H.
  Dec 15, 2019 @ 10:07am

Hi Vincent,

Why don't you just call the method on the server side; why do you need to fire it from the client browser?

Also, have you considered moving this method to your form class so that you can call it from within any form?

Gravatar is a globally recognized avatar based on your email address. re: Event from one window to another
  Vincent H.
  FoxInCloud Support - Thierry N.
  Dec 15, 2019 @ 10:46am

Sorry, but I don't understand your questions. Maybe I am not clear.
When I leave a window X, after launching B and C from A, the callback intervenes by leaving B or C.
To refresh a control of A, at the output of X, I execute:

THISFORM.wcScriptJSadd (TEXTMERGE ([jQuery ('#A_scx-repert').Text (<<cLitteralJS (A.Repert) >>);]))

And it works ... Only the firt time.

Gravatar is a globally recognized avatar based on your email address. re: Event from one window to another
  FoxInCloud Support - Thierry N.
  Vincent H.
  Dec 16, 2019 @ 05:09am

To help you further, I need to know what happens the second time: error, message, is the code executed? To help you debug, you can always add debugger; in your JavaScript code.

© 1996-2020