How to call the pl/sql function of the ofa

Dear friends,

I am trying to call a function of OPS page .but iam getting error as

java.sql.SQLException: ORA-01861: literal does not match the format string

ORA-06512: at line 1

It is my function, callable statement

FUNCTION CAR_LOAN_VALIDATION (P_PERSON_ID IN NUMBER

P_DEDUCTION_START_DATE AS

P_DEDUCTION_END_DATE AS

P_LOAN_VALUE NUMBER

)

RETURN VARCHAR2

IS

l_message VARCHAR2 (100);

l_contract_type VARCHAR2 (50);

l_loan_eligible_date DATE;

l_grade VARCHAR2 (15);

l_old_loan_end_date DATE;

l_max_loan_end_date DATE;

l_remaining_amount NUMBER;

l_eligible_amt NUMBER;

BEGIN

BEGIN

SELECT - papf.person_id,.

(SELECT the sense

OF hr_lookups

WHERE lookup_type = 'ADTC_CONTRACT_TYPE. '

AND lookup_code = attribut3) contract_type;

ADD_MONTHS (papf.original_date_of_hire, 11) loan_eligible_date,.

DECODE (paaf.ass_attribute2,

'President', '' President. ''

SUBSTR (ass_attribute2, INSTR (ass_attribute2, '.', 1, 1) + 1,)

3)

) grade.

(SELECT nvl (MAX (deduction_end_date), null)

OF xxadtc_car_loan_request

WHERE person_id = p_person_id) old_loan_end_date;

TO_DATE (ADD_MONTHS (p_deduction_start_date, 47)) max_loan_end_date

-to_date (ADD_MONTHS (sysdate, 47)) max_loan_end_date

IN l_contract_type

l_loan_eligible_date

l_grade

l_old_loan_end_date

l_max_loan_end_date

OF per_all_people_f women's wear, per_all_assignments_f ADP

WHERE SYSDATE BETWEEN papf.effective_start_date AND papf.effective_end_date

AND papf.business_group_id = 81

AND papf.person_id = paaf.person_id

AND SYSDATE BETWEEN paaf.effective_start_date AND paaf.effective_end_date

AND papf.person_id = P_PERSON_ID;

EXCEPTION

WHILE others THEN

DBMS_OUTPUT. Put_line ('error');

END;

-to obtain the amount of the previous car loan-

BEGIN

SELECT to_number (prrv.result_value)

IN l_remaining_amount

OF per_all_people_f women's wear.

per_all_assignments_f ADP,

pay_assignment_actions CIP,

pay_run_results prr,

prrv pay_run_result_values,

petf pay_element_types_f,

pay_input_values_f pivf,

pay_element_classifications pec,

pay_payroll_actions App,

TPP per_time_periods

WHERE SYSDATE BETWEEN papf.effective_start_date AND papf.effective_end_date

AND papf.person_id = paaf.person_id

AND papf.business_group_id = 81

AND SYSDATE BETWEEN paaf.effective_start_date AND paaf.effective_end_date

AND paaf.assignment_id = pac.assignment_id

AND pac.assignment_action_id = prr.assignment_action_id

AND prr.run_result_id = prrv.run_result_id

AND prr.element_type_id = petf.element_type_id

AND SYSDATE BETWEEN petf.effective_start_date AND petf.effective_end_date

AND prrv.input_value_id = pivf.input_value_id

AND SYSDATE BETWEEN pivf.effective_start_date AND pivf.effective_end_date

AND pivf.NAME = 'balance '.

AND petf.classification_id = pec.classification_id

AND pac.payroll_action_id = ppa.payroll_action_id

AND ppa.time_period_id = ptp.time_period_id

AND TO_CHAR (ptp.pay_advice_date, 'Mon-YYYY') =

To_char (SYSDATE, "Mon-YYYY")

AND petf.element_name = "Fashions ready Ahlami"

- and employee_number = '10185'

AND papf.person_id = p_person_id;

EXCEPTION

WHEN no_data_found THEN

-DBMS_OUTPUT. Put_line (' ERROR: no data!');

l_remaining_amount: = 0;

WHILE others THEN

DBMS_OUTPUT. Put_line ('error');

END;

