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!

Apex 4.2: modal page (plugin) closure - javascript

emma-apexJun 28 2013 — edited Jul 19 2013

Hi

Can anyone tell me how to close a modal page using the buttons on that page's tabular report, i.e. Cancel and Submit?

I'm using Apex 4.2. I've added a skillbuilders plugin modal page. It mostly works great - pops up, contains a tabular editable form, and then closes when i click the cross.

So the problem is using the buttons Cancel, Delete and Submit. They work in the sense that Delete does in fact delete rows, and submit submits them. But they don't close the modal page.

I've tried many combinations. Below is the latest. Can someone spot where I'm going wrong? Thanks

Page 41 launches the modal region using dynamic action (this bit works):

DA Name: BTN_MILESTONES

Event: Click

Selection type: Button

Button: EDIT_MILESTONES

Condition: no condition

Page 41 DA true action:

Action: skillbuilders modal page 2.0 plugin

Fire on page load: No

URL location: statically defined

URL: f?p=&APP_ID.:43:&APP_SESSION.:::1:::

Autoclose: div#uSuccessMessage

ModalpageID: 'editMilestones' (*** this might be the problem - have tried with "" and without any quotes but don't think modal page 43 can see this***)

Page 43 page template: pop-up

Page 43 Cancel button: defined by dynamic action

Page 43 dynamic action

name: closeModal

Event: Click

Selection type: Button

Button: CANCEL

Condition: no condition

Page 43 DA true action:

Action: execute js code

code: this.data.modalPageClose;

selection type: DOM object

DOM object: 'editMilestones'

When I click CANCEL on page 43 (pop-up), I see the bottom left corner on my IE8 screen of Page 41 (launch page) moves to error. Double clicking on this error tells me {Message: Syntax error, unrecognized expression: #'editMilestones'}

So I've focused my efforts on changing this DA but I'm not getting anywhere. Please help if you can!

Thanks

Emma

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 16 2013
Added on Jun 28 2013
4 comments
1,265 views