In attempting to use a script for calling a popup menu found in knowledgebase article “Working with Power Table Extension Functions”, I get an error in the client console: "NameError: name ‘event’ is not defined ".
The script is copied from the article. Any help would be appreciated.
Where are you putting your code? The
event variable will only exist in an event routine, or when deliberately passed from an event routine to another function.
I copied the code into the “onPopupTrigger” extension for the power table in question
I found the example code you are referencing. Do you know which line the error is occurring from?
Can you post either a screenshot or the code as it is indented in your system so we can take a look?
First image of code as entered in the onPopup Trigger ext. Second image is from the console when I attempt to open the pop up. The error is on the last line of code; menu.show(event)
Indent your pasted code one level.
That did the trick. Thanks for the help!