Procedure of ADF param value

Dear all,

I use jdev 11.1.1.5.0.

My scenario is,

I have a procedure with 3 input parameters and output parameters.

I write a method for this procedure in the Module of the Application and call Bindings.and Pass value for the input parameters.

At the bean My how to get the value of the output parameter. Because I have to do a validation based on the value of the parameter.

How to get there. someone guide me.

Thank you

Hello

OPER1. GetResult(); to get the value back if you return the value of the FindExcDays method

Thank you

Tags: Java

Similar Questions

  • Can be passed to the formula of the procedure/function the column value?

    Cf_value is back after some calculation using the main request.

    Can be passed directly the value of column of formulas of procedure without assinged to placeorder?
    as below...


    f_convert(:cf_value,new_value);

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

    My procedure is...


    PROCEDURE f_convert (val1 val2 in number, number) IS

    BEGIN

    val2: = val1 * 100;

    END;


    If anyone knows pls answer me...

    In fact, if there is that other calculations he (in Proceudre)

    Can I used is like below?
    ---
    PROCEDURE f_convert (val1 val2 in number, number) IS

    BEGIN

    val2: = val1 * 100;

    return (val2);
    END;
    ----

    A procedure cannot return a value, the return in my previous post clause was part of the function for formula column.
    Let's say you have a column of forms of so-called CF_2, then the function because it will be like:

    function cf_2formula return number
    is
     val1 number;
     val2 number;
    begin
    
     val2 := :cf_1 * 100; -- or val2 := val1 * 100 --parameters not allowed in formula column function
    
     -- All the other code that you need inclusive of calling function, procedure as in any PL/SQL block can be placed 
    
     return (val2);
    
    end;
    

    Any calculation can be used in the service of the formula column

  • Put the param-value property of web.xml relative instead absolute

    Hello

    In my web.xml file, I value < param > absolute direction pointing to the properties file. But this method has a problem when I run the application in the other computer, because I have to change the direction to run the application again. For this reason I want to put the direction bit up to the application, but I don't know how to do it.

    Currently the strutcture web.xml is the following:

    ..............
    < init-param >
    < param-name >
    Chart.Properties < / param-name >
    < param-value >
    E:\\Aplication\\web\\WEB-INF\\chart. Properties
    < / param-value >
    < / init-param >

    ..................

    I would be very grateful if someone could help me solve this problem.

    Concerning

    There are always alternatives :-)
    In this case, the alternative solution would be to use the ServletContext getRealPath() or getResourceAsStream() method.
    In this way, you can load a resource from your web application, regardless of where it is deployed.
    It's practically the same solution, except for the resource specified from your web application, rather than the path of the classes.

    It is a perfectly acceptable method of Classpath and alternative might be better in terms of use of the servlet API rather than the standard java classpath.

    see you soon,
    evnafets

  • How to call a stored procedure in ADF

    How to call a stored procedure in the ADF (Jdev 11.1.1.6)?

    Code sample stored procedure:

    CREATE or REPLACE PROCEDURE SP_HELLOWORLD

    (

    NAME IN VARCHAR2

    OUT VARCHAR2 DESIRES

    ) AS

    BEGIN

    WISHES: = 'Hello'. name | ', Welcome to MS.';

    END SP_HELLOWORLD;

    Your Code of ADF is:

    try {}

    System.out.println ("* beginning of the code *");

    String sql = "start SP_HELLOWORLD(:NAME,:WISHES); end; ";

    CallableStatement st = getDBTransaction () .createCallableStatement (sql, getDBTransaction(). DEFAULT VALUE);

    st.setObject ("NAME", "ABC"); Replace with required param

    st.registerOutParameter ("WISHES", Types.VARCHAR); import java.sql.Types;

    St.Execute ();

    System.out.println ("the output of the function DB is:" + st.getObject ("WISHES"));

    System.out.println ("* end of code *");

    } catch (Exception e) {e.printStackTrace () ;}

  • Hence is default taken components ADF property values?

    Hello


    The properties of the components of the ADF takes a value by default when they are not specified, for example

    AF:inputText.secret = < default > false


    I have two ADF projects where these default properties value changes depending on the version of Jdev, I started the development, for example:

    AF:table.autoHeightRows = <>0 in default jdev12

    AF:table.autoHeightRows = < default > - 1 to jdev11

    AF:panelStretchLayout.dimensionsFrom = < default > auto jdev12

    AF:panelStretchLayout.dimensionsFrom = < default > parent jdev11

    I would like to know what file or library are these default values.

    Thanks in advance,
    Jose.

    Hi Jeremy,.

    In fact, the default value of the property that made me mad was 'autoHeightRows', so I read it in the doc:

    autoHeightRows int Yes Default value:-1

    The number of lines used to size the height of the component.

    If the oracle.adf.view.rich.geometry.DEFAULT_DIMENSIONS context - param is set to "automatic" in the Web.XML of the project, the default value for this attribute will be 0. Otherwise, the default value will be-1 (no automatic resizing for any number of lines).

    So my question is resolved, thanks for the help!

  • How can get Oracle ADF params by previous taskflow programming

    Hello world.

    How can he get params by taskflow program previous

    My scenario: have two stubborn taskflows A and B

    in some classes of java has, I have re - direct to B like

    String thebishop = "B-flow index";

    String tfDoc = "/WEB-INF/B-flow-index.xml";

    Map < String, Object > params = new HashMap < String, Object > ();

    params.put ("name", "first stream");

    TaskFlowId taskFlowId = new TaskFlowId (tfDoc, thebishop);

    String url = ControllerContext.getInstance () .getTaskFlowURL (taskFlowId, false, params);

    FacesContext fctx = FacesContext.getCurrentInstance ();

    ExternalContext ectx = fctx.getExternalContext ();

    try {}

    ectx. Redirect (URL);

    } catch (IOException e) {}

    }

    and in the job stream B how do I value of params "name"(for programming in the java class)

    Thank you very much for suport

    Hello

    You can create the same name parameter in taskflow B and pass it to A taskflow. This is the cleanest option in my opinion.

    Concerning

  • How to get this working procedure to analyze the value of the list?

    I have the following data in the table t1

    ID DRUG_ID


    DB00523 564; DB00926; DB03873

    DB00893 566; DB01294; DB05260

    the desired output is as the following table t2

    ID DRUGID
    DB00926 564
    DB03873 564
    566 DB01294
    566 DB05260

    I am trying to write a stored procedure to achieve the goal, since the actual list is very long. but it returns the error on the select part of the lower.

    Any suggestion will be appreciated.

    CREATE OR REPLACE PROCEDURE checklist IS

    number of Oneid;
    TYPE BBType IS REF CURSOR;
    BBType BB;
    onerecord Q1% ROWTYPE;


    BEGIN

    For oneid in (select id from t1) LOOP

    FOR I IN 1.2 LOOP
    Open BB for ' select id, substr (drug_id, instr(drug_id,';',1,i) + 1, instr(drug_id,';',1,i+1)-instr(drug_id,';',1,i)-1) from t1
    loop
    Retrieves BB in onerecord;
    INSERT INTO t2 (ID, drugID) VALUES (onerecord.id, onerecord.drugid);
    end loop;
    close the BB;

    ENDLOOP;

    ENDLOOP;

    END;

    Frank,

    Thank you very much for your help. It works very well!

    Jane.

  • Sort by select a choice column of Table ADF display value

    Hi team,

    We use an ADF with EJB application.

    I have an ADF table, which has a choice of a select into it. (The elements of a list of Select choices are filled with a java bean).

    Presetnly, when we perform sorting on this column of the SOC, the table is getting sorted based SOC value not on the label.

    How to sort this column based on the Lable SOC filed.

    Please help us.

    Thank you

    Keshav Ch

    Hi Frank,.

    I took a transitional column in the entity and populated this column with the label LOV value.

    In the file ADF added this column to the table and it is rendered false.

    Set the sortable property of the column to the new column trasient lov.

    Now the sorting will work with the label filed (transitional column)

    Thank you

    Keshav ch

  • Error procedure: digital error or value:

    I have the following procedure where I am updating duplicate rows so that all the lines are unique in my table:



    create or replace procedure p1 is

    ccust. XXWFS_CUSTOMER_EXT Type of CUST_EXT_ID %;
    cparty. XXWFS_CUSTOMER_EXT Type of PARTY_ID %;
    cursor c1 is select CUST_EXT_ID, PARTY_ID from XXWFS_CUSTOMER_EXT t2 where t2.rowid > (SELECT min (t1.rowid)
    OF XXWFS_CUSTOMER_EXT t1
    WHERE t1. PARTY_ID = t2. PARTY_ID) for the update.
    Start
    Open c1;
    loop
    Fetch c1 into ccust, cparty;
    OUTPUT WHEN c1% notfound;
    Update XXWFS_CUSTOMER_EXT set party_id = 1 location being the c1;
    dbms_output.put_line ('cust id is' + ccust);
    end loop;
    Close c1;
    commit;
    EXCEPTION
    WHILE OTHERS THEN
    raise_application_error (-20001,' an error has occurred - ' |) SQLCODE |' - ERROR - ' | SQLERRM);
    END;





    I get the following error when I run the procedure:


    Error report:
    ORA-20001: an error has occurred - 6502 - ERROR - ORA-06502: PL/SQL: digital or value error: character of number conversion error
    ORA-06512: PT. "' P1 ', line 20
    ORA-06512: at line 1

    two of my collars are numbers... yet I do not understand why this error is coming

    CUST_EXT_ID NOT NULL NUMBER
    NUMBER OF PARTY_ID


    Could someone tell me if I'm doing something wrong in this procedure

    Thank you
  • Procedure does not return values

    Hello

    I have a stored procedure that has varchar2 as IN and OUT parameters sys_recursor.
    CREATE OR REPLACE PROCEDURE check_values (
         my_values            IN          emp.dept_no%TYPE,
         p_cursor        OUT sys_refcursor
    )
    AS
         quoteValues     VARCHAR2 (256);
    BEGIN
         SELECT     '''' || REPLACE(my_values, ',', ''',''') || ''''
           INTO     quoteValues
           FROM     DUAL;
    
         OPEN p_cursor  FOR
              SELECT          emp_no,
                             emp_name,
                FROM     emp
               WHERE     dept_no IN (quoteValues);
    END check_values;
    /
    The problem, I do face is in where condition, if I give quoteValues it don't get me all the records when I run the sqlplus procedure, but if I give
    my_values he get me folders. I get IN settings such as the 9856,9712,8723, so first I put single quotes around the emp_no and pass to the where condition.

    How can I solve this problem?

    Thank you

    user20090209 wrote:
    So why then is not running? If I hard code the values above in where condition it runs very well.

    Watch your WHERE clause:

    WHERE dept_no IN (quoteValues);

    Expressions how many there are in the list? A straight, single. So regardless of the value of quoteValues, this INTEGER value is compared to dept_no. What you're trying to do can be done through dynamic SQL LIKE operator or collection.

    Dynamic SQL:

    CREATE OR REPLACE PROCEDURE check_values (
         my_values            IN          emp.dept_no%TYPE,
         p_cursor        OUT sys_refcursor
    )
    AS
         quoteValues     VARCHAR2 (256);
    BEGIN
         OPEN p_cursor  FOR
              'SELECT          emp_no,
                             emp_name,
                FROM     emp
               WHERE     dept_no IN (' || my_values || ')';
    END check_values;
    / 
    

    AS the operator:

    CREATE OR REPLACE PROCEDURE check_values (
         my_values            IN          emp.dept_no%TYPE,
         p_cursor        OUT sys_refcursor
    )
    AS
         quoteValues     VARCHAR2 (256);
    BEGIN
         OPEN p_cursor  FOR
              SELECT          emp_no,
                             emp_name,
                FROM     emp
               WHERE     ',' || my_values || ',' LIKE '%,' || dept_no || ',%';
    END check_values;
    / 
    

    Collection:

    CREATE OR REPLACE PROCEDURE check_values (
         my_values            IN          sys.OdciVarchar2List,
         p_cursor        OUT sys_refcursor
    )
    AS
         quoteValues     VARCHAR2 (256);
    BEGIN
         OPEN p_cursor  FOR
              SELECT          emp_no,
                             emp_name,
                FROM     emp
               WHERE     dept_no IN (SELECT * FROM TABLE(my_values));
    END check_values;
    / 
    

    and pass my_values as a sys. OdciVarchar2List ('2345 ', '1245','9076 ').

    SY.

  • View object - Exec with Params such as option buttons and not ADF param form?

    Hi all

    I'm looking to create a form in which I use 'Exec with Params' operation of my View object.
    I need the settings are radio buttons so that the user can enter only a single parameter. For now, drag / drop the exec with params create a form of parameter ADF. Any ideas how I can improve it is radio buttons?
    Any suggestion will be highly appreciated.

    Thank you
    Saida.

    You can convert the inputText with another type of entry.
    See for example: http://blogs.oracle.com/shay/entry/adding_an_lov_to_a_query_param

  • How to reset the param value

    Hello

    In MY search page, I'll put a value of param (FormValue) when create button is pressed and based on that value I wrote code in my application to process home page.


    In my main page, I have the update button when I press this button Iam trying to reset the value of param (FormValue) to null...

    I wrote the code so that when below Update button and Iam trying to SOP the value, but it's not methoeds.



    in my searchpageCO

    HashMap params = new HashMap();
    params.put ("FormValue", "Y");

    In my CreatePageCO:

    HashMap params = new HashMap();
    params.put ("FormValue", null);

    When I tried to SOP even after the null. his rest, printing the form "Y".


    can someone plz help me im trying the approach is correct or not?

    Thank you
    Mahesh

    Try like this

    if("Y".equals(fromval1))
    {
    }
    

    Thank you
    AJ

  • What syntax used in the call to a procedure passed as param in a procedure

    I have a procedure, and in which I want to call another procedure, whose name is passed as param procedure. How can I do this? Thank you.

    For example

    create or replace procedure CallProcedure (procName varchar2)

    Begin

    Run the procedure that has name "procName".

    End;

    Start
    Execute immediate procName;
    end;

    Assuming that there are no parameters involved.

  • How to read an ADF ApplicationModule Cookie values?

    Hello

    How to read an ADF ApplicationModule Cookie values?

    My ADF Application uses custom Cookies, I created these cookies following this post: https://community.Oracle.com/thread/3823211

    I need to read the Cookie of the ADF ApplicationModule values.

    Could you help me, please?

    Best regards

    Jery

    User, tell us your version of Jdev, please!

    You should not read the model layer cookie values. You can read them from the view controller and pass them on to the model layer, the module of your application.

    To do this, you define a method in the application module that you call from a bean where read you the cookie.

    Timo

  • Not able to manage the value 'Table Type' in my procedure, humble need help here

    Hi all

    I am facing a problem with below pl/sql block. The time I run it it works fine, but when I run the procedure only from the exact values (hardcoded), it throws error as below.

    [Error] Execution (38: 1): ORA-06550: line 2, column 1:

    PLS-00306: wrong number or types of arguments in the call to 'CREATE_ABNORMAL_BY_TRADER '.

    ORA-06550: line 2, column 1:

    PL/SQL: Statement ignored

    What I understand problem is, I use a Type of table herewhich works very well with my Pl/Sql block, but do not work when I run the same procedure of the value hard-coded.

    Please guide me how to handle this situation.

    Pl/Sql block [works absolutely well]:

    Declare

    lv_eff_from_dt DATE;
    lv_eff_to_date DATE;
    v_severity_codes_wl param_tbl: = param_tbl();
    lv_algo_id_wl sagedbo.alerts.algo_id%TYPE;

    Begin

    lv_eff_from_dt: = sage_utility.get_transaction_date('EFF_FROM_DATE');  -' 05-Aug-2013. '
    lv_eff_to_date: = sage_utility.get_transaction_date('EFF_TO_DATE');       -' 04-sep-2013. '

    lv_algo_id_wl: = sage_utility.get_code_values('ALERT_MODELS','GRAY_LIST');  -GLABNORMAL

    v_severity_codes_wl: = sage_utility.get_multi_parameter_value(1,'SEVERITY_CODE_WL'); -4.5

    SONARDBO.sage_generate_alert.create_abnormal_by_trader (lv_algo_id_wl, v_severity_codes_wl, lv_eff_from_dt, lv_eff_to_date, 'US');

    End;

    Pl/Sql block [does not] (by the way the same values but hard)

    Begin

    SONARDBO.sage_generate_alert.create_abnormal_by_trader ('GLABNORMAL', '4', 5, 5 August 2013 ', ' 04-Sep-2013', 'US');

    End;

    Error PLS-00306: wrong number or types of arguments in the call to 'CREATE_ABNORMAL_BY_TRADER '.

    I'm sorry that my question is not so generic, you cannot run on your computer. How should just guide me with the concept, I treat the values in table hardcodedly? (For testing of use)

    Thank you very much

    If your passage of type table, then you will need to run as below

    Begin

    SONARDBO.sage_generate_alert.create_abnormal_by_trader ("GLABNORMAL", param_tbl (' 4 ', ' 5'), August 5, 2013 ', ' 04-Sep-2013', 'US');

    End

    Means that you must call with the table type ("' hard coded values"). Here is the simple test. Take a look at this

    SQL > CREATE or REPLACE the TYPE nt_tab IS TABLE OF VARCHAR2 (50);

    2.

    Type of creation.

    SQL > CREATE OR REPLACE PROCEDURE test_proc (p_nttab nt_tab)

    2 AS

    3 v_nttab nt_tab: = p_nttab;

    4 BEGIN

    5 FOR me in 1.v_nttab. COUNTY

    6 LOOP

    7 DBMS_OUTPUT. Put_line (v_nttab (i));

    8 END OF LOOP;

    9 END;

    10.

    Created procedure.

    -Perform the procedure with only one value of type table

    SQL > EXEC test_proc (nt_tab ('KING'));

    KING

    PL/SQL procedure successfully completed.

    -Run procedure with the multi-value table type

    SQL > EXEC test_proc (nt_tab ('KING', 'AAAA', 'BBBB'));

    KING

    ABDELKADER

    BENAMER

    PL/SQL procedure successfully completed.

    Post edited by: 000000

    Post edited by: 000000

Maybe you are looking for

  • Integration of the Bulletin Board and microsoft surface?

    Toshiba think integration Bulletin Board with microsoft surface?It would be very cool!

  • DASYLab w / support NOR-DAQmx NI 9227, NI 9229 &amp; cDAQ 9174

    I am trying to use DASYLab 11 w / NOR-DAQmx 8.5 to my configuration material of NI 9227, NOR 9229 & cDAQ-9174. After decommissioning of my PC Win7 for XP that takes in charge OR-DAQmx 8.5 (the OR-DAQmx last, supported by 11 DASYLab), I discovered tha

  • Save the high sampling rate data

    Hello! I use NI PXI-4462. (204.8kS, input analog 4 / s sampling frequency) I want to collect data from "load" (channel 1) and "acceleration sensor" (2nd, 3rd, 4th channel). I also want to save data to a text file. So I do a front pannel and block dia

  • Phone goes into a deep sleep.

    Hi guys,. I posted on this topic in another forum a few days back, but no luck with a solution. Last Friday, I had my M4 UK aqua and every morning, except one, the phone not to wake up with the power button, I have to hold the power/volume to initial

  • Realign frequent

    How can I stop my computer to realign whenever I turn it on. I find it extremely waste of ink and paper.