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!

Calling an application process using JS from a button

840314Jan 3 2012 — edited Jan 4 2012
Hi,

I need to create a button that will delete the entire rows from table All_References.

I created a new application process from Shared components call "Delete_All_References" and set to run it on demand.

PL/SQL block :

Begin
Delete from All_References;
End;
/

In the HTML Header of the page where the "Delete All References" or P13_DeleteAllReferences button resides, I entered the following :

<script language "JavaScript" type="text/javascript">
function Delete_All_References()
</script>

I then went into the button settings, set the action to "defined by dinamic action", then added onchang="javascript:Delete_All_References();" into HTML Table Cell Attributes.

According to most tutorials, when I click on the delete all refereneces button, my table should now get clear but it doesn't .

Can you guys please help?

Thanks and regards,
Diez
This post has been answered by Keith Malay on Jan 3 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 1 2012
Added on Jan 3 2012
4 comments
272 views