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!

Modal Window issue when focus is lost from page

TC-ArmyJul 21 2016 — edited Aug 9 2016

Hi Everyone,

I'm having trouble with a modal. I don't have a copy installed on OTN so I am hoping I can describe it clearly enough here to where someone can tell me what is wrong.

My modal works fine normally. I have it set as Inline dialog region with a report. Then I have a dynamic action that executes a piece of js that looks like this:

this.affectedElements.dialog('open');

No issues at all until I run a BI Publisher report. I have several buttons on the page and I have a page branch which is of type PL/SQL returning URL. Here is the snippet that it returns:

<tt>

...

url_string := v_report_server || 'xmlpserver/Public/CSS/'||report_name||'.xdo?_xpf=%26_xpt=1%26_xdo=%2FPublic%2FCSS%2F'||report_name||'.xdo%26_xmode=4%26_paramsP_TID='||v_tid||'%26_xt='||report_name||'%26_xf=pdf%26_xana=view%26_xautorun=false';

url_string := utl_url.unescape(url_string);

RETURN url_string;

</tt>

And the report fires off fine too. The file shows up in the download bar in Chrome and I am still on the page. If I click on the modal window now, it puts the title bar in one spot and then renders the region below the "normal" regions.

When I look at the console for errors, I see this:

<tt>

jquery-2.1.3.min.js?v=5.0.1.00.06:3 Resource interpreted as Document but transferred with MIME type application/pdf: "http://mydevbipub01:9704/xmlpserver/Public/CSS/CSS1_2ASMM.xdo?_xpf=&_xpt=1…e=4&_paramsP_TID=2015219&_xt=CSS1_2ASMM&_xf=pdf&_xana=view&_xautorun=false".trigger @ jquery-2.1.3.min.js?v=5.0.1.00.06:3(anonymous function) @ jquery-2.1.3.min.js?v=5.0.1.00.06:3each @ jquery-2.1.3.min.js?v=5.0.1.00.06:2each @ jquery-2.1.3.min.js?v=5.0.1.00.06:2trigger @ jquery-2.1.3.min.js?v=5.0.1.00.06:3lRunSubmitProcessing @ desktop.min.js?v=5.0.1.00.06:10page.submit @ desktop.min.js?v=5.0.1.00.06:10onclick @ f?p=191:10:10389375567822::NO::::1636

3desktop.min.js?v=5.0.1.00.06:36

Uncaught TypeError: Cannot read property 'top' of undefinedonPageResize @ desktop.min.js?v=5.0.1.00.06:36(anonymous function) @ desktop.min.js?v=5.0.1.00.06:36

</tt>

It seems like when I run the report, my focus isn't on the page any more like it was before even though it appears to be. There is a thin blue line around the report button too showing it was just selected. This seems like a scope issue but I don't see how to get the focus back to the main page.

I hope this makes sense.

Thanks,

Tim

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 6 2016
Added on Jul 21 2016
1 comment
303 views