Select GET_CAR_LOAN_ELIGI_AMT (P_PERSON_ID)

in l_eligible_amt

Double;

IF L_contract_type NOT IN ("Permanent") THEN

l_message: = 'contract Type is invalid. "

END IF;

IF l_loan_eligible_date < SYSDATE THEN

l_message: = 'Date to join is less then a year. "

END IF;

IF l_grade IN ('US', '00', 'AUS', ') THEN

"l_message: = ' your are not eligible Grade."

END IF;

IF l_old_loan_end_date < SYSDATE THEN

l_message: = 'previous loan period is not completed. "

END IF;

IF l_max_loan_end_date > P_DEDUCTION_END_DATE THEN

l_message: = 'Maxinum number of monthly payment for 48 months;

END IF;

IF l_remaining_amount > 0 THEN

l_message: = "amount of the previous car loan is waiting until";

END IF;

IF l_eligible_amt < p_loan_value THEN

l_message: = 'Please check eligible amount ";

END IF;

RETURN nvl(l_message,'S');

EXCEPTION

WHEN NO_DATA_FOUND

THEN

RETURN "error";

END CAR_LOAN_VALIDATION;

END XX_CAR_LOAN_REQUEST_PKG;

CODE THAT CAN BE CALLED BY CODE - CO STATEMENT

{if (PageContext.GetParameter ("Submit")! = null)}

OAViewObject vo2 = (OAViewObject) am.findViewObject ("XxadtcCarLoanRequestEOVO1");

{if(VO1!=null)}

VO1. GetCurrentRow () .setAttribute ("LoanStatus", "pending approval");

int xxpersonId = pageContext.getEmployeeId ();

String xxDeductionStartDate = vo2.getCurrentRow ().getAttribute("DeductionStartDate").toString ();//pageContext.getParameter("DeductionStartDate").toString();

SimpleDateFormat dateFormat1 = new SimpleDateFormat("yyyy/mm/dd");

ConvertedDate1 date = dateFormat1.parse ("xxDeductionStartDate");

String xxDeductionEndDate = vo2.getCurrentRow ().getAttribute("DeductionEndDate").toString ();//pageContext.getParameter("DeductionEndDate").toString();

SimpleDateFormat dateFormat2 = new SimpleDateFormat("yyyy/mm/dd");

ConvertedDate2 date = dateFormat2.parse ("xxDeductionEndDate");

String xxLoanValue = vo2.getCurrentRow ().getAttribute("LoanValue").toString ();//pageContext.getParameter("LoanValue").toString();

int iLoanValue = Integer.parseInt (xxLoanValue);

System.out.println ("loop submit input");

System.out.println ("xxpersonId id is:" + xxpersonId);

System.out.println ("xxDeductionStartDate id is:" + xxDeductionStartDate);

System.out.println ("xxDeductionEndDate id is:" + xxDeductionEndDate);

System.out.println ("xxLoanValue id is:" + xxLoanValue);

TXN OADBTransaction = am.getOADBTransaction ();

String sql = "START: 1: = XXADTC_CAR_LOAN_REQUEST_PKG." CAR_LOAN_VALIDATION(:2,:3,:4,:5); END; « ;

CallableStatement cs = txn.createCallableStatement(sql,1);

String outputval = null; / / int outputval = 0;

try {}

System.out.println ("entry into loop try funtion callable validation");

cs.setInt(2,xxpersonId);

System.out.println ("cs setInt (2, xxpersonId);") is executed");

cs.setString(3,xxDeductionStartDate);

System.out.println ("cs.setString (3, xxDeductionStartDate is executed);'");

cs.setString(4,xxDeductionEndDate);

System.out.println ("cs.setString (4, xxDeductionEndDate is executed);'");

cs.setDate(3,xxDeductionStartDate);

cs.setDate(4,xxDeductionEndDate);

cs.setInt(5,iLoanValue);

cs.registerOutParameter(1,Types.VARCHAR); / / cs.registerOutParameter(1,Types.NUMERIC);

DSI Execute();

outputval = cs.getString (1); / / txn.commit ();

System.out.println (outputval);

TXN.Commit ();

If (outputval. Equals ("S"))

{

am.invokeMethod ("apply");

}

on the other

{

throw new OAException ("is:" + outputval, OAException.INFORMATION name of the Organization);

}

TXN.Commit ();

}

