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.