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!

execute javascript function last after the pl/sql update process is fired.

orton607Jul 6 2010 — edited Jul 6 2010
hello,

Can anyone please help me out with this issue. Like I have a report region and I want to hide this region when submit button is clicked. The problem is I already have some javascript alert message to pop up when this button is clicked and then the pl/sql update process executes.

the alert message javascript for the 'submit' button is

javascript:confirmDelete('By clicking OK you will be completing the audit on this loan, or click CANCEL to stay on the current page.','MULTI_ROW_DELETE');

So in order to hide that region i wrote a javascript function where test the static id for that region.

function testHide()
{
$x_Hide('test');
}

so now the thing is first i want to execute the javascript alert message, second i want to run the pl/sql update process which i have on this page and finally want to hide the region 'test' through the javascript function testHide().

I tried to do this by, having the target as URL and specifying the javascript alert message and the javascript testHide() function in URL taget fields for the submit button. When I tried this it is not working, like its hiding the region initialy but after executing the pl/sql process its again showing up the region.

I don't understand what might be the problem.Can anyone please help me out with this issue.

thanks,
orton
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 3 2010
Added on Jul 6 2010
7 comments
1,470 views