Skip to main content
Inspiring
February 7, 2020
Answered

CSXSEvent has no constructor, error in CEP at Startup

  • February 7, 2020
  • 1 reply
  • 1959 views

The CSXSEvent object does not appear to be defined when a project is first opened. I use CSXSEvent to dispatch events to my CEP panel, and when I first open a project, with the panel already open, it gives me a script error: "CSXSEvent has no constructor".

 

Subsequence requests to CSXSEvent work fine.

 

This object is also used in the PProPanel example, but it doesn't show any particular loading requirements -- but it doesn't attemtp to send one at startup.

This topic has been closed for replies.
Correct answer Bruce Bullis

This is within the JSX host files for the extension.


Yep, I can reproduce the problem; we're tracking it as DVAPR-4221843.

 

Perhaps you could send your event, at some later point? If I instantiate the event in response to user interaction (once the panel is opened), it works...

1 reply

Bruce Bullis
Legend
February 7, 2020

> When I first open a project, with the panel already open..."

 

Confirming: Do you have Window --> Workspaces --> Import Workspace from Projects ON? If so, even if your panel was visible before opening the new project, it'll get closed and re-opened when the new project is loaded (and the new project's Workspace is imposed). 

Do you see different behavior if you turn Import Workspace with Project OFF?

mortorayAuthor
Inspiring
February 7, 2020

It was turned off, so I turned it on. This means my panel isn't loaded when I load a project. However, I Get the same error when I load my extension. I get the same error everytime I close and load my extension.

 

Bruce Bullis
Legend
February 7, 2020

Could you send a snippet that fails upon panel load, but works every subsequent call?