I work on APEX 5 aplication and want to call Modal Page from Interactive Report. Source of Report looks like:
select rid, rname, '<div onclick="clickDay('||rid||')">' || day || '</div>'
from ...
and clickDay function placed in Header Text looks like
<script type="text/javascript">
function clickDay(rid){
window.open("f?p=&APP_ID.:13:&SESSION.::NO::P13_RID:" + rid + ,"Details","dialogWidth:1000px;dialogHeight:600px");
}
</script>
But when I click on IR cell get new page with error This page can’t be displayed and url looks like javascript:apex.navigation.dialog('f?p=105:13:9389034907255::NO::P13_RID, ...
I am trying to find the way to open already created Page of type Modal Dialog from JavaScript function. Is there a way to open Page 13 from clickDay function?