Calling an application process using JS from a button
840314Jan 3 2012 — edited Jan 4 2012Hi,
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