Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

APEX 24.2 modal page call problem after upgrade

InoLMar 20 2025 — edited Mar 20 2025

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?

This post has been answered by InoL on Mar 20 2025
Jump to Answer

Comments

Processing

Post Details

Added on Mar 20 2025
6 comments
146 views