How it this possible?

I have a grid that some how has code in an a onload event that dose not exist! see attached…
The globals page is show I have a global called ‘passed_order_id’ in onload… BUT grids do not have onload?? see attached.sc_capture

Yes it happen sometimes, look in onRecord

Unfortunately I can not find the extra code anywhere… And it is cause the page to not work… not specifically the global var but there is more random code that is trying to run that is not part of that page… an entire event’s code just appeared in some hidden spotor event on this app… and this is not the first time this has happen to me…

The problem is probably that you enter some code in the past in a field, event, button or else. Then for some reason you remove that code, it doesn’t show anymore on your screen but SC didn’t remove it from the app in background. It can do real mess in your app and can prevent it to work correctly.

When you want to remove code be sure to delete it first on screen, save it and then remove the button or event that you want to remove.

When this happen you have 2 choices.
The easy one, you save your app, delete it and restore it. This sometime work.
The other one, more painful is to recreate the app from scratch.