Your Location is: Home > Oracle

Oracle PL/SQL APEX - Get name of resource template and access method in PL/SQL

From: Malta View: 4780 user5507535 

Question

Having an APEX resource template with using method post, is it possible to get the name of the resource template and method from within the PL/SQL code?

Something like this:

<?xml version="1.0" encoding="UTF-8"?>
<template xmlns="http://xmlns.oracle.com/apex/resource-template"
          pattern="my_resource_template_name"
>
<etag/>
<handler method="post" type="plsql/block">
<content><![CDATA[
DECLARE
  rt_name VARCHAR2(100) := :RESOURCE_TEMPLATE_NAME   -- Should be my_resource_template_name
  method  VARCHAR2(30)  := :RESOURCE_TEMPLATE_METHOD -- Should be POST
BEGIN
   NULL;
END;
]]></content>
</handler>
</template>

Best answer