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!

not able to display javascript alert message from within a pl/sql block

orton607Jun 22 2010 — edited Jun 23 2010
Hello,

Can anyone please help me out with this issue. I wanted to display an javascript alert message from within a pl/sql block for an update button. Below is sample code which i am using. P1_ITEM is my hidden item on the report.


begin
if :P1_ITEM IS NOT NULL then
HTP.p ('<script type="text/javascript">');
HTP.p ('alert(''Please complete the item which is already assigned to you!'');');
HTP.p ('</script>');
end if;
end;

and I have made this code to be executed conditionally when request = Expression1
Expression1: SUBMIT

The thing is I am not able to display an alert message when the update button is clicked.

Can anyone please help me with this one.

Thanks,
Orton
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 21 2010
Added on Jun 22 2010
8 comments
1,975 views