We are in the process of upgrading from 23.2 to 24.2. In 24.1 the method to call a modal page was changed. This now raises an error:
SyntaxError: Private field '#action$a' must be declared in an enclosing class
The button was:
<button onclick="javascript:apex.navigation.dialog('f?p=250:15….etc.
The upgrade modified this to
<button onclick="#action$a-dialog-open?url=f%3Fp%3D250%3A15%3A….etc.
What does that error mean? Do I have to change something in all our apps, or is this an upgrade error?
Note: this does work for links as URL:
<a href="#action$a-dialog-open?url=f%3Fp%3D255%3A66%3A457… etc.
Note 2: I know that the release notes say:
An example of custom code that no longer works is a button with an onclick
but the upgraded app did generate the changed code for onclick. So, does it generate code that intentionally doesn't work?