OAF customizations queries

OAF customizations queries
Query to list all pages under any top/directory
Query to list all customizations on a OAF page
Query to get xml code of an OAF page/module
Query to delete any OAF customization
Query to find all changes done to OAF Pages in the application

Query to list all pages under any top/directory
--Query to list all pages under any top/directory
set serveroutput on;
DECLARE
BEGIN
   jdr_utils.listdocuments ('/oracle/apps/per', TRUE);
END;
Query to list all customizations on a OAF page
--Query to list all customizations on a OAF page
set serveroutput on;
DECLARE
BEGIN
   jdr_utils.listcustomizations (p_document   => '/oracle/apps/per/irc/candidateSelfService/webui/RegCreateAccountPG');
END;
Query to get xml code of an OAF page/module
--Query to get xml code of an OAF page/module
set serveroutput on;
DECLARE
BEGIN
   jdr_utils.printdocument (
      p_document   => '/oracle/apps/per/irc/candidateSelfService/webui/RegCreateAccountPG');
END;
Query to delete any OAF customization
--Query to delete any OAF customization
set serveroutput on;
DECLARE
BEGIN
   jdr_utils.deletedocument (
      p_document   => '/oracle/apps/per/irc/candidateSelfService/server/customizations/site/0/VisitorAM');
END;
Query to find all changes done to OAF Pages in the application
--The below query helps to find all changes done to OAF Pages in the application.
  SELECT PATH.path_docid                                  perz_doc_id,
         jdr_mds_internal.getdocumentname (PATH.path_docid) perz_doc_path
    FROM jdr_paths PATH
   WHERE     PATH.path_docid IN
                (SELECT DISTINCT comp_docid
                   FROM jdr_components
                  WHERE     comp_seq = 0
                        AND comp_element = 'customization'
                        AND comp_id IS NULL)
         AND UPPER (jdr_mds_internal.getdocumentname (PATH.path_docid)) LIKE
                UPPER ('%%')-- document path here
ORDER BY perz_doc_path;
Related posts: Upload your own post and refer it anywhere anytime:

Leave a Reply