{} catch (Exception sqle)

try {}

DSI Close();

}

catch (System.Exception e)

{

throw OAException.wrapperException (e);

}

throw OAException.wrapperException (sqle);

}

}

Please help where is the error.

Help, please

Let me know for any clarification.

Thank you

Aravinda.

Ford Hi,

See below the code.

In the controller

java.sql.Date DeductionSDate; declare the variable

In LICS

String xxDeductionStartDate = vo2.getCurrentRow () .getAttribute ("DeductionStartDate");

TXN OADBTransaction = am.getOADBTransaction ();

if(xxDeductionStartDate!=null)

{

java.sql.Date startDate = txn.getOANLSServices () .stringToDate (xxDeductionStartDate);

DeductionSDate = startDate;

}

Assign to this cs.setDate(3,DeductionSDate);


Thank you

Dilip

Tags: Oracle Applications

Similar Questions

  • How to call the OFA PL/SQL procedure.

    Hello

    I'll call the pl/sql stored procedure of the OAF page (AM). the procedure is content parameter 3 IN 1 OUT parameter. all the parameters of character type is integer.


    I put the output parameter and it's returning the value, but I don't have how to configure the setting IN because the settings IN, I need to convert the INT data type number in java.

    Please help me.


    int in_parm1 = 0;
    Number in_param;
    Request_id number;
    request_id = new Number (0);
    getDBTransaction () .commit ();
    TXN OADBTransaction = getOADBTransaction();
    int l_user_id = txn.getUserId ();
    int l_resp_id = txn.getResponsibilityId ();
    int l_resp_appl_id = txn.getResponsibilityApplicationId ();
    Number of ln_user_id = new Number (l_user_id);
    Number of ln_resp_id = new Number (l_resp_id);
    Number of ln_resp_appl_id = new Number (l_resp_appl_id);
    CallableStatement cs = txn.createCallableStatement ("start oaf_request(:1,:2,:3,:4); end; ", 1) ;
    Try
    {
    System.out.println ("run ahead");
    cs.registerOutParameter (3, Types.VARCHAR, 0, 100);
    cs.registerOutParameter(1,in_param);
    cs.registerOutParameter(4,Types.NUMERIC);
    DSI Execute();
    in_parm1 = cs.getInt (4);
    request_id = new Number (in_parm1);
    System.out.println ("Request ID" + in_parm1);
    System.out.println ("run after");
    DSI Close();
    System.out.println ("result");
    }
    catch (System.Exception e)
    {

    throw OAException.wrapperException (e);

    }

    I would tell you to go through the "appeal of PL/SQL procedures and functions" Section in the User Guide.
    Example and the details are there reference.

    Thank you

  • How to call a pl/sql function ofa

    Hello

    When I train call Comptrollership, the error as "bind variable does not exist. Function has 2 input parameters, and it returns a Boolean value. How to solve this error? Can someone help me please... I'm new to OFA.

    TXN OADBTransaction = am.getOADBTransaction ();
    CallableStatement cs = CreateCallableStatement ("Begin: 1: = resp_license_func (?)") End; ", 2) ;
    String outputval = null;
    try {}
    cs.setString(1,appl_name);
    cs.setString(2,user_name);
    cs.registerOutParameter(1,Types.VARCHAR);
    CS. Execute();
    outputval = cs.getString (1);
    TXN.Commit ();
    }
    catch (Exception e) {}
    throw new OAException (e.getMessage ());
    }

    Thank you
    NGO

    Hello

    You need to change the lines below:

    String outputval = null; for int outputval = 0;

    cs.registerOutParameter(1,Types.VARCHAR); to cs.registerOutParameter(1,Types.NUMERIC);

    outputval = cs.getString (1); to outputval = cs.getInt (1);

    Kind regards.

  • How to call the function (function Build-in user) in Pro * C program

    We have developed the application Pro * C program.
    TimesTen version is "TimesTen release 11.2.1.5.0 (64-bit, Linux/x86_64) (tt112150:53308) 2010-03 - 04 T 20: 39:30Z.

    We would like to develop Pro * C program you are using PL/SQL.

    We have a few questions.
    How to call the function (function Build-in user) in Pro * C program?

    #########
    TEST
    #########

    ttisql:
    Command > create or replace FUNCTION F_SAMPLE (i_str IN VARCHAR2)
    > BACK NUMBER
    > o_number NUMBER;
    > START
    > select i_str
    > in o_number
    > double;
    >
    > O_number RETURN;
    >
    > EXCEPTION
    > Others THEN
    > RETURN 0;
    > END;
    > /.
    display errors
    The function is created.
    Order > show errors
    No errors.
    Command >
    Command > set serveroutput on;
    Command > declare
    > number of num1;
    > start
    > num1: = F_SAMPLE ('A');
    > DBMS_OUTPUT. PUT_LINE ("F_SAMPLE" |) ' ' || NUM1);
    > end;
    > /.
    F_SAMPLE 0

    PL/SQL procedure successfully completed.

    Command >


    Pro * C case:

    EXEC SQL BEGIN DECLARE SECTION;
    number of num1;
    EXEC SQL END DECLARE SECTION;

    EXEC SQL EXECUTE
    Start
    : num1: = F_SAMPLE ('A');
    end;
    END-EXEC;

    Make sure to install:
    Error on line 146, column 3, file plsqlPROC.pc:
    Error on line 146, column 3 in file plsqlPROC.pc
    number of num1;
    .. 1
    PCC-S-02201, encountered the symbol "num1" when expecting one of the following conditions:


    Thank you.

    GooGyum

    There are two problems with your variable declaration:

    1. the name of the variable and type are thew misplacement autour.

    2. you may not use a host variable type.

    If you change this to:

    EXEC SQL BEGIN DECLARE SECTION;
    int num1;
    EXEC SQL END DECLARE SECTION;

    Then it will work very well.

    Chris

  • How to call the java function with javascript setting in mobile adf?

    How to call the java function with javascript setting in mobile adf?

    The ADF Mobile utility container API can be used from JavaScript or Java.

    Application container API - 11 g Release 2 (11.1.2.4.0)

  • How to call the javascript function in ADF

    I have the javascript function stored in a .js file external (try to reuse in another application). How can call the javascript function for an event of ADF faces component. I need to I am a newbie to ADF, all ideas are appreciated.

    Kind regards
    Surya

    Published by: sgodavar on Sep 24, 2010 11:44

    Include JavaScript to the jsff/jspx as page:

    Call it like:

    Type = "dblClick" / >
    Amit

  • How to call the stored procedure when I press the button

    Hello

    I want to know how to call the procedure/SQL statement when I press the button using callable statement.

    can someone give me it please link who knows the steps to do this.

    Thanks in advance,
    SAN

    Hello

    read this good example http://www.baigzeeshan.com/2010/05/calling-plsql-procedure-and-function-in.html

    ~ Abhijit

  • How to call the web service?

    Hello

    I want to know how to call the web service from my application HTML5 & javascript.

    Please help me find this detail as what I can access easily. and I want to access web services online (a method of it) I'm not concered with how background Web service takes place.

    I just want that when you call a web service method, I will return the result.

    Please try this out for a WebService call

    var xmlhttp;
    xmlhttp = new XMLHttpRequest();
    xmlhttp.open("get","your url",true);
    xmlhttp.setRequestHeader("Accept","application/json");
    xmlhttp.setRequestHeader("Content-type", "application/json");
    xmlhttp.onreadystatechange=function() {
     if (xmlhttp.readyState==4) {
      if (xmlhttp.status == 200) {
        console.log(xmlhttp.responseText);
      }
     }
    }
    xmlhttp.send();
    

    This will display the result of the invocation of webservice. The url is the application that you deploy and the type can be get/post. If xmlhttp.send (post) takes argument for the display of the data. You can call it by clicking a button in HTML.

  • How to call the procedure type table

    Hi I have the below requirement

    Created in the sub table type

    CREATE or REPLACE the TYPE char_type IS the TABLE OF VARCHAR2 (4000);

    create or replace procedure test_proc_type (p_type char_type) is

    Start

    I'm looping 1.p_type.count

    dbms_output.put_line (p_type (i));

    end loop;

    end;

    How to call the procedure with parameter as a type!

    SQL> create or replace type  char_type as table of varchar2(4000)
      2  /
    
    Type created.
    
    SQL> create or replace procedure test_proc_type (p_type char_type)
      2  is
      3  begin
      4    for i in 1..p_type.count loop
      5      dbms_output.put_line (p_type(i) ) ;
      6    end loop;
      7  end;
      8  /
    
    Procedure created.
    
    SQL> set serveroutput on
    SQL>
    SQL> exec test_proc_type(char_type('A','B','C','D','E'))
    A
    B
    C
    D
    E
    
    PL/SQL procedure successfully completed.
    
    SQL>
    
  • How to call the setting menu of the BIOS on HP DV4 1540us netbook?

    Hi all

    How to call the setting menu of the BIOS on HP DV4 1540us netbook?

    F2 does NOT an on-screen BIOS setting.

    Is there another trick?  Or, perhaps, defining the procedure step by step to start the BIOS?

    TIA

    Power on the laptop and all logo HP being displayed, press F10.

  • How to call the variables of the scene inside movieClips

    How to call the variables of the scene inside movieClips

    One way would be to use "MovieClip (root)" to target variables in the main timeline... MovieClip (root) .someVariable = someValue;

  • How to call the pl/sql function in application of the ADF

    Hi Experts,

    I need to call the pl/sql function in application of ADF, I have logic written in my AM

    Method:

    public String reportStoredProcedure (locationID customerID, number,
    String tailNum) {}

    CallableStatement st = null;
    String v_sanctioned = null;
    If (locationID! = null & & customerID! = null & & tailNum! = null) {}
    System.out.println (locationID + "" + customerID + "" + tailNum);
    Tail string = "TAIL";
    String result = "N";

    try {}
    String stmt =
    "start XXWFS_SANCTIONS_PKG. CHECK_SANCTION(:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11); end; « ;
    St = getDBTransaction () .createCallableStatement (stmt, 0);
    st.setNull (1, Types.VARCHAR);
    st.setNull (2, Types.NUMERIC);
    st.setObject (3, customerID);
    st.setNull (4, Types.NUMERIC);
    st.setNull (5, Types.NUMERIC);
    st.setObject (6, locationID);
    st.setNull (7, Types.NUMERIC);
    st.setNull (8, Types.NUMERIC);
    st.setObject (9, tail);
    st.setObject (10, tailNum);
    st.setObject (11, result);
    St.Execute ();
    System.out.println ("v_sanctioned in AM:" + v_sanctioned);
    } catch (Exception e) {}
    e.printStackTrace ();
    return "N";
    } {Finally
    If (st! = null)
    try {}
    St.Close ();
    } catch (Exception e1) {}
    E1. PrintStackTrace();
    return "N";
    }
    }
    } else {}
    System.out.println ("v_sanctioned is null");
    v_sanctioned = "N";
    }
    Return v_sanctioned;
    }


    Error:

    java.sql.SQLException: ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in the call to 'CHECK_SANCTION '.
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored

    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1035)
    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:191)
    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:950)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1224)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3487)
    at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:3858)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
    at weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:99)
    at model.view.CardAMImpl.reportStoredProcedure(CardAMImpl.java:182)
    at com.emboss.bean.ReadyToPrint.invokeVSanctioned(ReadyToPrint.java:485)
    at com.emboss.bean.ReadyToPrint.PrintingCards(ReadyToPrint.java:434)
    at com.emboss.bean.ReadyToPrint.printCards(ReadyToPrint.java:204)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
    at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
    at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1259)
    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
    at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:97)
    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 1.run(ContextSwitchingComponent.java:90)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:94)
    at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:91)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:812)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:292)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:420)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:420)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:94)
    at java.security.AccessController.doPrivileged (Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.doIt (WebAppServletContext.java:3684)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3650)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    Can someone help me how to call...

    Call it in function, not as a procedure you do

    try {
    String stmt =
    "begin :1 := XXWFS_SANCTIONS_PKG.CHECK_SANCTION(:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12); end;";
    st = getDBTransaction().createCallableStatement(stmt, 0);
    st.registerOutParameter(1, Types.VARCHAR);
    st.setNull(2, Types.VARCHAR);
    st.setNull(3, Types.NUMERIC);
    st.setObject(4, customerID);
    st.setNull(5, Types.NUMERIC);
    st.setNull(6, Types.NUMERIC);
    st.setObject(7, locationID);
    st.setNull(8, Types.NUMERIC);
    st.setNull(9, Types.NUMERIC);
    st.setObject(10, tail);
    st.setObject(11, tailNum);
    st.setObject(12, result);
    st.execute();
     = st.getString(1);
    
  • How to call the function

    Hello

    How to call functions defined by the user in the select statement.
    I have to concat all the result of columns, though kindly help me.

    When I run after sql statement


    SELECT orgin_pos. «, » || the sender | «, » || consigneename | «, » || vesselname | «, » || travelno | «, » || POS | «, » || ETD | «, » ||
    ETA | «, » || NOP | «, » || grossweight | «, » || CCube | «, » || ccontainer | «, » || CSize. «, » || CType | «, » || Goh | «, » || HBL | «, » ||
    get_sea_report (hbl) linername | «, » || CompanyName AS overseasagent
    OF vietanam_report_view_bd



    -of cluase not found where expected error is coming.
    Kindly help me.

    concerning
    Prakash P
    Handle:  808542
    Status Level:  Newbie
    Registered:  Nov 8, 2010
    Total Posts:  69
    Total Questions:  48 (45 unresolved)  
    
  • How to call the function cascade BlackBerry

    I begineer in blackberry c ++.

    I do two class is testobject and second in test .i call the onther text function average () and nexttext();

    so please how to call this function.

    // Default empty project template
    #include "TestObect.hpp"
    
    #include 
    #include 
    #include 
    
    using namespace bb::cascades;
    
    TestObect::TestObect(bb::cascades::Application *app)
    : QObject(app)
    {
        // create scene document from main.qml asset
        // set parent to created document to ensure it exists for the whole application lifetime
        QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);
    
        // create root object for the UI
        AbstractPane *root = qml->createRootObject();
    
        // set created root object as a scene
        app->setScene(root);
    }
    
    void TestObect::test(){
    
        qDebug()<< "****************Naveen";
    }
    

    I insert also declared in the header file.

    Q_INVOKABLE Sub test();

    then I create another test class.

    /*
     * test.cpp
     *
     *  Created on: Apr 2, 2013
     *      Author: nksharma
     */
    
    #include "test.h"
    
    test::test() {
        // TODO Auto-generated constructor stub
    
    }
    
    void test:: nexttest(){
        qDebug()<<"***********Next test*********"
    
    }
    test::~test() {
        // TODO Auto-generated destructor stub
    }
    

    error in the file namespace,

    here in file herder

    the namespace error

    /*
     * test.h
     *
     *  Created on: Apr 2, 2013
     *      Author: nksharma
     */
    
    #ifndef TEST_H_
    #define TEST_H_
    
    class test {
    public:
        test();
        virtual ~test();
         Q_INVOKABLE void nexttest();
    };
    
    #endif /* TEST_H_ */
    

    You have a space between the colon and the n in:

    void test:: nexttest()
    

    Another thiing, if you are using Q_INVOKABLE, you must declare Q_OBJECT in your front header file public:

     


    If you're still having problems, try to clean up the project with Project > clean...

  • How to call the PL/SQL of EntityImpl procedure

    Hello

    I have a page that can create/update visitors. When a new customer is created themselves, a line gets inserted into the database table. I use EO for this feature.

    I need to create lines to two or three other table also when a new line is created in the main table. What is the best practice for this feature?

    The 2 options that I know:

    1 create a trigger on the main table and the appeal of trigger for inserting rows in other tables.

    2. call a PL/SQL of EntityImpl procedure after the permanent data is committed to the table. (If this is the best approach, could you please let me know how to get there)

    See you soon

    AJ

    In fact, Java Mail API is included in WLS and JDev, then you can simply add %MIDDLEWARE_HOME%\Oracle_Home\oracle_common\modules\javax.mail_2.0.0.0_1-4-4.jar to your project.

    Dario

  • How to call the ratiobutton function?

    Hello world

    I had this script

    var d = app.dialogs.add ({name: "Define empty Pages"});

    var radioBtns = d.dialogColumns.add ().radiobuttonGroups.add ();

    radioBtns.radiobuttonControls.add({staticLabel:"Save",checkedState:true});)

    radioBtns.radiobuttonControls.add ({staticLabel: "No. Save"});

    radioBtns.radiobuttonControls.add({staticLabel:"Exit"});)

    If (! d.Show ()) {d.Destroy () ;}

    var saveOption = radioBtns.selectedButton;

    d.Destroy ();

    docs var = app.documents.

    for (var i = docs.length - 1; i > = 0; i--) {}

    If (.saved docs [i] == false) {}

    docs [i] except (new file ("~/Desktop/myTestDocument" + (i + 1) + ".indd"));

    docs [i]. Close();

    }

    else {}

    docs [i]. Close (SaveOptions.no);

    }

    }

    for the docs close without saving, but

    I want to stay choice for these files not backed up, so I add dialogue open to the case wherever I decide if I save those of the unsaved file.

    Now, the problem is that I don't know how to let the ratiobutton call function

    My goal:

    (1) choose 'Save' means save files not backed up, but not others

    (2) choose "No save" means all files without saving

    (2) choose 'exit' unsaved files exit (stay open) but others nearby

    Thank you

    Respect of

    Teetan

    Fixed,

    var myDate = new Date;
    Date.prototype.monthName = function() {
        var myMonth = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
        return myMonth[this.getMonth()];
    }//This line was proposed by Marijan Tompa (tomaxxi)
    var myMonthName = myDate.monthName();
    var myYear = myDate.getFullYear();
    var myHour = myDate.getHours();
    var myMinutes = myDate.getMinutes(); 
    
    //open dialog
    var d=app.dialogs.add({name:"Unsaved files Save or not"});
    var radioBtns = d.dialogColumns.add().radiobuttonGroups.add();
    var save = radioBtns.radiobuttonControls.add({staticLabel:"Save",checkedState:true});
    var nosave = radioBtns.radiobuttonControls.add({staticLabel:"No Save"});
    var _exit = radioBtns.radiobuttonControls.add({staticLabel:"Exit"});
    if(!d.show()){d.destroy();}
    var docs = app.documents;
    switch(radioBtns.selectedButton)
    {
            case 0:
                for(var i = docs.length-1; i >= 0; i--)
                {
                        if(docs[i].saved == false)
                        {
                                docs[i].save(new File("~/Desktop/Doc" + (i+1) + "-" + myDate.getDate() + " " + myMonthName + " " + myYear + " " + myHour + myMinutes + ".indd"));
                                docs[i].close();
                            }
                        else
                        {
                                docs[i].close(SaveOptions.NO)
                            }
                    }
                break;
            case 1:
                for(var i = docs.length-1; i >= 0; i--)
                    {
                            docs[i].close(SaveOptions.NO)
                        }
                break;
            case 2:
                for(var i =0;i
    

    Kind regards

    Cognet

Maybe you are looking for

  • Satellite S70-B-10Z - STOR. E ALU disc HARD disconencts

    Hello I have connected a USB3 "Toshiba STOR external HARD drive model. E ALU 28 1 TB"on port USB3 from my laptop. Every 10 minutes, I have a temporary disconnection of the HARD drive, at the same time a window informing me that sleep and charge is av

  • Envy 13 d010nw: HP Envy 13 trackpad always resets to default

    Envy 13 laptop, for a week. The Synaptics Clickpad settings reset by default after each reboot.

  • Qosmio G40 - 10F: cannot use IRDA

    I recently received this Qosmio G40 - 10F and I read on the specifications for its IR. But infrared devices such as the transfer of my phone to the laptop does not work. There is no such IRDA device on Device Manager to activate. So I got the idea th

  • Time Windows keeps going back one hour

    After this past weekend, we noticed that on several PC time continues to go back an hour. Time zone is correct.

  • Dell 2300 dimension

    What size hard disk can fit in the reference dell dimension 2300. ?  I thought using internal western digital 500 GB or 1 T drive.