Hr_general.decode_lookup

Hi
Could someone please expalin me the use of hr_general.decode_lookup in Pl/SQL
ex. hr_general.decode_lookup('MAR_STATUS', per.marital_status) marital_status
Thanks in advance
Regards
anna

Annas wrote:
Hi
Could someone please expalin me the use of hr_general.decode_lookup in Pl/SQL
ex. hr_general.decode_lookup('MAR_STATUS', per.marital_status) marital_statusThis looks like a procedure or function. Its not a predefined procedure or function of oracle. So i guess you need to ask some body in your team about this.

Similar Messages

  • Extended attribute value of PerPayProposalsVO is not displaying in the page

    Hi,
    Please could someone reply on this urgently?
    I have requirement to add one field in the VO PerPayProposalsVO.
    I have extended the VO properly and substituted the standard VO with extended VO.
    Please see below the xxPerPayProposalsVO query where Xxfte_Salary column is my added column:
    SELECT PerPayProposalsEO.PAY_PROPOSAL_ID, PerPayProposalsEO.ASSIGNMENT_ID, PerPayProposalsEO.EVENT_ID, PerPayProposalsEO.BUSINESS_GROUP_ID, PerPayProposalsEO.CHANGE_DATE, PerPayProposalsEO.LAST_CHANGE_DATE, PerPayProposalsEO.NEXT_PERF_REVIEW_DATE, PerPayProposalsEO.NEXT_SAL_REVIEW_DATE, PerPayProposalsEO.PERFORMANCE_RATING, PerPayProposalsEO.PROPOSAL_REASON, PerPayProposalsEO.PROPOSED_SALARY, PerPayProposalsEO.REVIEW_DATE, PerPayProposalsEO.ATTRIBUTE_CATEGORY, PerPayProposalsEO.ATTRIBUTE1, PerPayProposalsEO.ATTRIBUTE2, PerPayProposalsEO.ATTRIBUTE3, PerPayProposalsEO.ATTRIBUTE4, PerPayProposalsEO.ATTRIBUTE5, PerPayProposalsEO.ATTRIBUTE6, PerPayProposalsEO.ATTRIBUTE7, PerPayProposalsEO.ATTRIBUTE8, PerPayProposalsEO.ATTRIBUTE9, PerPayProposalsEO.ATTRIBUTE10, PerPayProposalsEO.ATTRIBUTE11, PerPayProposalsEO.ATTRIBUTE12, PerPayProposalsEO.ATTRIBUTE13, PerPayProposalsEO.ATTRIBUTE14, PerPayProposalsEO.ATTRIBUTE15, PerPayProposalsEO.ATTRIBUTE16, PerPayProposalsEO.ATTRIBUTE17, PerPayProposalsEO.ATTRIBUTE18, PerPayProposalsEO.ATTRIBUTE19, PerPayProposalsEO.ATTRIBUTE20, PerPayProposalsEO.LAST_UPDATE_DATE, PerPayProposalsEO.LAST_UPDATED_BY, PerPayProposalsEO.LAST_UPDATE_LOGIN, PerPayProposalsEO.CREATED_BY, PerPayProposalsEO.CREATION_DATE, PerPayProposalsEO.OBJECT_VERSION_NUMBER, PerPayProposalsEO.APPROVED, PerPayProposalsEO.MULTIPLE_COMPONENTS, PerPayProposalsEO.FORCED_RANKING, PerPayProposalsEO.PERFORMANCE_REVIEW_ID, PerPayProposalsEO.PROPOSED_SALARY_N, hr_general.decode_lookup('PER_SAL_PROPOSAL_STATUS',APPROVED) AS SALARY_PROPOSAL_STATUS, hr_general.decode_lookup('PROPOSAL_REASON',proposal_reason) AS REASON_MEANING, PER_SALADMIN_UTILITY.get_basis_currency_code(PerPayProposalsEO.ASSIGNMENT_ID,PerPayProposalsEO.CHANGE_DATE) as currency_code,ppr.review_date performance_review_date, hr_general.decode_lookup('PERFORMANCE_RATING',ppr.performance_rating) performance_rating_desc, PerPayProposalsEO.DATE_TO, piv.uom as uom, per_saladmin_utility.get_fte_factor (PerPayProposalsEO.assignment_id,PerPayProposalsEO.change_date) fte_factor, PER_SALADMIN_UTILITY.get_currency_format(PerPayProposalsEO.assignment_id, PerPayProposalsEO.change_date) as currency_format, hr_util_misc_ss.get_in_preferred_currency_str( PerPayProposalsEO.proposed_salary_n*decode(ppb.pay_annualization_factor, null, 1, 0, 1, ppb.pay_annualization_factor)*per_saladmin_utility.get_fte_factor(paa.assignment_id,sysdate), pet.input_currency_code, trunc(sysdate)) as Xxfte_Salary FROM PER_PAY_PROPOSALS PerPayProposalsEO, per_performance_reviews ppr, per_assignments_f2 paa, per_pay_bases ppb, pay_input_values_f piv, pay_element_types_f pet where PerPayProposalsEO.performance_review_id = ppr.performance_review_id(+) AND PerPayProposalsEO.assignment_id = paa.assignment_id AND paa.assignment_id = :1 AND :2 between PerPayProposalsEO.change_date and nvl(PerPayProposalsEO.date_to, hr_general.end_of_time) AND PerPayProposalsEO.change_date between paa.effective_start_date and paa.effective_end_date and paa.pay_basis_id(+) = ppb.pay_basis_id and ppb.input_value_id = piv.input_value_id and piv.element_type_id = pet.element_type_id and PerPayProposalsEO.change_date between piv.effective_start_date and piv.effective_end_date and PerPayProposalsEO.change_date between pet.effective_start_date and pet.effective_end_date
    When I tried to personalise and showed the field in Salary Admin page it is not displying any value. Even when I tried to show any field from the Standard VO through personalization it is not displaying value. Please could someone look into this?
    Thanks and regards,
    Sunil

    Hi Sunil,
    Are you passing parameters at CO or at VOImpl class. To get message printed and if running in Oracle Appln.
    Use
    oadbtransaction.writediagnostics/pageContext.writeDiagnostics.
    Sample
    pageContext.writeDiagnostics(this, "ItemKey " + iKey,2);
    You can set it at any level, please make sure your VO is getting executed.
    Thanks
    Rakesh

  • How to implement place holder columns in data template

    Hi,
    I have a requirement where I have to mimic the functionality of place holder columns in RDF using Data Templates in XML Publisher.
    How can I call a pl/sql function at element level when we try to group records in the data template.
    To make it simple , let us say I have a requirement to retrieve the address of an employee(address line 1,address line 2, city,country)
    In RDF what I do is define 4 place holder columns to capture address attributes, and in a formula column I set values to these attributes. How do I implement this in XML Publisher data template.
    When I tried to implement the above requirement using test variables, I was able to execute a pl/sql function after the group tag, but not within the group tag.
    I got the result for calc_values3 , but didn;t get anythng for calc_values1 and 2
    Data Template:
    <dataTemplate name="XXLCPAY142R" description="online payslip" defaultPackage="XXLCPAY_ONLINEPAYSLIP_PKG" version="1.0">
    <parameters>
    <parameter name="P_ASSIGNMENT_ACTION_ID" dataType="number" />
    </parameters>
    <dataQuery>
    <sqlStatement name="Q_PAYMENT_RUN">
    <![CDATA[
    SELECT PAAPRV.assignment_action_id assignment_action_id
    ,PAAPRV.payroll_action_id payroll_action_id
    ,PAAPRV.run_assignment_action_id run_assignment_action_id
    ,PAAPRV.run_payroll_action_id run_payroll_action_id
    ,PAAPRV.person_id person_id
    ,PAAPRV.full_name full_name
    ,PAAPRV.last_name surname
    ,PAAPRV.assignment_id assignment_id
    ,PAAPRV.business_group_id business_group_id
    ,PAAPRV.assignment_number assignment_number
    ,PAAPRV.registered_employer legal_employer
    ,PAAPRV.abn abn
    ,PAAPRV.grade grade
    ,PAAPRV.payroll_id payroll_id
    ,PAAPRV.time_period_id time_period_id
    ,PAAPRV.period_start_date period_start_date
    ,PAAPRV.period_end_date period_end_date
    ,TO_CHAR(PAAPRV.period_start_date,'DD-Mon-YYYY') period_start_display
    ,TO_CHAR(PAAPRV.period_end_date,'DD-Mon-YYYY') period_end_display
    ,PAAPRV.period_number || ' ' || TO_CHAR(PAAPRV.period_end_date,'YYYY') period_number
    ,TO_CHAR(PTP.regular_payment_date,'DD-Mon-YYYY') pay_date
    ,PAAPRV.date_earned date_earned
    ,PAAF.ass_attribute2 legacy_position
    ,HR_GENERAL.DECODE_LOOKUP('EMPLOYEE_CATG',PAAF.employee_category) paypoint
    ,PPB.name salary_basis
    ,PAAF.people_group_id people_group_id
    ,PAAF.collective_agreement_id cagr_id
    FROM pay_au_asg_payment_runs_v PAAPRV
    ,per_time_periods PTP
    ,per_all_assignments_f PAAF
    ,per_pay_bases PPB
    WHERE PAAPRV.time_period_id = PTP.time_period_id
    AND PAAPRV.assignment_id = PAAF.assignment_id
    AND PAAF.pay_basis_id = PPB.pay_basis_id
    AND PAAPRV.date_earned BETWEEN PAAF.effective_start_date AND PAAF.effective_end_date
    AND PAAPRV.assignment_action_id = :P_ASSIGNMENT_ACTION_ID
    ]]>
    </sqlStatement>
    <sqlStatement name="Q_EARNINGS_DEDUCTIONS">
    <![CDATA[
    SELECT PAI.locking_action_id assignment_action_id_elements
         ,PRR.assignment_action_id assignment_action_id_run_ele
         ,PRR.run_result_id run_result_id
         ,PPA.effective_date effective_date_run
         ,PAAF.pay_basis_id pay_basis_id
         ,PETF.element_type_id element_type_id_ele
         ,NVL(PETF.reporting_name
         ,PETF.element_name) element_name_ear_ded
         ,PIVF.input_value_id input_value_id
         ,PEC.classification_name classification_name
         ,PRRV.result_value amount_elements
         ,DECODE( PEC.classification_name
         , 'Earnings' , 1
         ,'Pre Tax Deductions' , 2
         ,'Involuntary Deductions' , 3
         ,'Voluntary Deductions' , 3 ) sort_order_elements
         ,CASE NVL(PETF.reporting_name
         ,PETF.element_name)
         WHEN 'Salary' THEN 1
         ELSE 2
         END sort_order_name
         ,DECODE( PEC.classification_name
         ,'Earnings',1
         ,0
         ) earnings_count
         ,DECODE( PEC.classification_name
         ,'Earnings',0
         ,1
         ) deductions_count     
         FROM pay_action_interlocks PAI
         ,pay_assignment_actions PAA
         ,pay_payroll_actions PPA
         ,per_all_assignments_f PAAF
         ,pay_run_results PRR
         ,pay_run_result_values PRRV
         ,pay_input_values_f PIVF
         ,pay_element_types_f PETF
         ,pay_element_classifications PEC
         WHERE PAI.locked_action_id = PAA.assignment_action_id
         AND PAA.payroll_action_id = PPA.payroll_action_id
         AND PAA.assignment_id = PAAF.assignment_id
         AND PAA.assignment_action_id = PRR.assignment_action_id
         AND PRR.run_result_id = PRRV.run_result_id
         AND PRRV.input_value_id = PIVF.input_value_id
         AND PRR.element_type_id = PETF.element_type_id
         AND PETF.classification_id = PEC.classification_id
         AND PPA.effective_date BETWEEN PAAF.effective_start_date AND PAAF.effective_end_date
         AND PPA.effective_date BETWEEN PETF.effective_start_date AND PETF.effective_end_date
         AND PPA.effective_date BETWEEN PIVF.effective_start_date AND PIVF.effective_end_date
         AND PPA.action_type IN ( 'R','Q' )
         AND PRR.status IN ('P','PA')
         AND PEC.classification_name IN ( 'Earnings'
         ,'Pre Tax Deductions'
         ,'Involuntary Deductions'
         ,'Voluntary Deductions')
         AND PIVF.name = 'Pay Value'
         AND PAI.locking_action_id = :assignment_action_id
         ORDER BY sort_order_elements ASC, sort_order_name ASC
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataTrigger name="beforeReport" source="XXLCPAY_ONLINEPAYSLIP_PKG.BEFORE_REPORT" />
    <dataStructure>
    <group name="G_PAYMENT_RUN" source="Q_PAYMENT_RUN">
    <element name="assignment_action_id" value="assignment_action_id"/>
    <element name="payroll_action_id" value="payroll_action_id"/>
    <element name="run_assignment_action_id" value="run_assignment_action_id"/>
    <element name="run_payroll_action_id" value="run_payroll_action_id"/>
    <element name="person_id" value="person_id"/>
    <element name="full_name" value="full_name"/>
    <element name="surname" value="surname"/>
    <element name="assignment_id" value="assignment_id"/>
    <element name="business_group_id" value="business_group_id"/>
    <element name="assignment_number" value="assignment_number"/>
    <element name="legal_employer" value="legal_employer"/>
    <element name="abn" value="abn"/>
    <element name="grade" value="grade"/>
    <element name="payroll_id" value="payroll_id"/>
    <element name="time_period_id" value="time_period_id"/>
    <element name="period_start_date" value="period_start_date"/>
    <element name="period_end_date" value="period_end_date"/>
    <element name="period_start_display" value="period_start_display"/>
    <element name="period_end_display" value="period_end_display"/>
    <element name="period_number" value="period_number"/>
    <element name="pay_date" value="pay_date"/>
    <element name="date_earned" value="date_earned"/>
    <element name="legacy_position" value="legacy_position"/>
    <element name="paypoint" value="paypoint"/>
    <element name="salary_basis" value="salary_basis"/>
    <element name="people_group_id" value="people_group_id"/>
    <element name="cagr_id" value="cagr_id"/>
    <group name="G_EARNINGS_DEDUCTIONS" source="Q_EARNINGS_DEDUCTIONS">
    <element name="assignment_action_id_elements" value="assignment_action_id_elements"/>
    <element name="assignment_action_id_run_ele" value="assignment_action_id_run_ele"/>
    <element name="run_result_id" value="run_result_id"/>
    <element name="effective_date_run" value="effective_date_run"/>
    <element name="pay_basis_id" value="pay_basis_id"/>
    <element name="element_type_id" value="element_type_id"/>
    <element name="element_name_ear_ded" value="element_name_ear_ded"/>
    <element name="input_value_id" value="input_value_id"/>
    <element name="classification_name" value="classification_name"/>
    <element name="amount_elements" value="amount_elements"/>
    <element name="sort_order_elements" value="sort_order_elements"/>
    <element name="sort_order_name " value="sort_order_name "/>
    <element name="earnings_count" value="earnings_count"/>
    <element name="deductions_count" value="deductions_count"/>
    <element name="calc_values" value="XXLCPAY_ONLINEPAYSLIP_PKG.CALC_VALUES(67772)"/>
    <element name="calc_values1" value="XXLCPAY_ONLINEPAYSLIP_PKG.RETURN_TEST"/>
    <element name="calc_values2" dataType="number" value="XXLCPAY_ONLINEPAYSLIP_PKG.P_TEST" function="XXLCPAY_ONLINEPAYSLIP_PKG.P_TEST"/>
    </group>
    </group>
    <element name="calc_values3" dataType="number" value="XXLCPAY_ONLINEPAYSLIP_PKG.P_TEST"/>
    </dataStructure>
    </dataTemplate>
    CREATE OR REPLACE PACKAGE XXLCPAY_ONLINEPAYSLIP_PKG
    AS
    P_TEST NUMBER;
    P_ASSIGNMENT_ACTION_ID NUMBER;
    FUNCTION BEFORE_REPORT RETURN BOOLEAN;
    FUNCTION RETURN_TEST RETURN NUMBER;
    FUNCTION RETURN_TEST1 RETURN NUMBER;
    FUNCTION RETURN_TEST2 RETURN NUMBER;
    FUNCTION CALC_VALUES(element_type_id number) RETURN NUMBER;
    END XXLCPAY_ONLINEPAYSLIP_PKG;
    CREATE OR REPLACE PACKAGE BODY XXLCPAY_ONLINEPAYSLIP_PKG
    AS
    P_TEST1 NUMBER;
    P_TEST2 NUMBER;
    FUNCTION BEFORE_REPORT RETURN BOOLEAN
    IS
    BEGIN
    P_TEST := 2;
    FND_FILE.PUT_LINE(FND_FILE.LOG,'From Before Report');
    RETURN(TRUE);
    END BEFORE_REPORT;
    FUNCTION RETURN_TEST RETURN NUMBER
    IS
    BEGIN
    FND_FILE.PUT_LINE(FND_FILE.LOG,'Call 1');
    RETURN(P_TEST);
    END RETURN_TEST;
    FUNCTION CALC_VALUES(element_type_id number) RETURN NUMBER
    IS
    BEGIN
    FND_FILE.PUT_LINE(FND_FILE.LOG,'Call 2');
    p_test1 := null;
    p_test2 := null;
    if ( element_type_id = 67772 ) then
    P_TEST1 := 5;
    P_TEST2 := 7;
    elsif (element_type_id = 67804 ) then
    P_TEST1 := 9;
    P_TEST2 := 11;
    end if;
    RETURN(1);
    END CALC_VALUES;
    FUNCTION RETURN_TEST1 RETURN NUMBER
    IS
    BEGIN
    RETURN(P_TEST1);
    END RETURN_TEST1;
    FUNCTION RETURN_TEST2 RETURN NUMBER
    IS
    BEGIN
    RETURN(P_TEST2);
    END RETURN_TEST2;
    END XXLCPAY_ONLINEPAYSLIP_PKG;
    /

    For this, you need to have a master query and child query.
    1) In your master query you will have to identify one unique column and call a pl/sql pkg function which calculates all values for your place holder columns and inserts rows into a pl/sql table with the index as your unique column
    ex: Master query returns
    empnum name amount
    1 scott 250
    2 bob 350
    and your calculated value is 10 percent of the amount
    your pl/sql pkg should insert records into the pl/sql table like r(1):= 250*0.1 = 25 r(2):= 350*0.1 = 35
    2) The child query will get executed for each row of you rmaster query, so you should be able to read the values based on which master records row it is executing for
    Please bear in mind that you have to make sure that the report is not executed by two different people at the same time, else you have to consider session or any other unique identifier in addition to your master records unique identifier.
    Cheers,
    Girish.

  • XML Report in Arabic login in Oracle apps

    Hi,
    I have created a XML report in Oracle apps, the data is coming properly from english login.
    But when we login from Arabic Login then report does not show any data.
    The data does not come even after hard coding the values.
    Any clue for the issue..
    Below is the main query in the report.
    SELECT
    PAC1.PAYROLL_ID ,
    PAC1.PAYROLL_ACTION_ID ,
    HR_PAYROLLS.DISPLAY_PERIOD_NAME(PAC1.PAYROLL_ACTION_ID) PERIOD_NAME,
    PRO.PAYROLL_NAME
    ,TO_CHAR(SYSDATE,'DD-MM-YYYY') REPORT_DATE1
    FROM pay_payrolls_f pro,
    pay_payroll_actions pac1
    ,PER_TIME_PERIODS_V V
    WHERE pac1.payroll_id = pro.payroll_id (+)
    AND pac1.effective_date BETWEEN pro.effective_start_date (+) AND pro.effective_end_date (+)
    AND DECODE( PAC1.ACTION_TYPE, 'H', NVL(pay_payroll_actions_pkg.decode_cheque_type(pac1.business_group_id), HR_GENERAL.DECODE_LOOKUP('ACTION_TYPE', PAC1.ACTION_TYPE)), 'T', DECODE(instrb(PAC1.LEGISLATIVE_PARAMETERS,'SLA_MODE=Y'), 0, HR_GENERAL.DECODE_LOOKUP('TRANSFER_TO_LEDGER', 'GL'), NULL, HR_GENERAL.DECODE_LOOKUP('TRANSFER_TO_LEDGER', 'GL'), HR_GENERAL.DECODE_LOOKUP('TRANSFER_TO_LEDGER', 'SLA')) , HR_GENERAL.DECODE_LOOKUP('ACTION_TYPE', PAC1.ACTION_TYPE)) = 'Run'
    AND PAC1.Payroll_id = 61--:P_PAYROLL_ID
    AND PAC1.time_period_id = V.time_period_id
    AND to_char(v.start_date,'MM-YYYY') = '01-2013'--:P_MONTH

    in the next time use EBS related forums - https://forums.oracle.com/forums/category.jspa?categoryID=3
    BTW
    looks like that for Arabic language you haven't some data
    in your main query you have PER_TIME_PERIODS_V which based on HR_LOOKUPS which depend on session language
    CREATE OR REPLACE VIEW HR_LOOKUPS
    where FLV.LANGUAGE = userenv('LANG')
    ...so check data in HR_LOOKUPS for Arabic language
    you can check it by query without PER_TIME_PERIODS_V
    also you can modify your main query like
    select t.PAYROLL_ID,
           t.PAYROLL_ACTION_ID,
           t.PERIOD_NAME,
           t.PAYROLL_NAME,
           t.REPORT_DATE1
      from (SELECT PAC1.PAYROLL_ID,
                   PAC1.PAYROLL_ACTION_ID,
                   HR_PAYROLLS.DISPLAY_PERIOD_NAME(PAC1.PAYROLL_ACTION_ID) PERIOD_NAME,
                   PRO.PAYROLL_NAME,
                   TO_CHAR(SYSDATE, 'DD-MM-YYYY') REPORT_DATE1,
                   PAC1.time_period_id
              FROM pay_payrolls_f pro, pay_payroll_actions pac1
             WHERE pac1.payroll_id = pro.payroll_id(+)
               AND pac1.effective_date BETWEEN pro.effective_start_date(+) AND
                   pro.effective_end_date(+)
               AND DECODE(PAC1.ACTION_TYPE,
                          'H',
                          NVL(pay_payroll_actions_pkg.decode_cheque_type(pac1.business_group_id),
                              HR_GENERAL.DECODE_LOOKUP('ACTION_TYPE',
                                                       PAC1.ACTION_TYPE)),
                          'T',
                          DECODE(instrb(PAC1.LEGISLATIVE_PARAMETERS, 'SLA_MODE=Y'),
                                 0,
                                 HR_GENERAL.DECODE_LOOKUP('TRANSFER_TO_LEDGER',
                                                          'GL'),
                                 NULL,
                                 HR_GENERAL.DECODE_LOOKUP('TRANSFER_TO_LEDGER',
                                                          'GL'),
                                 HR_GENERAL.DECODE_LOOKUP('TRANSFER_TO_LEDGER',
                                                          'SLA')),
                          HR_GENERAL.DECODE_LOOKUP('ACTION_TYPE',
                                                   PAC1.ACTION_TYPE)) = 'Run'
               AND PAC1.Payroll_id = 61 --:P_PAYROLL_ID
            ) t
      left outer join PER_TIME_PERIODS_V V
        on (t.time_period_id = V.time_period_id AND
           to_char(v.start_date, 'MM-YYYY') = '01-2013' --:P_MONTH
           )

  • No data in view in SQL Developer

    When trying to run the following code in SQL Developer the return values from the statement are all NULL.
    SELECT DECODE(paaf.assignment_type, 'E', hr_general.decode_lookup('EMP_CAT', paaf.employment_category),
                                        'C', hr_general.decode_lookup('CWK_ASG_CATEGORY', paaf.employment_category))
    FROM per_all_assignments_f paaf
    WHERE SYSDATE BETWEEN paaf.effective_start_date AND paaf.effective_end_date;However when the same query in SQL*Plus and Toad the return values are correct.
    After some rooting about in the Oracle eTRM I found that the function decode_lookup was using a cursor that took data from the view hr_lookup.
    When I looked at this view through SQL Developer there is no data. However when querying the view in SQL*Plus there are > 51K rows.
    Can anyone shed light on why this is? I have tried it on SQL Developer 1.2 and 1.5 EA3. I am working on Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 with eBusiness Suite 11.5.10.2
    Thanks,
    James.

    I understand that SQL Developer takes it's NLS settings from Preferences - Database - NLS Parameters. What I was not aware of is that when SQL Developer is run for the first time the NLS Parameters seem to be populated from the settings on the OS of the PC it is running on. To test that this was the case I did the following
    I work on a Windows XP system with Regional Options - Standards and Formats and Regional Options - Location set with English (United Kingdom) and United Kingdom respectively.
    I unzipped two clean SQL Developer instances (both Version 1.2.1). The first instance I first ran under my current PC set up without importing settings from a previous installation. The Preferences - Database - NLS Parameters - Language and Preferences - Database - NLS Parameters - Territory had been populated with English and United Kingdom.
    I then changed the Regional Options on the OS to English (United States) and United States and ran the second instance of SQL Developer for the first time, again without importing settings. In this instance of SQL Developer the NLS Parameters were populated with American and America.
    When the first instance of SQL Developer was the checked under these OS settings the NLS Parameters were still English and United Kingdom.
    I was not aware this was the case and, if my test is correct, it seems to contradict the SQL Developer user guide http://download.oracle.com/docs/cd/E10405_01/doc/appdev.120/e10406/intro.htm#CHDBHCAG
    James
    Message was edited by: Jampat to include SQL Developer version number.

  • Seeded Page is erroring out in JDeveloper

    I copied few seeded page (MgrMainAppraiserPG, HierachyPG) from the APPL_TOP.
    When I am running the MgrMainAppraiserPG, it is erroring out with error
    'java.sql.SQLException: ORA-01008: not all variables bound'
    I have not done any changes and running the page after copying the xml file.
    Any idea why I am getting this error?
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (select decode(fnd_profile.value('BEN_DISPLAY_EMPLOYEE_NAME'),'FN',ppf.full_name, ppf.first_name||' '|| ppf.last_name) full_name,
    hr_person_type_usage_info.get_user_person_type(ppf.effective_end_date, ppf.person_id) person_type,
    Decode(paf.assignment_type,
              'C', hr_general.decode_lookup('CWK_ASG_CATEGORY', paf.employment_category),
    hr_general.decode_lookup('EMP_CAT', paf.employment_category)
    )employment_category,
    ppf.start_date, ppf.original_date_of_hire,
    decode(paf.period_of_service_id, null, pop.date_start, pos.date_start) date_start,
    decode(paf.period_of_service_id, null, pop.actual_termination_date, pos.actual_termination_date) actual_termination_date,
    Decode(paf.assignment_type,
              'C', hr_general.decode_lookup('HR_CWK_TERMINATION_REASONS', pop.termination_reason),
    hr_general.decode_lookup('LEAV_REAS', pos.leaving_reason)
    ) leaving_reason,
    paf.effective_start_date,
    hr_util_misc_ss.getObjectName('JOB', paf.job_id, ppf.business_group_id, jtl.name) job, paf.job_id,
    orgtl.name organization, orgtl.organization_id,
    bgtl.name business_group, bgtl.organization_id business_group_id,
    lvl.location_code,
    hr_util_misc_ss.getObjectName('GRADE', paf.grade_id, ppf.business_group_id, gtl.name) grade, paf.supervisor_id, ppf.person_id, paf.assignment_id, paf.primary_flag, paf.assignment_number,
    ppf.employee_number,
    ppf.npw_number cwk_number,
    nvl(paf.effective_start_date, ppf.effective_start_date) Asg_start_date,
    decode(nvl(paf.effective_end_date, ppf.effective_end_date), to_date('31/12/4712','DD/MM/RRRR'), null, nvl(paf.effective_end_date, ppf.effective_end_date) ) Asg_end_date,
    hr_general.decode_lookup('YES_NO', paf.primary_flag) Prim_Flag,
    lvl.derived_locale,
    v.vendor_name Supplier,
    paf.VENDOR_ASSIGNMENT_NUMBER Supplier_id_assignment,
    paf.VENDOR_EMPLOYEE_NUMBER Supplier_id_worker,
    Decode(paf.assignment_type,
              'C', hr_general.decode_lookup('HR_CWK_TERMINATION_REASONS', pop.termination_reason),
    hr_general.decode_lookup('LEAV_REAS', pos.leaving_reason)
    )term_reason,
    decode(ppf.rehire_recommendation, 'N', null, hr_general.decode_lookup('YES_NO', ppf.rehire_recommendation)) rehire,
    ast.user_status assignment_status,
    decode(paf.period_of_service_id, null, pop.date_start, pos.date_start) latest_hire_date,
    hr_util_misc_ss.getObjectName('POSITION', paf.position_id, ppf.business_group_id, ptl.name) position,
    ppf.REHIRE_REASON,
    paf.supervisor_assignment_id,
    null Work_Phone,
    null Position_Id,
    null Disc_Title,
    'Y' Manager_Enabled,
    null Payroll,
    null Normal_Hours,
    'Y1' details_enabled,
    ppf.email_address,
    org_info.org_information9 LegislationCode
    from per_assignments_f2 paf, per_assignment_status_types_tl ast,
    per_people_f ppf,
    hr_all_organization_units_tl orgtl, hr_all_organization_units_tl bgtl,
    per_jobs_tl jtl, hr_all_positions_f_tl ptl, hr_locations_all_vl lvl, po_vendors v,
    per_grades_tl gtl, per_periods_of_service pos, per_periods_of_placement pop, hr_organization_information org_info
    where trunc(sysdate) between paf.effective_start_date and paf.effective_end_date
    and trunc(sysdate) between ppf.effective_start_date and ppf.effective_end_date
    and (ppf.current_employee_flag = 'Y' or ppf.current_npw_flag = 'Y')
    and paf.primary_flag = decode(:0 ,'Y', paf.primary_flag, 'Y')
    and paf.assignment_type in ('E','C')
    and paf.person_id = ppf.person_id
    and paf.vendor_id = v.vendor_id(+)
    and paf.assignment_status_type_id = ast.assignment_status_type_id
    and ast.language = userenv('LANG')
    and paf.period_of_service_id = pos.period_of_service_id(+)
    and paf.period_of_placement_date_start = pop.date_start(+)
    and paf.person_id = pop.person_id(+)
    and paf.job_id = jtl.job_id(+)
    and jtl.language(+) = userenv('LANG')
    and paf.position_id = ptl.position_id(+)
    and ptl.language(+) = userenv('LANG')
    and paf.organization_id = orgtl.organization_id
    and orgtl.language = userenv('LANG')
    and ppf.business_group_id = bgtl.organization_id
    and bgtl.language = userenv('LANG')
    and paf.location_id = lvl.location_id(+)
    and paf.grade_id = gtl.grade_id(+)
    and gtl.language(+) = userenv('LANG')
    and org_info.organization_id = ppf.business_group_id
    and org_information_context = 'Business Group Information') QRSLT WHERE (:1 = SUPERVISOR_ID)AND (:2 = SUPERVISOR_ASSIGNMENT_ID or hr_general2.supervisor_assignments_in_use = 'FALSE' ) ORDER BY FULL_NAME
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2898)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2700)
         at OA.jspService(OA.jsp:48)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
         at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199)
         at OA.jspService(OA.jsp:45)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
         at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199)
         at OA.jspService(OA.jsp:45)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.sql.SQLException: ORA-01008: not all variables bound
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1983)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1141)
         at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2487)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2854)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:622)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:550)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:627)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:515)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3347)
         at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:825)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4465)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:538)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2369)
         at oracle.jbo.server.ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:2586)
         at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:1674)
         at oracle.jbo.server.ViewRowSetImpl.refreshRowSet(ViewRowSetImpl.java:3703)
         at oracle.jbo.server.ViewRowSetIteratorImpl.notifyDetailRowSets(ViewRowSetIteratorImpl.java:3018)
         at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigation(ViewRowSetIteratorImpl.java:3126)
         at oracle.jbo.server.ViewRowSetIteratorImpl.internalSetCurrentRow(ViewRowSetIteratorImpl.java:2910)
         at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1257)
         at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:2363)
         at oracle.jbo.server.ViewObjectImpl.first(ViewObjectImpl.java:5231)
         at oracle.apps.fnd.framework.webui.OADataBoundValueHGrid.getValue(OADataBoundValueHGrid.java:85)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.getAttributeValueImpl(OAWebBeanHelper.java:1760)
         at oracle.apps.fnd.framework.webui.beans.table.OAHGridBean.getAttributeValueImpl(OAHGridBean.java:509)
         at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
         at oracle.cabo.ui.laf.base.desktop.table.HGridRenderingContext.getTableDataFromBean(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.TableRenderingContext.<init>(Unknown Source)
         at oracle.cabo.ui.laf.base.desktop.table.HGridRenderingContext.<init>(Unknown Source)
         at oracle.cabo.ui.laf.base.desktop.HGridRenderer.createRenderingContext(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.TableRenderer.getTableRenderingContext(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.TableRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.base.desktop.TableRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.base.desktop.HGridRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.oracle.desktop.HeaderRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderIndexedChildren(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
         at oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.oracle.desktop.PageLayoutRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.BodyRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.render(OABodyBean.java:398)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.partial.PartialPageUtils.renderPartialPage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.render(OAPageBean.java:3209)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2888)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2700)
         at OA.jspService(OA.jsp:48)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
         at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199)
         at OA.jspService(OA.jsp:45)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
         at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199)
         at OA.jspService(OA.jsp:45)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)

    This error is due to Bind Variables.
    When you run this page alone in JDEV, the page doesn't go thru the actual flow, which was designed for. So, the call to bind the variables may not be called when run in standalone.
    So, to test this page, you need to setup the Environment to go thru the same flow as when deployed.
    HTH
    Srini

  • Can't open a class with enrollments more than 140 learners

    Hi Gurus,
    Could anyone please help me find the correct patch for this error?
    Class can't open and comes up with error when enrollments reach more than 140 learners. I examined the code being called and it shows that a function called ota_utility.get_learners_email_addresses is concatenating email address of all the learners enrolled in that class but the variable holding this value is declared as VARCHAR2(4000) which is not enough.
    The error message i'm getting is:
    java.sql.SQLException: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "APPS.OTA_UTILITY", line 3570
    Any help would be greatly appreciated.
    Thanks,
    Joel

    HI Joel,
    We have the same case on our end and we applied patch 9724972 and it resolves the issue. This is the query that you can run to verify the issue.
    SELECT * FROM (Select evttl.title ,
    evt.event_id,
    evt.course_start_date,
    evt.course_end_date,
    evt.event_type,
    off.name Offering_Name,
    HR_GENERAL.DECODE_LOOKUP('SCHEDULED_EVENT_STATUS' , evt.event_Status) Event_Status_Meaning ,
    evt.event_status,
    evt.parent_offering_id,
    ota_utility.get_session_count(evt.event_id) Number_Session,
    ota_general.get_org_name(evt.TRAINING_CENTER_ID) Training_Center,
    ota_general.get_location_Code(evt.LOCATION_ID) Location_Code,
    ota_utility.get_learners_email_addresses(evt.event_id) email_addresses,
    ota_utility.get_class_available_seats(evt.event_id) event_available_seats,
    ota_utility.is_class_enrollable('B',evt.event_id) is_class_bulk_enrollable,
    ota_utility.is_class_enrollable('S',evt.event_id) is_class_single_enrollable
    FROM ota_events evt,
    ota_events_tl evttl,
    ota_offerings_tl off
    WHERE evt.event_id = evttl.event_id
    AND evttl.language = userenv('LANG')
    AND off.language = userenv('LANG')
    AND evt.book_independent_flag = 'N'
    AND evt.parent_offering_id = off.offering_id
    AND evt.event_type IN ('SELFPACED','SCHEDULED')) QRSLT WHERE (Parent_Offering_Id = :1) ORDER BY TITLE ASC
    Marie

  • Calling a function in OAF page

    Hi Frnds,
    Iam trying to call a function in oaf page but somehow its not working , can u please identify mistake in my code .
    the below is CO code:
    public void processRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
    super.processRequest(oapagecontext, oawebbean);
    OAApplicationModule am=oapagecontext.getApplicationModule(oawebbean);
    OAViewObject vo = (OAViewObject)am.findViewObject("CandidateApplicantDetailsVO");
    String Nationality =null;
    CandidateApplicantDetailsVORowImpl row =null;
    int i=0;
    if(vo!=null)
    int cnt= vo.getRowCount();
    oapagecontext.writeDiagnostics(this, "row count is:"+cnt,1);
    if (cnt > 0)
    RowSetIterator rs=vo.createRowSetIterator("rs");
    if(rs!=null)
    while(rs.hasNext())
    row=(CandidateApplicantDetailsVORowImpl)rs.next();
    if(row!=null)
    Nationality = row.getNationality();
    oapagecontext.writeDiagnostics(this, "Nationality is :"+Nationality,1);
    String outputVal;
    try
    OADBTransaction txn = am.getOADBTransaction();
    CallableStatement cs = txn.createCallableStatement("BEGIN :1:= hr_general.decode_lookup(:2,:3);END;",2);
    oapagecontext.writeDiagnostics(this, "Inside the try block",1);
    System.out.println("3");
    cs.setString(2,Nationality);
    cs.setString(3,"NATIONALITY");
    cs.registerOutParameter(1,Types.VARCHAR);
    System.out.println("4");
    cs.execute();
    System.out.println("executed");
    outputVal=cs.getString(1);
    oapagecontext.writeDiagnostics(this,"The Nationality Value is:"+outputVal,2);
    cs.close();
    //txn.commit();
    catch(Exception e)
    //cs.close();
    System.out.println("6");
    throw new OAException(e.getMessage());
    } // row loop
    } // while
    } //rowset loop
    }// count loop
    }//viewobj loop
    } // End of PR
    public void processFormRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
    super.processFormRequest(oapagecontext, oawebbean);
    when i run this page , the controller was going inside the try block but the Output was not getting. can somebody figure out where iam missing.
    Thanks to all in advance
    have a good day :)
    GK.

    Hi Frnds,
    I got the problem,
    Iam trying to send a Default value NATIONALITY in setString
    cs.setString(2,Nationality);
    cs.setString(3,"NATIONALITY");
    I have changed the lines to
    String lookup_type="NATIONALITY"
    cs.setString(2,Nationality);
    cs.setString(3,"Lookup_type);
    now i got the o/p, hope this may help others

  • Api to update the values in per_periods_of_placement table

    Hi,
    can anyone let me know whether any hrms api is available to update the values in the table PER_PERIODS_OF_PLACEMENT.
    I want to update the values under the column TERMINATION_REASON in per_periods_of_placement for few set of contingent workers(for those a wrong reason was entered need to replace with correct value now).
    Please revert asap.
    Thanks,
    Jithendra

    Here is my stand alone PL/SQL block :
    I am supplying the start_date fro mthe per_periods_of_ placement table itself...
    DECLARE
    CURSOR get_cwk_details IS
    SELECT person_id cwk_person_id,
    object_version_number ovn,
    date_start service_start_date
    FROM per_periods_of_placement pdp, hr_lookups l
    WHERE l.lookup_type(+) = 'HR_CWK_TERMINATION_REASONS'
    AND l.lookup_code(+) = pdp.termination_reason
    AND HR_GENERAL.DECODE_LOOKUP ('HR_CWK_TERMINATION_REASONS',
    PDP.TERMINATION_REASON) = 'Deceased' ;
    l_person_id NUMBER(20);
    l_ovn NUMBER(10);
    l_date_start DATE;
    BEGIN
    FOR get_cwk_details_rec in get_cwk_details
    LOOP
    l_person_id := 153564;--get_cwk_details_rec.cwk_person_id;
    l_ovn := get_cwk_details_rec.ovn;
    l_date_start := get_cwk_details_rec.service_start_date;
    dbms_output.put_line('l_person_id = ' || l_person_id);
    dbms_output.put_line('l_ovn = ' || l_ovn);
    dbms_output.put_line(' l_date_start = ' || l_date_start);
    apps. hr_periods_of_placement_api.update_pdp_details(
    P_VALIDATE => FALSE,
    P_EFFECTIVE_DATE => l_date_start,
    P_OBJECT_VERSION_NUMBER => l_ovn,
    P_PERSON_ID => l_person_id,
    P_DATE_START => l_date_start,
    P_TERMINATION_REASON => 'DW');
    COMMIT;
    END LOOP;
    END;

  • Oracle Alert and subquery

    I am using sub query in oracle alert it is not working fine any person guide me

    select distinct
    employee_number,
    full_name,
    c.proposed_salary decode(substr(HR_GENERAL.DECODE_PEOPLE_GROUP(b.people_group_id),instr(HR_GENERAL.DECODE_PEOPLE_GROUP(b.people_group_id),'.')1,9),'Allowance',c.proposed_salary*25/100,'None%',0,0)+
    decode(substr(HR_GENERAL.DECODE_PEOPLE_GROUP(b.people_group_id),instr(HR_GENERAL.DECODE_PEOPLE_GROUP(b.people_group_id),'.',1,2)+1,4),'Allo',c.proposed_salary*15/100,'None',0,0) +
    decode(substr(HR_GENERAL.DECODE_PEOPLE_GROUP(b.people_group_id),instr(HR_GENERAL.DECODE_PEOPLE_GROUP(b.people_group_id),'.',1,4)+1,4),'None',0,200) as net
    INTO
    &EMPNO,
    &EMPNAME,
    &NET
    from per_all_people_f a , Per_all_assignments_f b,PER_PAY_PROPOSALS_v c
    where a.person_id = b.person_id
    and b.assignment_id = c.assignment_id
    AND c.element_name = 'Basic Salary'
    and c.pay_proposal_id = (select max(pay_proposal_id) from PER_PAY_PROPOSALS_v where ASSIGNMENT_ID =b.assignment_id
    and element_name = 'Basic Salary'
    and approved = 'Y')
    and
    DECODE (b.assignment_type,
    'E', hr_general.decode_lookup ('EMP_CAT', b.employment_category),
    'C', hr_general.decode_lookup ('CWK_ASG_CATEGORY',
    b.employment_category
    )='Labor'
    and TRUNC(sysdate) between a.effective_start_date and a.effective_end_date
    AND TRUNC(sysdate) between b.effective_start_date and b.effective_end_date
    and c.proposed_salary decode(substr(HR_GENERAL.DECODE_PEOPLE_GROUP(b.people_group_id),instr(HR_GENERAL.DECODE_PEOPLE_GROUP(b.people_group_id),'.')1,9),'Allowance',c.proposed_salary*25/100,'None%',0,0)+
    decode(substr(HR_GENERAL.DECODE_PEOPLE_GROUP(b.people_group_id),instr(HR_GENERAL.DECODE_PEOPLE_GROUP(b.people_group_id),'.',1,2)+1,4),'Allo',c.proposed_salary*15/100,'None',0,0) +
    decode(substr(HR_GENERAL.DECODE_PEOPLE_GROUP(b.people_group_id),instr(HR_GENERAL.DECODE_PEOPLE_GROUP(b.people_group_id),'.',1,4)+1,4),'None',0,200) >= 3000

  • Error when extending PerformanceDetailsVO

    When I am trying to modify the the column in PerformanceDetailsVO
    Original :- decode(ppr.performance_rating, null, null,
    ppr.performance_rating||' - '||hr_general.decode_lookup('PERFORMANCE_RATING',ppr.performance_rating)) last_rating,
    need to modify :- hr_general.decode_lookup('PERFORMANCE_RATING',ppr.performance_rating) last_rating,
    I am getting error like "each row in the query result columns must be mapped to a unique query attribute in the Mapped Entity Column"
    I even tried with Updatable access through Entity Objects still getting the same error.

    Hi,
    I believe your VO is extended from a base EO and the base EO's columns does not map to the columns which are newly added in your VO. Hope it helps!
    Regards,
    Yuvaraj

  • RE: CWK Termination Alert

    Hi,
    I have created an event alert so that user account administrators are emailed when a contingent worker is terminated.
    It is an event alert on update on per_periods_of_placement table. It works but the mail comes in triplicate.
    What do I need to change to get it to be mailed only once? This is my query...
    SELECT DISTINCT papf.npw_number employee_number,
    papf.first_name||' '||papf.last_name employee_name,
    TO_CHAR(ppop.actual_termination_date,'DD-MON-RRRR') actual_termination_date,
    meds_hr_util_pkg.return_department(papf.person_id) department,
    hla.location_code branch,
    NVL(hr_general.decode_lookup('HR_CWK_TERMINATION_REASONS', PPOP.termination_reason), initcap(PPOP.termination_reason)) term_reason
    INTO &EMPLOYEE_NUMBER
    ,&EMPLOYEE_NAME
    ,&ACTUAL_TERMINATION_DATE
    ,&DEPARTMENT
    ,&BRANCH
    ,&TERMINATION_REASON
    FROM per_all_people_f papf
    , per_person_types ppt
    , per_person_type_usages_f pptuf
    , per_periods_of_placement ppop
    , per_all_assignments_f paaf
    , hr_locations_all hla
    WHERE trunc(sysdate) between pptuf.effective_start_date and pptuf.effective_end_date
    AND PAPF.person_id = PPTUF.person_id
    AND PPTUF.person_id = PAPF.person_id
    AND PAPF.person_id = PAAF.person_id
    AND PPTUF.person_type_id = PPT.person_type_id
    AND PPT.system_person_type = 'CWK'
    AND papf.current_applicant_flag IS NULL
    AND TRUNC(ppop.LAST_UPDATE_DATE) = TRUNC(SYSDATE)
    AND trunc(sysdate) between papf.effective_start_date and papf.effective_end_date
    AND trunc(sysdate) between paaf.effective_start_date and paaf.effective_end_date
    AND ppop.person_id = papf.person_id
    AND ppop.date_start = (SELECT MAX(ppop1.date_start)
    FROM per_periods_of_placement ppop1
    WHERE ppop1.person_id = ppop.person_id)
    AND paaf.location_id = hla.location_id (+)
    AND NVL(hr_general.decode_lookup('HR_CWK_TERMINATION_REASONS', PPOP.termination_reason), initcap(PPOP.termination_reason)) IS NOT NULL
    AND ppop.ROWID = :ROWID
    Thanks
    Shalantha

    Hi Ganesh,
    The mail comes 3 times ie. 3 emails with the same info.
    There are many updates happening for a termination on tables per_all_people_f, per_all_assignments and per_periods_of_placement so that may be why, but I setup the alert to fire on update of table per_periods_of_placement so in theory, shouldn't it fire only once and send 1 email?
    Thanks
    Shalantha

  • MHKIM:(연말정산)의료비입력화면의 상세내역입력시 가족 LOV값에 대한 로직

    QUESTION
    =========
    연말정산화면의 의료비 TAB에서
    상세내역입력시 나타나는 가족 LOV값 관련 로직
    ANSWER
    ==========
    해당 field의 로직은 다음과 같습니다.
    select full_name,
    national_identifier,
    code,
    substr(hr_general.decode_lookup('KR_CONTACT_RELATIONSHIPS',CODE),1,80) d_contact_type
    from
    (select full_name,
    national_identifier ,
    nvl(cont_information11,
    decode(contact_type, 'P','1','S','3'
    ,'A','4','C','4','R','4','O','4','T','4'
    ,'BROTHER','5','SISTER','5','6') ) code
    from pay_kr_contact_v
    where assignment_id = :DETAILED_MEDICAL_INFO.ASSIGNMENT_ID
    Union All
    select ppf.full_name,ppf.national_identifier, '0' code
    from per_people_f ppf
    ,per_assignments_f pa
    where pa.person_id = ppf.person_id
    and pa.assignment_id = :DETAILED_MEDICAL_INFO.ASSIGNMENT_ID
    and :ctl_globals.session_date between pa.effective_start_date and pa.effective_end_date
    and :ctl_globals.session_date between ppf.effective_start_date and ppf.effective_end_date
    order by d_contact_type
    Seed Contact code입니다.
    C          Child
    P          Parent
    S          Spouse
    A          Adopted Child
    R          Domestic Partner Child
    O      Foster Child
    T          Step Child
    SISTER      Sister
    BROTHER Brother
    ----------------------------------------------------------------

  • Absence Balance Report

    Are there any reports that can be ran that will show each employee's absence balances?  If not, where can I find this information in the database (what tables/fields)?  Thanks.

    Hi Trey,
    You can use the seeded function for getting the accrual balance -
    per_utility_functions.GET_NET_ACCRUAL()
    I was just writing one yesterday. See if you can amend and use it - 
    select
    papf.employee_number
    , papf.full_name as Name
    ,pj.name as Job, haou.name as ORG
    ,hra.location_code as Loc
    ,apps.hr_general.decode_lookup ('EMP_CAT',paaf.employment_category) Employment_Category
    ,sup.full_name Supervisor 
    ,paaf.normal_hours weekly_working_hours
    ,paat.name absence_type
    ,greatest(to_date('0101'||'2015','DDMMYYYY'),pps.date_start) accrual_start_date
    ,PER_UTILITY_FUNCTIONS.Get_Net_Accrual
                (P_ASSIGNMENT_ID                  => PAAF.ASSIGNMENT_ID
                ,P_PAYROLL_ID                     => PAAF.PAYROLL_ID
                ,P_BUSINESS_GROUP_ID              => PAAF.BUSINESS_GROUP_ID
                ,P_ASSIGNMENT_ACTION_ID           => -1
                ,P_CALCULATION_DATE               => greatest(to_date('1-Jan-2015'),pps.date_start)
                ,P_PLAN_ID                        => 13061
                ) Jan_1
    ,per_utility_functions.GET_NET_ACCRUAL
                (P_Assignment_ID                  => paaf.assignment_id
                ,P_Payroll_ID                     => paaf.payroll_id
                ,P_Business_Group_ID              => paaf.business_group_id
                ,P_Assignment_Action_ID           => -1
                ,P_Calculation_Date               => to_date('31-dec-2015')
                ,P_Plan_ID                        => 13061
                ) Dec_31
    ,paa.date_start
    ,paa.date_end
    ,paa.absence_days
    ,paa.absence_hours
    ,PER_UTILITY_FUNCTIONS.Get_Net_Accrual
                (P_ASSIGNMENT_ID                  => PAAF.ASSIGNMENT_ID
                ,P_PAYROLL_ID                     => PAAF.PAYROLL_ID
                ,P_BUSINESS_GROUP_ID              => PAAF.BUSINESS_GROUP_ID
                ,P_ASSIGNMENT_ACTION_ID           => -1
                ,P_CALCULATION_DATE               => paa.date_start -1
                ,P_PLAN_ID                        => 13061
                ) before
    ,per_utility_functions.GET_NET_ACCRUAL
                (P_Assignment_ID                  => paaf.assignment_id
                ,P_Payroll_ID                     => paaf.payroll_id
                ,P_Business_Group_ID              => paaf.business_group_id
                ,P_Assignment_Action_ID           => -1
                ,P_Calculation_Date               => paa.date_end
                ,P_Plan_ID                        => 13061
                ) after
    from  
    PER_PEOPLE_F papf, 
    PER_ASSIGNMENTS_F paaf, 
    PER_JOBS pj, 
    HR_ALL_ORGANIZATION_UNITS haou, 
    HR_LOCATIONS_ALL hra, 
    PAY_ALL_PAYROLLS_F payf, 
    per_person_types ppt, 
    per_all_people_f sup  ,
    per_periods_of_service pps,
    apps.per_absence_attendances paa,
    apps.per_absence_attendance_types paat
    where papf.person_id = paaf.person_id 
    and paaf.job_id = pj.job_id(+) 
    and paaf.location_id = hra.location_id(+) 
    and paaf.payroll_id = payf.payroll_id(+) 
    and paaf.organization_id =  haou.organization_id 
    and papf.person_type_id = ppt.person_type_id  
    and sup.person_id(+) = paaf.supervisor_id 
    and papf.current_employee_flag = 'Y'
    and paaf.primary_flag = 'Y'
    and paaf.assignment_number is not null
    and papf.business_group_id = :bg_id
    and pps.person_id = papf.person_id
    and trunc(sysdate) between pps.date_start and sysdate
    and pps.actual_termination_date is null
    and paat.absence_attendance_type_id = paa.absence_attendance_type_id
    and papf.person_id = paa.person_id
    and paa.date_start <= '31-Dec-2015' and paa.date_end >= '01-Jan-2015'
    and upper(paat.name) = 'ANNUAL LEAVE'
    and papf.full_name like 'Battu%Vigneswar%'
    and paa.date_start between paaf.effective_start_date and paaf.effective_end_date  
    and paa.date_start between papf.effective_start_date and papf.effective_end_date  
    and trunc(sysdate) between payf.effective_start_date(+) and payf.effective_end_date(+) 
    and trunc(sysdate) between sup.effective_start_date(+) and sup.effective_end_date(+) 
    order by papf.full_name, date_start;

  • Query for employee information

    Good afternoon.
    I'm having trouble on how to determine the employee department, division, organization as well as the company.
    Any idea guys??
    Thank you,
    Rey

    Hi Vignesh,
    This is my query.. our user gave me this navigation(Global Super HRMS Manager > Work Structures > Organization > Description) for the department, division etc. but couldn't find a relationship between employee record and this navigation.
    SELECT
    hr_general.decode_position_latest_name(assignment.position_id),
    sck.concatenated_segments,
    grp.group_name,
      people.employee_number,
      people.last_name,
      people.first_name,
      people.middle_names,
      hr_general.decode_position_latest_name(assignment.position_id),
      org_struc.d_parent_name,
      sck.concatenated_segments,
      org.NAME,
      locations.location_code LOCATION,
      jobs.NAME JobName,
      hr_general.decode_lookup('EMPLOYEE_CATG', assignment.employee_category),
      sck.segment1,
      people.person_id,
      assignment.organization_id
    FROM per_people_f people ,
      per_all_assignments_f assignment ,
      hr_locations_all_tl locations ,
      per_org_structure_elements_v org_struc,
      per_jobs_tl jobs ,
      per_grades_tl grade,
      per_all_organization_units org,
      HR_SOFT_CODING_KEYFLEX sck,
      PAY_PEOPLE_GROUPS grp
    WHERE people.person_id          = assignment.assignment_id
    AND people.business_group_id    = assignment.business_group_id
    AND assignment.location_id      = locations.location_id
    AND assignment.soft_coding_keyflex_id = sck.soft_coding_keyflex_id
    AND assignment.organization_id          = org.organization_id
    AND sck.segment1 = org_struc.organization_id_child
    AND assignment.job_id           = jobs.job_id
    AND assignment.people_group_id = grp.people_group_id
    AND assignment.grade_id         = grade.grade_id
    AND assignment.assignment_type IN ('E','C')
    AND SYSDATE BETWEEN people.effective_start_date AND people.effective_end_date
    AND SYSDATE BETWEEN assignment.effective_start_date AND assignment.effective_end_date
    AND assignment.business_group_id=people.business_group_id
    ORDER BY people.last_name, people.first_name asc;

Maybe you are looking for