Labels

2017 absence absence management Account accounting AIM aliases AME and API application application utilities lookups approval assignments ATO Australia Bank bi publisher budget business business groups CAGR candidates cartisian product case CEMLI Center Stage channels Classification competency concurrent Configuration configuration profile constants contextualization conversion correction cost costing coverage area customization data database date DateTracked deductions define design develop DFF diagnostics document earnings ebs EIT Element employee enhancements erp excel expression extension failure Fastformula FBT Flexfield FND fndload foreign key forms Formula fringe benefit FRM-40654 from FTE Functions fund fusion GL global transfer grade help hierarchy HR HRMS human resource management system implementation income information interfaces internet interview job join key flexfield KFF KPI language learning leave legal employer legislation links lists localization location management New Year obia obiee OLF onboarding oracle oracle applications oracle descriptive flex field oracle descriptive flexfield oracle ebs oracle erp oracle fusion HCM oracle hrms oracle hrms interview questions oracle hrms modules oracle hrms modules list oracle hrms organization oracle hrms table oracle hrms tables oracle hrms tutorial oracle irecruitment oracle legal entities oracle lookups oracle organization hierarchy oracle payroll oracle payroll interview questions oracle payroll tables oracle self service order by Organization organization type otbi package package body package specification patch payg Payment payroll people group perform person personalisation phase pl/sql position primary key process profile programs project qualifier Query question questions Recruiting Center Recruitment regex regular expression reporting tool reports requests requirement requisition resume retropay RICE salary schema security profile select SIT smartorg sql statutory stores STP Super Superannuation system systems Table Taleo taleo 15B Taleo Recruitment tax termination test testing trunc update user group user management user type value set variables View Views Web ADI webadi where work relationship

Friday 12 December 2014

SQL Query - Form Personalisation Details

The below SQL query will fetch details of form level personalisations :

SELECT   ffcr.function_name
       , ffcr.form_name
       , fft.user_form_name
       , fat.application_name application
       , ffcr.sequence seq
       , ffcr.description

       , DECODE (ffcr.rule_type,  'A', 'Function',  'F', 'Form') level_
       , ffcr.enabled
       , ffcr.creation_date
       , fu.description created_by
       , ffcr.trigger_event condition_trigger_event
       , ffcr.trigger_object condition_trigger_object
       , ffcr.condition
       , DECODE (ffcr.fire_in_enter_query
               , 'N', 'Not in Enter-Query Mode'
               , 'O', 'Only in Enter-Query Mode'
               , 'Y', 'Both')
            condition_processing_mode
       , ffca.summary
       , ffca.sequence action_seq
       , ffca.object_type action_object_type      
       , CASE
            WHEN ffca.action_type = 'P' THEN 'Property'
            WHEN ffca.action_type = 'M' THEN 'Message'
            WHEN ffca.action_type = 'B' THEN 'Bultin'
            WHEN ffca.action_type = 'S' THEN 'Menu'
            ELSE ffca.action_type
         END
            action_type
       , ffca.summary action_desc
       , ffca.enabled action_enabled
       , CASE
            WHEN ffca.action_type = 'P'
            THEN
               ffca.target_object
            WHEN ffca.action_type = 'M'
            THEN
               CASE
                  WHEN ffca.MESSAGE_TYPE = 'S' THEN 'Show'
                  WHEN ffca.MESSAGE_TYPE = 'H' THEN 'Hint'
                  WHEN ffca.MESSAGE_TYPE = 'E' THEN 'Error'
                  WHEN ffca.MESSAGE_TYPE = 'D' THEN 'Debug'
                  WHEN ffca.MESSAGE_TYPE = 'W' THEN 'Warn'
                  ELSE ffca.MESSAGE_TYPE
               END
            WHEN ffca.action_type = 'B'
            THEN
               CASE
                  WHEN ffca.builtin_type = 'U'
                  THEN
                     'Launch URL'
                  WHEN ffca.builtin_type = 'C'
                  THEN
                     'Launch SRS Form'
                  WHEN ffca.builtin_type = 'E'
                  THEN
                     'Launch a Function'
                  WHEN ffca.builtin_type = 'D'
                  THEN
                     'Do Key'
                  WHEN ffca.builtin_type = 'P'
                  THEN
                     'Exceute a Procedure'
                  WHEN ffca.builtin_type = 'G'
                  THEN
                     'Go Item'
                  WHEN ffca.builtin_type = 'B'
                  THEN
                     'Go Block'
                  WHEN ffca.builtin_type = 'F'
                  THEN
                     'Forms DDL'
                  WHEN ffca.builtin_type = 'R'
                  THEN
                     'Raise Forms Trigger Failure'
                  WHEN ffca.builtin_type = 'T'
                  THEN
                     'Execute Trigger'
                  WHEN ffca.builtin_type = 'S'
                  THEN
                     'Synchronize'
                  ELSE
                     ffca.builtin_type
               END
            WHEN ffca.action_type = 'S'
            THEN
               ffca.menu_entry
         END
            action_target_object
       , CASE
            WHEN ffca.action_type = 'P' THEN ffcpl.property_name
            WHEN ffca.action_type = 'M' THEN ffca.MESSAGE_TEXT
            WHEN ffca.action_type = 'B' THEN ffca.builtin_arguments
            WHEN ffca.action_type = 'S' THEN ffca.menu_label
         END
            action_property_name
       , CASE
            WHEN ffca.action_type = 'P'
            THEN
               CASE
                  WHEN ffca.property_value = '4' THEN 'True'
                  WHEN ffca.property_value = '5' THEN 'False'
                  ELSE ffca.property_value
               END
            WHEN ffca.action_type = 'B'
            THEN
               ffca.menu_argument_short
            WHEN ffca.action_type = 'S'
            THEN
               ffca.menu_argument_short
         END
            action_value
    FROM applsys.fnd_form_custom_rules ffcr
       , applsys.fnd_form_custom_actions ffca
       , applsys.fnd_form_custom_prop_list ffcpl
       , applsys.fnd_application_tl fat
       , applsys.fnd_form ff
       , applsys.fnd_form_tl fft
       , applsys.fnd_user fu
   WHERE ffcr.id = ffca.rule_id
     AND ffcr.form_name = ff.form_name
     AND ff.form_id = fft.form_id
     AND ff.application_id = fat.application_id
     AND ffca.property_name = ffcpl.property_id(+)
     AND ffca.object_type = ffcpl.field_type(+)
     AND ffcr.created_by = fu.user_id
     AND ff.form_name in ('PERWSHRG', 'PERWSEAD', 'PERWSQHM', 'APXXXEER')
--     AND ffcr.creation_date > '02-JAN-2013'
ORDER BY ffcr.function_name
       , ffcr.form_name
       , ffcr.sequence



No comments:

Post a Comment