How to run the PL SQL function on click of a button

Hello

I have problem with run SQL PS function on click of a button. I have create a new button and call the function STANJA.insert_into_log_fun1('cc'); "Value of the button application", a Type of Source select button request = 'SQL PL Expression or function.
Problem is that this function is executed at the loading of the page, but not to the click. I don't want to perform this function on loading the page, only when I click the button.

Does anyone have idea how can I solve this problem?
Thank you very much.

Alter this process > status > when you press the button > choose the button you want the pcoss to run on.

RAL

Tags: Database

Similar Questions

  • How to run the SWF file when I click on a button

    Dear friends!

    I did three and kept SWF files in a folder, how do I make a flash 8 project to execute when I click on a button. I'm going to make buttons for each SWF file

    Please help me

    use loadMovie to load in your main swf (with button).

  • 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);
    
  • Need urgent help to run the PL/SQL function when executing is having IN OUT type of table.

    Created under object types.

    (1) CREATE OR REPLACE TYPE INVENTORY_ITEM_ID_TAB IN THE TABLE OF THE NUMBER;

    --

    (2) CREATE OR REPLACE TYPE ITEM_TYPE_REC AS OBJECT (ITEM_ID ISSUE

    , ITEM_VALUE VARCHAR2 (4000)

    );

    --

    (3) CREATE OR REPLACE ITEM_TYPE_TAB AS TABLE ITEM_TYPE_REC;

    The function code

    FUNCTION XXqp_get_pts_model)

    p_item_id_tab IN INVENTORY_ITEM_ID_TAB)

    RETURN ITEM_TYPE_TAB

    IS

    l_ITEM_TYPE_TAB ITEM_TYPE_TAB: = ITEM_TYPE_TAB();

    ln_org_id NUMBER;

    BEGIN

    L_ITEM_TYPE_TAB. DELETE;

    l_ITEM_TYPE_TAB. EXTEND;

    LN_ORG_ID: = FND_PROFILE. VALUE ("QP_ORGANIZATION_ID");

    SELECT ITEM_TYPE_REC (EGO. INVENTORY_ITEM_ID,

    C_EXT_ATTR10)

    LOOSE COLLECTION l_ITEM_TYPE_TAB

    To ego_mtl_sy_items_ext_b ego.

    ego_fnd_dsc_flx_ctx_ext ag,

    fnd_descr_flex_column_usages atr

    WHERE ego.attr_group_id = ag.attr_group_id

    AND ag.descriptive_flex_context_code = atr.descriptive_flex_context_code

    AND ag.application_id = atr.application_id

    AND ag.descriptive_flex_context_code = 'XXEGO_PRICE_INFO. '

    AND atr.end_user_column_name = 'XXEGO_PLAN_TO_SELL. '

    AND IN ego.inventory_item_id

    (SELECT

    (SELECT inventory_item_id

    OF MTL_SYSTEM_ITEMS_B

    WHERE segment1 = A.item_name

    AND organization_id = ln_org_id

    ) inventory_item_id

    OF geqp_apl_pricelist_sku_tbl A

    )

    AND ego.organization_id = ln_org_id;

    RETURN l_ITEM_TYPE_TAB;

    end XXqp_get_pts_mode;

    Below the code works fine BUT when calling function in pl/sql dynamic mode it does not underneath.

    ---------------------------

    Labour Code

    ---------------------------

    DECLARE

    CURSOR c1 IS SELECT (SELECT inventory_item_id

    OF mtl_system_items_b

    WHERE segment1 = A.item_name

    AND organization_id = 83

    ) INVENTORY_ITEM_ID

    of XXqp_apl_pricelist_sku_tbl;

    L_INVENTORY_ITEM_ID_TAB INVENTORY_ITEM_ID_TAB: = INVENTORY_ITEM_ID_TAB();

    L_ITEM_TYPE_TAB ITEM_TYPE_TAB: = ITEM_TYPE_TAB();

    LV_CHAR VARCHAR2 (1000);

    LV_QRY VARCHAR2 (1000);

    BEGIN

    --

    l_inventory_item_id_tab. DELETE;

    OPEN c1;

    LOOP

    C1 FETCH BULK COLLECT INTO L_INVENTORY_ITEM_ID_TAB;

    OUTPUT WHEN c1% NOTFOUND;

    END LOOP;

    CLOSE C1;

    SELECT XXQP_APL_ELIG_TCA_DEV_PKG. XXQP_GET_PTS_MODEL (L_INVENTORY_ITEM_ID_TAB)

    IN L_ITEM_TYPE_TAB

    FROM DUAL;

    --

    FOR j IN 1.l_ITEM_TYPE_TAB. COUNTY

    LOOP

    DBMS_OUTPUT. PUT_LINE (L_ITEM_TYPE_TAB (J). ITEM_VALUE);

    END LOOP;

    END;

    ---------------------------

    Code does not

    ---------------------------

    DECLARE

    CURSOR c1 IS SELECT (SELECT inventory_item_id

    OF mtl_system_items_b

    WHERE segment1 = A.item_name

    AND organization_id = 83

    ) INVENTORY_ITEM_ID

    of GEqp_apl_pricelist_sku_tbl;

    LV_QRY VARCHAR2 (1500);

    L_INVENTORY_ITEM_ID_TAB INVENTORY_ITEM_ID_TAB: = INVENTORY_ITEM_ID_TAB();

    l_ITEM_TYPE_TAB ITEM_TYPE_TAB: = ITEM_TYPE_TAB();

    BEGIN

    l_inventory_item_id_tab. DELETE;

    OPEN c1;

    LOOP

    C1 FETCH BULK COLLECT INTO L_INVENTORY_ITEM_ID_TAB;

    OUTPUT WHEN c1% NOTFOUND;

    END LOOP;

    CLOSE C1;

    LV_QRY: = ' START: 1: = XXQP_APL_ELIG_TCA_DEV_PKG. XXQP_GET_PTS_MODEL(:2); END;';

    DBMS_OUTPUT. Put_line ('-> lv_qry' |) LV_QRY);

    IMMEDIATE EXECUTION in USING LV_QRY IN l_INVENTORY_ITEM_ID_TAB, OUT l_ITEM_TYPE_TAB;

    END;

    Kindly help me out here in the execution of the function from PL/SQL runtime which is having IN OUT type of table.

    Kind regards

    Devendra

    Wrong code

    IMMEDIATE EXECUTION in USING LV_QRY IN l_INVENTORY_ITEM_ID_TAB, OUT l_ITEM_TYPE_TAB ;

    When I use the code below, able to perform the function without any error.

    EXECUTE LV_QRY IMMEDIATELY WITH THE HELP OF THE L_ITEM_TYPE_TAB, IN L_INVENTORY_ITEM_ID_TAB;

    Thank you all for your help in fixing the code.

  • 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

  • APEX shortcuts using the source of the body of the PL/SQL function

    Hi all

    Recently, I came across the feature of "Shortcuts" in the "Shared components" section of the APEX and thought great, somewhere to set the common/standard items once, then use these several times in different pages of my application.

    This seemed to work correctly when you use the 'Source' of "HTML Text" or "HTML text with special characters escaped", but then I wanted to explore the use of the "Body of the PL/SQL function" option to create a more dynamic shortcut/variable on the base.

    This is where I came across a particular problem in the APEX (Version 3.2.1.00.10 on GR 11, 2 on Oracle Enterprise Linux). When I set my shortcut, and then perform a reference to my shortcut (using "MY_SHORTCUT") in an area of a page, the value of shortcut is back, but is added with the reference variable (ie. the 'MY_SHORTCUT' chain).

    For simplicity, my example looks like this (of course, my real world example is a bit more complicated, but this example produces the same error):
    (a) I define my shortcut called "MY_SHORTCUT" and using the body of the PL/SQL function under "Source Type", define my procedure as "htp.p(:USER)."
    (b) I then create a new page (basic HTML page), and a new region of the 'type'-> 'HTML Text (with shortcuts).
    (c) in the "Source region", I define my shortcut like - "MY_SHORTCUT".
    (d) I apply changes and then run the page.

    I'll be back will be name of the current user with "MY_SHORTCUT" appended/added immediately after the user name - for example. the string:-' BRAD «MY_SHORTCUT»»

    Question is - how to stop the shortcut/reference text "MY_SHORTCUT" to be added to the variable you want to see the and thereafter on your page? I am just wanting the variable, NOT the reference for the shortcut.  I do something wrong using the HTP package, and if yes, what should I use?

    If "MY_SHORTCUT" is defined as "HTML text with special characters escaped" (where I can refer to elements of application using the syntax '& USER.') so that everything works correctly. My reason for using the PL/SQL is to generate a more dynamic output variable, based on elements of application throughout the entire application - and of course the use of shortcuts to minimize coding and duplication.


    Thanks in advance,
    Brad

    Hello

    The body of the PL/SQL function must RETURN a value.

    Try:

    RETURN :APP_USER;
    

    Andy

  • When I run the "@ddl_setup.sql" on a node of the 11gr2rac getting errors

    I want to open DDL replicate of the source node, so I run

    SQL > @marker_setup

    Marker setup script

    You will be asked the name of a schema for Oracle GoldenGate database objects.

    NOTE: The schema must be created before running this script.

    NOTE: Stop all replication DDL before starting this installation.

    Enter the Oracle GoldenGate name schema: ogg

    Table marker installation script is completed, run the script to check...

    Please enter the name of a schema for GoldenGate database objects:

    Name of schema setting for OGG

    MARKER TABLE

    -------------------------------

    Ok

    SEQUENCE MARKER

    -------------------------------

    Ok

    When I run the "@ddl_setup.sql" on a node of the 11gr2rac getting errors

    SQL > @ddl_setup.sql

    Configure Oracle GoldenGate DDL replication script

    Verify that the current user has privileges to install the DDL replication...

    You will be asked the name of a schema for Oracle GoldenGate database objects.

    NOTE: For a source of Oracle 10 g, the basket of the system must be disabled. For Oracle 11 g and later, it can be activated.

    NOTE: The schema must be created before running this script.

    NOTE: Stop all replication DDL before starting this installation.

    Enter the Oracle GoldenGate name schema: ogg

    Working, please wait...

    Line to the ddl_setup_spool.txt file

    Checking the sessions that hold locks on the tables of metadata Oracle Golden Gate...

    Full version.

    Using OGG as Oracle GoldenGate scheme a name.

    Working, please wait...

    Script of DDL replication configuration has completed, run the script to check...

    Please enter the name of a schema for GoldenGate database objects:

    Name of schema setting for OGG

    CLEAR_TRACE STATUS:

    Error on line/pos

    -------------------- -----------------------------------------------------------------

    No error no error

    CREATE_TRACE STATUS:

    Error on line/pos

    -------------------- -----------------------------------------------------------------

    No error no error

    TRACE_PUT_LINE STATUS:

    Error on line/pos

    -------------------- -----------------------------------------------------------------

    No error no error

    INITIAL_SETUP STATUS:

    Error on line/pos

    -------------------- -----------------------------------------------------------------

    No error no error

    STATUS OF THE DDLVERSIONSPECIFIC PACKAGE:

    Error on line/pos

    -------------------- -----------------------------------------------------------------

    No error no error

    STATUS OF THE DDLREPLICATION PACKAGE:

    Error on line/pos

    -------------------- -----------------------------------------------------------------

    No error no error

    DDLREPLICATION STATE OF PACKAGE BODY:

    Error on line/pos

    -------------------- -----------------------------------------------------------------

    1453/9 PL/SQL: statement ignored

    1455/23 PL/SQL: ORA-00942: table or view does not exist

    1464/9 PL/SQL: statement ignored

    1466/23 PL/SQL: ORA-00942: table or view does not exist

    1478/9 PL/SQL: statement ignored

    1480/23 PL/SQL: ORA-00942: table or view does not exist

    1485/9 PL/SQL: statement ignored

    1487/23 PL/SQL: ORA-00942: table or view does not exist

    1492/9 PL/SQL: statement ignored

    1494/23 PL/SQL: ORA-00942: table or view does not exist

    1499/9 PL/SQL: statement ignored

    Error on line/pos

    -------------------- -----------------------------------------------------------------

    1501/23 PL/SQL: ORA-00942: table or view does not exist

    1581/4 PL/SQL: statement ignored

    1582/18-PL/SQL: ORA-00942: table or view does not exist

    1584/4 PL/SQL: statement ignored

    1585/18-PL/SQL: ORA-00942: table or view does not exist

    1600/25 PL/SQL: ORA-00942: table or view does not exist

    1600/4 PL/SQL: statement ignored

    1602/25 PL/SQL: ORA-00942: table or view does not exist

    1602/4 PL/SQL: statement ignored

    DDL IGNORE TABLE

    -----------------------------------

    FAILURE: The Table does not exist

    DDL IGNORED THE JOURNAL TABLE

    -----------------------------------

    FAILURE: The Table does not exist

    STATUS OF THE DDLAUX PACKAGE:

    Error on line/pos

    -------------------- -----------------------------------------------------------------

    No error no error

    DDLAUX STATE OF PACKAGE BODY:

    Error on line/pos

    -------------------- -----------------------------------------------------------------

    0/0 PL/SQL: analysis of completed Compilation unit

    1/21 PLS-00304: impossible to compile a body of 'DDLAUX' without sound

    specification of the

    1/21 PLS-00905: OGG object. DDLAUX is not valid

    SYS. STATUS OF THE DDLCTXINFO PACKAGE:

    Error on line/pos

    -------------------- -----------------------------------------------------------------

    No error no error

    SYS. DDLCTXINFO STATE OF PACKAGE BODY:

    Error on line/pos

    -------------------- -----------------------------------------------------------------

    No error no error

    DDL HISTORY TABLE

    -----------------------------------

    FAILURE: The Table does not exist

    DDL HISTORY TABLE (1)

    -----------------------------------

    FAILURE: The Table does not exist

    DUMP DOF TABLES

    -----------------------------------

    FAILURE: The Table does not exist

    COLUMNS OF DUMP DDL

    -----------------------------------

    FAILURE: The Table does not exist

    GROUPS OF LOG DUMP DDL

    -----------------------------------

    FAILURE: The Table does not exist

    SCORES OF DUMP DDL

    -----------------------------------

    FAILURE: The Table does not exist

    DDL DUMP KEY PRIMARIES

    -----------------------------------

    FAILURE: The Table does not exist

    SEQUENCE OF the DDL

    -----------------------------------

    FAILURE: The sequence does not exist

    GGS_TEMP_COLS

    -----------------------------------

    FAILURE: The Table does not exist

    GGS_TEMP_UK

    -----------------------------------

    FAILURE: The Table does not exist

    STATE OF THE DDL TRIGGER CODE:

    Error on line/pos

    -------------------- -----------------------------------------------------------------

    126/9 PL/SQL: statement ignored

    128/23 PL/SQL: ORA-00942: table or view does not exist

    133/21 PL/SQL: ORA-02289: sequence does not exist

    133/5 PL/SQL: statement ignored

    657/14 PLS-00905: OGG object. DDLAUX is not valid

    657/5 PL/SQL: statement ignored

    919/25 PL/SQL: ORA-00942: table or view does not exist

    919/4 PL/SQL: statement ignored

    DDL TRIGGER SYSTEM STATUS

    -----------------------------------

    Ok

    STATUS OF RACE DDL TRIGGER

    ----------------------------------------------------------------------

    ACTIVE

    OF "OGG". "" GGS_SETUP ".

    *

    ERROR on line 2:

    ORA-00942: table or view does not exist

    OF "OGG". "" GGS_SETUP ".

    *

    ERROR on line 2:

    ORA-00942: table or view does not exist

    OF "OGG". "" GGS_SETUP ".

    *

    ERROR on line 2:

    ORA-00942: table or view does not exist

    LOCATION OF THE TRACE OF DDL FILE

    ------------------------------------------------------------------------------------------------------------------------

    /Home/data/app/Oracle/diag/RDBMS/AppStore/appstore2/trace/ggs_ddl_trace.log

    Analyze the status of the installation...

    THE STATE OF REPLICATION DDL

    ------------------------------------------------------------------------------------------------------------------------

    ERRORS in the installation of software components of DDL replication (6)

    Complete script.

    I had been struggling with the same problem for 2 days. You run the script as sysdba, how do you get the error then insufficient? I did my first test GG in February. I've been on 11.2.0.3 + patch January + patch for the integrated capture. It has worked well for me. I went back to my GG test week with 11.2.0.3 + patch of July last and ran into the same problem. The solution for me was the last version of GG. See my previous post for the patch numbers.

    Post edited by: ursusca

  • How to run the cmclean in 11i

    Hello

    This is my first time to run the cmclean.sql
    based on the knowledge base of MOS
    the use is sqlplus @cmclean

    I tried in terminal mode of sqlplus
    but Im failed



    SQL > sqlplus @cmclean
    SP2-0734: order unknown beginning «sqlplus @c...» "- rest of the ignored line.
    SQL > sqlplus@cmclean
    SP2-0734: order unknown beginning "sqlplus@cm...". "- rest of line is ignored.
    SQL > sqlplus > @cmclean.sql
    SP2-0734: unknown command beginning "sqlplus > @c...» "- rest of line is ignored.
    SQL >


    Please someone who can guide me how to operate the cmclean.sql


    Thank you

    PL post Details of the operating system, database and versions EBS.

    If you are already connected to SQL * Plus, everything you need to do is

    SQL> @cmclean
    

    This assumes that the cmclean.sql file is located in the current directory, in that you are. PL see the first lines in the script of cmclean.sql itself for instructions

    HTH
    Srini

  • Please tell me exactly how to remove the AVG search function

    Please tell me exactly how to remove the AVG search function

    edited by a moderator for clarity

    You need not repeat dozens of times or use profanity to get help.

    (1) disable all non-essential or unrecognized extensions on this tab. Don't know what it does? When in doubt, turn off:

    Firefox orange (or the Tools menu) button > addons > Extensions category

    Use the links above a disabled extension to restart Firefox if some seem to.

    (2) restore your Google search engine:

    https://addons.Mozilla.org/en-us/Firefox/addon/SearchReset/

    (3) check a user.js file (before the release of Firefox, otherwise the parameters in this file can cancel your cleaning) as described in this article: How to fix preferences that will not save.

    (4) If AVG search took over your page to the new tab (Ctrl + t), which changes as follows:

    (A) in a new tab, type or paste Subject: config in the address bar and press ENTER. Click on the button promising to be careful.

    (B) in the filter box, type or paste newtab and make a pause so that the list is filtered

    (C) double-click the preference browser.newtab.url and enter the desired value for your favorite page:

    thumbnails (i) (default) Page = > subject: newtab

    (ii) blank tab = > subject: empty

    Firefox homepage integrated (iii) = > topic: welcome

    (iv) any other page = > full URL of the page

    IMPORTANT: If you have AVG software in your Windows Control Panel, you need to remove it.

  • How to use the Print Screen function?

    I've seen various descriptions of how to use the print screen function.

    It would be nice to actually tell one that works.  None have worked for me.

    [Fn] and Prt SCr does not work.

    CTRL and Prt SCr does not work.

    CTRL, Alt, and Prt SCr does not work.

    [Fn], Ctrl and Prt SCr does not work.

    If anyone knows the correct method to activate the screen capture function which would be a good thing.

    From the looks of things, HP has a big problem with this function.

    Here's a microsoft articleon the use of the screenshot function.

    This should answer your questions.

    Thanks for taking a peek.

  • Lean how to run the stop code when the highest level VI ends

    Hi people.

    I am a newbie of LV with 30 years of experience in embedded SW engineering.  I searched for how to run the stop code when a VI of highest level ends.  I found many examples, but they are horribly complicated.  A little birdie told me that such a model of simple design should not be so compilicated.

    My application is an application of high tension control to disable all HV checkpoints when the SW ends.  My VI code is running in a while loop with a stop button that leads out of the loop.  I can easily accomplish my requirement by programming with a sequence of plate that runs after the end of the main loop.  The technique of flat sequence does not work when the user clicks the Cancel button in the toolbar of façade, more than that market when the user clicks the close button of the application (X button) when you run the exe application.

    Can someone tell me please a simple technique, the code example that can show me a lean and elegant way to accomplish my task?  It doesn't have to be an obvious solution (for example a stop induced watchdog seems simple enough).

    Thank you - John Speth

    1. place this code in a VI:

    (also attached)

    Calling code in your VI of highest level like this:

  • How to run the VI developed in labVIEW 2011 in its previous versions

    Hi all

    I am currently using LabVIEW 2011 in my PC at home.

    But, all my school's computers are installed with LabVIEW 2010 and 2010 SP1.

    How to run the VI developed in LabVIEW 2011 in its previous versions?

    Is there any conveter why?

    Concerning

    Prasanth T

    Open the VI in LabVIEW 2011 and use the file menu option, save for the previous Version.

  • How to run the Extendscript .bat file?

    I have a file with some instructions .bat and I want that it runs from Extendscript.

    How to run the Extendscript .bat file?

    I tried execute(); order and it seems that .bat ran but no result, but when I double click on the .bat file all worksout very well.

    How used runtime.exec () extend the script?

    Can I communicate with Java JDK thru ExtendScript and run commands such as runtime.exec ()?

    can someone please?

    You can do it like this:

    var batFile = new File("C:\\path\\to\\my\\batfile.bat");
    batFile.execute();
    

    Note that this will only work if your system is configured in such a way that by double-clicking the .bat file runs it in reality.

    You can also use

    system.callSystem()
    

    but note that this is only available in AE.

  • What is tdrc.tdrcfacade and how to run the installation wizard?

    What is tdrc.tdrcfacade and how to run the installation wizard?  My desktop creative cloud application does not open properly... it is just a blank window.

    Much obliged,

    Angiecrichards@gmail.com

    ! !

    Are Angie, you a blank white screen? What version of OS are you using?

    Here's what you can try:

    1. Blank white screen. Sign in | Creative cloud Packer
    2. New application Cloud Creative unusable: it is empty!
    3. Creative cloud Packager white screen after the Adobe ID Login
    4. Re: screen creative black cloud

    Waiting for your response.

  • I downloaded items on my mac and it installed. How to run the program?

    I downloaded items on my mac and it installed. How to run the program.

    Hi David,

    You can simply click on the application to launch from the folder "Applications".

