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!

Dynamic modal dialog title (with multiple instances)

Geert JoostenApr 15 2026

Hi,

I managed to set the title of a modal dialog dynamically. But I have the same dialog open multiple times and each instance needs to have it's own title. Any ideas how to archive that (in APEX 24.2)?

In the properties of the page I have set the CSS Classes of the dialog to:

tp-sporter-dialog-&P306_SPORTER_ID.

There is a computation that sets the hidden page item P306_PAGE_TITLE to the correct value.

On Page Load there is a Execute JavaScript code to replace the value:

apex.util.getTopApex().jQuery(".ui-dialog.tp-sporter-dialog-&P306_SPORTER_ID.").find(".ui-dialog-content").dialog("option", "title","&P306_PAGE_TITLE.");

But it doesn't replace the value of the page item with the value. I've tried to use an application item, but that gives the same result.

When I remove the page item I get this result (you see that the two instances of the same dialog get the last value).

Any ideas how to fix that?

Thanks in advance,
Geert.

This post has been answered by Karel Ekema on Apr 15 2026
Jump to Answer
Comments
Post Details
Added on Apr 15 2026
7 comments
429 views