Skip to main content
Question

JavaScript to suppress panel updates

  • May 20, 2026
  • 1 reply
  • 15 views

Mike Warren

We're experimenting with JavaScript in MX Web 10.6.1 to see if we can eventually replace some of our Rocket script. A simple test case right now is prompting a field on a screen, collecting the code/description records from the subfile on the popup window that the prompt triggers, and using that data to populate a dropdown widget.

 

That's really easy to do with Rocket script, and I use "PanelUpdateEnable(0)" to suppress panel updates so the whole process happens transparently to users. The mechanics of this are easy enough with the client-side JavaScript library, but I can't find a way to use JavaScript to suppress display of the popup window while this is running. Is there a way to do this? Rocket script and JavaScript don't seem to interact smoothly, so I'd rather not jump back and forth between them within a single process.

 

I opened a support ticket for this question as well but am posting here in case anyone else has encountered this situation or has any tips or tricks to share. 

1 reply

Roger Van Valen
Forum|alt.badge.img+2

Hi Mike,

Yes, it is possible to suppress page updates using JavaScript command:

Page.disableUpdates();

 

And after processing, execute:

Page.update();

 

To update the page when the script is finished.

 

(Note that this is example is engine side JavaScript)

 

Regards,

Roger.