Maybe you are looking for

  • How to print the group e-mail addresses. When I hit the print command Epson printer page comes

    How to print a list of e-mail addresses per name and group. ? If I use the command touch, print my printer Epson white arrives

  • questions of text and call iPhone 4

    My iPhone 8G 4 has had many problems with the text and calls. For FaceTime calls, when someone calls me or I call them, it comes up with an error message about an incomplete phone number. For text messages, I don't get any messages, but those apps. (

  • Delay between two operations in the same visa write buffer

    Hello I'm new to labview and have tried to find a way to introduce some delay in milliseconds between two operations in the same buffer of writing a block of single entry visa. Here's what I want it to be like: CURR: LEV 1.5 wait about 50 ms CURR: LE

  • Remote panels and LabVIEW 2009

    Hello I updated my application PXI time real LabVIEW 2009 (Pro) and I'm now trying to connect with planels remote.  I can only have a remote panel open.  The other gives me the "connecting remote panels exceeds maximum number of licenses" the problem

  • Post installation of the Vista SP2, it does not detect my DVD drive.

    Recently in the month of April 10, I had my laptop (Compaq Presario V6608AU) repaired because it doesn't detect DVD drive. The techincian had reinstalled vista on it and it was my regular vista. As my laptop has automatic updates enabled it installed