Pass parameters to sql store proc?

Is it possible to pass parameters from Crystal Report to sql store proc? I know it will prompt for paramters if the report is built based on a parameterized store proc. I am NOT talking about these parameters. I still want user to be able to select parameter values from dropdowns and use them as the procedure parameters.
Reason for my question is I don't want the store proc to create a table having all records then crystal makes report by filtering. The all-record table could grow huge very quickly as more data is put in.
Thank you very much.

Hi Peter
Follow these steps:
A. Following steps applies to the main procedure:
1. Create a main report which accepts the same fields as you want to pass to the stored procedure. (Note that this main report is not based off the procedure that you want to execute. Just get the data that you want to pass to the procedure. We will call the procedure in the subreport.)
2. Now create the no. of dynamic parameters that you want your user to choose the data from in the main report. (Lets assume that the user will select a single value.)
B. Following section applies to the subreport:
1. Add a subreport to the main report. This subreport will be based off your procedure. This will automatically add up the stored procedure parameters to the subreport.
2. Take care that in the procedure you define the datatype of the parameters same as the field's data type that you want to pass to the procedure. This will show up your stored procedure parameters while subreport linking.
3. Now link the main report to the subreport with each parameter. Uncheck the "Select data based on" dialog box while linking each parameter.
Hope this post solves your problem. i am sorry for sounding descriptive.
Regards
Nikhil Sabnis

Similar Messages

  • How to pass parameters to sql agent job run configured ssis package

    Hi all,
    I have a big problem at my small project.
    I build my SSIS package that get its variables values from a configuration file..
    and when i build a SQL agent job to run this package in a schedule i set the values of variables in it .. but in run-time the package still get its parameters from the configuration file !??
    any help please ?

    >SQL agent job to run this package in a schedule i set the values of variables in it
    One way, setup a configuration table for the package. Let the package read the values for the variables from there.
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Passing parameters to SQL Script

    I'm trying to pass a parameter to SQL Script like
    sqlplus hr/my_password @myscript.sql King
    but everytime sqlplus is started the system is asking me for this parameter.
    I would like too use this principe in combination with forms. (host user/passwrd@test @test.sql King)
    kind regards,
    Menk

    Your variable name in SQL script must be called &1.
    Eg. SELECT value FROM table WHERE name = '&1.' ;
    So, if you have more than one argument, the followed must be &2. &3. ...
    If you use another name, Oracle always requests the value.
    I hope help you

  • Passing Parameters to SQL Query and Displaying Result

    The user enters a serial number in a text box and then pushes a button to get info about the serial number. I do this with two regions. The first region has the text box and the button. The second region is a Report type region and contains the following SQL:
    select case
    when "WARRANTYSTATUS"."OUTOFWARRANTYDATE" >= sysdate then
    'Serial Number '||"WARRANTYSTATUS"."SERIALNUMBER"||' is in warranty.'
    else
    'Serial Number '||"WARRANTYSTATUS"."SERIALNUMBER"||' is out of warranty.'
    end as "The result is:"
    from "WARRANTYSTATUS"
    where "WARRANTYSTATUS"."SERIALNUMBER" in (:P1_SERIALNUMBER)
    For a single serial number of the form CU5-0799 every thing works. I am a little suprised this works because the SERIALNUMBER in the WARRANTYSTATUS table is of type varchar2 which means the serial number in the where clause must be surrounded by single quoties. Not sure where the single quoties are being added.
    However, what I like to do is to enter more that one serial number, seperated by commas, in the same text box, and then the query return a result for each serial number. What I would like to enter is:
    CU5-0799, CU5-07132, CU5-89345
    The problem is this string of three serial numbers will needs to be have single quotes around each serial number at the level of the sql statement. So the question is how do I make this work?? Thanks for the help in advance.

    Bob,
    If you would change your OTN handle to something more mnemonically friendly, that would help us. Thanks.
    This topic is addressed fully, with various techniques described, here: Re: Search on a typed in list of values .
    I am a little suprised this works because the SERIALNUMBER in the WARRANTYSTATUS table is of type varchar2 which means the serial number in the where clause must be surrounded by single quoties.
    Not true. Quotes are used for literals, not bind variables.
    Scott

  • T-sql store PROC explanation

    create table #chartData(
    ChgText [varchar](500) NOT NULL,
    ChgCount [int] NULL,
    [Sort] [int] NOT NULL,
    [PartcTot] [int] NULL,
    PercentageOfTotal decimal(6,3)
    declare @partcTot int;
    declare @SQLString nvarchar(4000), @ParamDefinition nvarchar(500);
    declare @NewLine char(2)
    select @partcTot = [frdmrpt].[fn_pha_total_participants](default);
    set @NewLine=char(13)+char(10)
    set @SQLString =
    N'insert into #chartData (ChgText,ChgCount,Sort,PartcTot,PercentageOfTotal)' + @NewLine
    set @SQLString = @SQLString +
    N'select t.ChgText, c.TypeCount, t.Sort, ' + cast(@partcTot as nvarchar) + N' as PartcTot, (frdmrpt.fn_pha_percent(c.TypeCount,'
    set @SQLString = @SQLString +
    cast(@partcTot as nvarchar) + N')/100.0) as PercentageOfTotal' + @NewLine
    set @SQLString = @SQLString +
    N'from [frdmrpt].[wt_rpt_pha_pw_Rdy2ChgLevels] t inner join (' + @NewLine
    set @SQLString = @SQLString +
    N' select d.' + @HRADetail_Column + N' as ChgType, COUNT(*) as TypeCount' + @NewLine
    set @SQLString = @SQLString +
    N' from [frdmrpt].[wt_rpt_pha_pw_Member] m join [frdmrpt].[wt_rpt_pha_pw_HRADetail2] d on d.UserID = m.UserID' + @NewLine
    set @SQLString = @SQLString +
    N' group by d.' + @HRADetail_Column + @NewLine
    set @SQLString = @SQLString +
    N') c on t.ChgType = lower(c.ChgType) order by t.Sort' + @NewLine
    --print @SQLString;
    exec sp_executesql @SQLString;
    select ChgText,ChgCount,Sort,PartcTot,PercentageOfTotal from #chartData
    end
    GO
    Can someone explain the code to me using comment especially what is going on in the
    set @SQLString =

    -- @partcTot value will be computed by function - [fn_pha_total_participants]
    SELECT @partcTot = [frdmrpt].[fn_pha_total_participants](DEFAULT);
    --Below statments will form a SQL INSERT statement into @SQLString
    -- @NewLine variable will act as new line/pressing Enter key. That is why @NewLine is used at the end of line in below statements
    SET @NewLine = CHAR(13) + CHAR(10)
    -- Below will form INSERT INTO Table(<<ColumnList>>) statement
    SET @SQLString = N'insert into #chartData (ChgText,ChgCount,Sort,PartcTot,PercentageOfTotal)' + @NewLine
    -- PercentageOfTotal column is calculated here
    SET @SQLString = @SQLString + N'select t.ChgText, c.TypeCount, t.Sort, ' + cast(@partcTot AS NVARCHAR) + N' as PartcTot, (frdmrpt.fn_pha_percent(c.TypeCount,'
    SET @SQLString = @SQLString + cast(@partcTot AS NVARCHAR) + N')/100.0) as PercentageOfTotal' + @NewLine
    -- wt_rpt_pha_pw_Rdy2ChgLevels table has inner join with table - (wt_rpt_pha_pw_Member which has self join again)
    SET @SQLString = @SQLString + N'from [frdmrpt].[wt_rpt_pha_pw_Rdy2ChgLevels] t inner join (' + @NewLine
    SET @SQLString = @SQLString + N' select d.' + @HRADetail_Column + N' as ChgType, COUNT(*) as TypeCount' + @NewLine
    SET @SQLString = @SQLString + N' from [frdmrpt].[wt_rpt_pha_pw_Member] m join [frdmrpt].[wt_rpt_pha_pw_Member] d on d.UserID = m.UserID' + @NewLine
    SET @SQLString = @SQLString + N' group by d.' + @HRADetail_Column + @NewLine
    SET @SQLString = @SQLString + N') c on t.ChgType = lower(c.ChgType) order by t.Sort' + @NewLine
    -- Uncomment below print statement to see what is your final SQL statement formed
    -- print @SQLString;
    -- Above SQLString is executed and data is inserted into #chartData
    EXEC sp_executesql @SQLString;
    -- At the end your SP selects the data from #chartData
    SELECT ChgText
    , ChgCount
    , Sort
    , PartcTot
    , PercentageOfTotal
    FROM #chartData
    GO
    -- You also need to declare @HRADetail_Column variable
    -Vaibhav Chaudhari

  • To convert the "IBM DB2 Store Procs written in C" to Oracle PL-SQL

    Hi, Is it possible to convert the "IBM DB2 Store Procs written in C" to Oracle PL-SQL. If you have any info, PL do let me know. Thanks in advance.
    EG :
    /* SMG Stored Procedures */
    /* DB2 Stored Procedure: OrganisationExists */
    /* Linkage: SIMPLE (no NULLs permitted) */
    /* Load module name: SMGEC00 */
    /* Purpose: DELETE FROM SSE_LOOKUP_MAP */
    /* to run. */
    /* Parameters: argvÝ1¨ short - return error code - OUT */
    /* argvÝ2¨ char - return error message - OUT */
    /* argvÝ3¨ char - BLEID - IN */
    /* Reason for edit Date Who */
    /* Initial version 09/04/03 Arockia */
    #pragma runopts(plist(os))
    #include <stdlib.h>
    #include <string.h>
    void main (int argc, char *argvݨ)                                             
    EXEC SQL INCLUDE SQLCA;
    EXEC SQL BEGIN DECLARE SECTION;
    char bleid??(12??);
    EXEC SQL END DECLARE SECTION;
    /* Set defaults for error code (argvÝ1¨) and error message (argvÝ2¨) */
    strcpy(argv??(2??)," ");
    *(int *)argv??(1??) = 0;
    strcpy(bleid,argv??(3??));
    EXEC SQL
    DELETE FROM SSE_LOOKUP_MAP
    WHERE BLEID = :bleid;
    /* Set error code to record status of last SQL command */
    *(int *)argv??(1??) = SQLCODE;
    return;

    For this program, you could do some thing like:
    SQL> CREATE TABLE sse_lookup_map(BLEID varchar2(10));
    Table created.
    SQL> CREATE or replace PROCEDURE test(p_bleid_in IN varchar2)
      2  AS
      3  BEGIN
      4  DELETE FROM sse_lookup_map
      5  WHERE BLEID = p_bleid_in;
      6  END;
      7  /
    Procedure created.
    SQL> ed
    Wrote file afiedt.buf
      1* INSERT INTO sse_lookup_map values('test1')
    SQL> /
    1 row created.
    SQL> ed
    Wrote file afiedt.buf
      1* INSERT INTO sse_lookup_map values('test2')
    SQL> /
    1 row created.
    SQL> SELECT * FROM sse_lookup_map;
    BLEID
    test1
    test2
    2 rows selected.
    SQL> EXEC test('test1')
    PL/SQL procedure successfully completed.
    SQL>  SELECT * FROM sse_lookup_map;
    BLEID
    test2
    1 row selected.
    SQL>

  • How to pass XMLType as parameters to Java stored procs ?

    How to pass XMLType as parameters to Java stored procs ?
    ORA-00932: inconsistent datatypes: expected an IN argument at position 1 that is an instance of an Oracle type convertible to an instance of a user defined Java class got an Oracle type that could not be converted to a java class
    Java stored proc -->
    CREATE or replace FUNCTION testJavaStoredProcMerge( entity xmltype,event xmltype ) RETURN VARCHAR2 AS LANGUAGE JAVA
    NAME 'XDBMergeOp.merge(org.w3c.dom.Document,org.w3c.dom.Document) return java.lang.String';
    PL/SQL -->
    declare
    theQuote VARCHAR2(50);
    entity xmltype;
    event xmltype;
    begin
    entity := xmltype('<Quote><Fields><Field1>f1</Field1></Fields></Quote>');
    event := xmltype('<Quote><Fields><Field2>f2</Field2></Fields></Quote>');
    theQuote := testJavaStoredProcMerge(entity,event);
    dbms_output.put_line(theQuote);
    end;
    Java class -->
    public class XDBMergeOp {
    public static String merge(Document entity, Document event) throws Exception {
    return ...
    Thanks in advance.

    I think you'll need to use XMLType and then extract the DOM inside java..
    create or replace package SAXLOADER
    as
      procedure LOAD(P_PARAMETERS XMLTYPE, P_DATASOURCE BFILE);
    end;
    create or replace package body SAXLOADER
    as
    procedure LOAD(P_PARAMETERS XMLTYPE, P_DATASOURCE BFILE)
    AS
    LANGUAGE JAVA
    NAME 'com.oracle.st.xmldb.pm.saxLoader.SaxProcessor.saxLoader ( oracle.xdb.XMLType, oracle.sql.BFILE)';
    end;
      public static void saxLoader(XMLType parameterSettings, BFILE dataSource)
      throws Exception {
        Document parameters = parameterSettings.getDocument();
        SaxProcessor app = new SaxProcessor(parameters);
        app.processXMLFile(dataSource);
      Edited by: mdrake on Apr 6, 2009 11:28 AM

  • Passing parameters between portlets (PL/SQL PDK)

    I'm new to the PDK, so forgive me if this is a dumb question. I need to develop a portal page containing a single search portlet, and then many other associated portlets which bring back various bits of data based on the result of the search.
    Is it possible to drive the content of other portlets on the same page by passing values from one to another and refreshing the whole page?
    null

    Neil,
    You can definitely pass parameters from one portlet to another in PL/SQL and we actually have a sample that you can take a look at. In the PDK, download the Parameter passing and CSS Example Provider sample. http://technet.oracle.com/products/iportal/files/pdkjan/index.html
    Click on PL/SQL
    One of the portlets demonstrates how to pass parameters to one portlet or all portlets on a page.
    Hope this helps,
    Sue

  • Passing parameters to PL/SQL table types

    Hi Everybody,
    I have one question about passing PL/SQL tables types and tabs as IN parameter in procedure.I am working in 11.2.0.2.0 environment. I am stuck on how to pass those values to procedure.Please find below more details:
    Table 1:
    CREATE TABLE ITEMS
    ITEM_ID VARCHAR2(40 BYTE) NOT NULL,
    ITEM_NAME VARCHAR2(40 BYTE),
    SERIAL NUMBER(2),
    ADDED_ON DATE);
    Table 2:
    CREATE TABLE ITEM_ACTIVITY_INFO
    ITEM_ID VARCHAR2(40 BYTE) NOT NULL,
    ACCOUNT_TYPE VARCHAR2(1 BYTE),
    ID_NUMBER NUMBER(3),
    ACTIVATION_DATE DATE);
    Table 3:
    CREATE TABLE ITEM_GROUP
    GROUP_ID NUMBER(2) NOT NULL,
    ITEM_ID VARCHAR2(40 BYTE),
    GROUP_TYPE VARCHAR2(20 BYTE),
    GROUP_DATE DATE);
    Table 4:
    CREATE TABLE ITEM_ADDRESS
    GROUP_ID NUMBER(2) NOT NULL,
    NAME VARCHAR2(60 BYTE),
    ADDRESS VARCHAR2(100));
    Following types are created:
    CREATE OR REPLACE TYPE ITEMS_TYPE AS OBJECT
    ITEM_ID VARCHAR2(40 BYTE),
    ITEM_NAME VARCHAR2(40 BYTE),
    SERIAL NUMBER(2),
    ADDED_ON DATE);
    CREATE OR REPLACE TYPE ITEM_ACTIVITY_TYPE AS OBJECT
    ITEM_ID VARCHAR2(40 BYTE),
    ACCOUNT_TYPE VARCHAR2(1 BYTE),
    ID_NUMBER NUMBER(3),
    ACTIVATION_DATE DATE);
    CREATE OR REPLACE TYPE ITEM_GROUP_COMP_TYPE AS OBJECT
    GROUP_ID NUMBER(2) NOT NULL,
    ITEM_ID VARCHAR2(40 BYTE),
    GROUP_TYPE VARCHAR2(20 BYTE),
    GROUP_DATE DATE
    ITEM_ADDRESS_IN ITEM_ADDRESS_TYPE);
    CREATE OR REPLACE TYPE ITEM_ADDRESS_TYPE AS OBJECT
    GROUP_ID NUMBER(2),
    NAME VARCHAR2(60 BYTE),
    ADDRESS VARCHAR2(100));
    CREATE OR REPLACE TYPE ITEM_GROUP_COMP_TAB AS TABLE OF ITEM_GROUP_COMP_TYPE;
    Create or replace procedure ITEM_ADD_CHANGE(
    ITEM_IN IN ITEMS_TYPE,
    ITEM_ACTIVITY_IN IN ITEM_ACTIVITY_TYPE,
    ITEM_GROUP_IN IN ITEM_GROUP_COMP_TAB,
    ITEM_OUT IN OUT ITEMS.ITEM_ID%TYPE);
    Above are the paramteres we are passing to procedure.
    I need help in how to pass parameters to above procedure. All comments and responses will be highly appreciated. Thanks everyone for going through the post. Please let me know if more more information is required on this problem.
    Regards
    Dev

    Billy  Verreynne  wrote:
    Types used in this fashion, only make sense if the table is based on the type. It makes very little sense to have a table structure and then to duplicate the structure using a type.
    The 2 structures may be defined the same. But they are NOT interchangeable and requires one to be converted to the other to use. This is not sensible in my view. It is far easier in that case to simply use the PL/SQL macro +%RowType+ to create a duplicate structure definition - one that can natively be used for touching that table, without conversions required.
    If you do want to use types, define the type, then define the table of that type, adding the required constraints (pk, fk, not null, check) to the table's definition.Billy:
    Just curious, why do you say it makes very little sense to have a type modeled on a table? I do that a lot. In my case, I am getting the values from an external program, not building them manually, but it makes a lot of sense to me.
    One application where I do this a lot has a java front-end that parses HL7 messages. Each message contains at least minimal information about a variable number of entities (and often several rows for an entity) in the database, and must be processed as a single atomic trasnaction. So, rather than have potentially hundreds of parameters to the "main" driver procedures for different message types I created a set of types more or less identical to the tables representing the entities. The java program parses the mesasge and populates the type, then calls the appropriate stored procedure for the message type passing in the populated types. My stored procedure then does inserts/updates or deletes as appropriate over potentially dozens of tables.
    John

  • How to pass two parameters to sql query

    I try to create a sql script to update two columns in one table. I want to set it as parameter. When people execute this sql script, they need to pass parameter into sql query, then query will be executed successfully. The problem is I am only able to pass one parameter. If set two parameters in one line code, it will get ORA-00933 errors. Please advice me where I was wrong. The code is simple and like this:
    update MY_TABLE set year = &year AND month = &month where application_type = 'xxxx';
    If I only have: update MY_TABLE set year = &year where application_type = 'xxxx'; It works. If I set two parameters to pass value. It will get error.

    Hi,
    When you UPDATE two or more columns in the same statement, use ',' instead of 'AND' to separate them:
    update  MY_TABLE
    set     year = &year
    ,       month = &month
    where   application_type = 'xxxx';The correct syntax for all SQL statements, including UPDATE, can be found in the [SQL Language manual|http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_10008.htm#sthref9598].

  • Passing parameters from Java to an Oracle proc

    I am passing 3 parameters from Java method to an Oracle function.
    The Java method is called getStatic(String szparams) which invokes oracle function
    getStatic("GB1000");
    Oracle procedure
    SELECT XMLELEMENT("Underlying",
           XMLELEMENT("Code",a.code))
    FROM underlying a
    WHERE xml.extractval(a.xml,'/tables:underlying/tables:isin/text()',xml.getns('NS_TABLES'))=':arg1:' Passing 1 parameter works fine.
    2)Now I need to pass 3 parameters to the same function
    getStatic("GB1000\i\common");
    Oracle procedure
    SELECT
    XMLELEMENT(":arg2::Underlying", XMLATTRIBUTES(a.code "value", ':arg3:' as "xmlns::arg2:", 'http://www.AAA.com/common' as "xmlns:common"),
    XMLELEMENT("common:Code", a.code),
    FROM
      table a
    WHERE
      a.code = ':arg1:'Passing 3 params doesnt work.
    I tried using this way also:
    getStatic("GB1000\\i\\common"); -- still doesnt work.
    Is there a specific format where you can pass 3 parameters to the same method in Java?
    No offence meant,as this may sound silly.
    Thanks,

    Hi Nitin,
    yes, it is possible to pass parameters as URL parameters to the WDA applivcation. In WDA, for the handler method of your windows default Inplug (in standard the method is named HANDLEDEFAULT) define the parameters that you like to receive thru URL. When defining the WDA application, you can also set default parameters to avoid a dump, when parameters are not provided via URL.
    I just tried it out, it works.
    Kind regards
    Andreas

  • Trigger a SQL Reporting Service Data Alert when a SharePoint List is updated & need to pass parameters to report

    We have been able to get a SSRS Data Alert to trigger a report to be emailed whenever an item is added to a specific SharePoint List.   The report can accept parameters but would like to be able to pass parameters that are used in the report.   
    Is this possible? (I cross posted over at SharePoint dev. and was referred here)
    Thanks
    Νικοσ Γιαννιοσ

    Hi Nikos,
    Based on my understanding, you have deploy a parameter report to SharePoint site, then you have created a data alter for this report. Then you want to pass parameters to report then send alter, right?
    In Reporting Services, if the report has parameters, we should select values for the parameter, after report display, we can create a new data alter. Otherwise, the New Data Alter button is grayed out in the drop-down list of the Action button. So that the
    rule is created based on the filtered report. Please refer to below screenshot:
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Getting an error from calling a store proc

    this is my code calling a store proc. i got all oracle 8i
    drivers imported.
    package FMISBean;
    import java.sql.*;
    import oracle.jdbc.driver.*;
    public class getrecordj
              public static void main(String [] args){
         //global variables
         Connection conOrcl=null;
    String ProjectID ="222700-";
              CallableStatement C_TPRO_J=null;
         ResultSet R_TPRO_J = null;
         try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    conOrcl=DriverManager.getConnection("jdbc:odbc:FMISORCL","FMIS_USER","FMIS123");
              try{
              String SQL ="{ ? = call getJrecord(?) }";
         C_TPRO_J = conOrcl.prepareCall(SQL);
         //assign the ? to the argument passed
              C_TPRO_J.registerOutParameter(1,OracleTypes.CURSOR);
              C_TPRO_J.setString(2,ProjectID);
         //execute the query
              C_TPRO_J.executeQuery();
              R_TPRO_J = (ResultSet) C_TPRO_J.getObject(1);
         //looping through the resultSet
         while (R_TPRO_J.next()){
         //create an instance of the class
              // JavaBeans JItems = new JavaBeans();
         // set it to the Bean
              System.out.println(R_TPRO_J.getString(1));
              System.out.println(R_TPRO_J.getString(2));
              System.out.println(R_TPRO_J.getString(3));
              System.out.println(R_TPRO_J.getString(4));
              System.out.println(R_TPRO_J.getString(5));
              System.out.println(R_TPRO_J.getString(6));
              //JItems.setexistingLane(R_TPRO_J.getInt(3));
              // JItems.setproposed_lane(R_TPRO_J.getInt(4));
              // JItems.setcomnt(R_TPRO_J.getString(5));
              // JItems.setcomntType(R_TPRO_J.getString(6));
         //add the object to the vector
    // V_itemsJ.addElement(JItems);
         }catch(SQLException w){
              System.out.println(w.getMessage());
         }}catch(Exception S){
         //returning the vector
              //     return V_itemsJ;
    //closing bracets
    the store proc works fine if i test it in sql plus but when i call it from the page i get a dos window error
    [oracle][orant]:line 1, colunm 13
    PLS: expression is of wrong type
    line 1 , colunm 7
    PL/SQL: statement ignored
    any ideas please would help?

    Here are some examples to reference:
    http://www.javaalmanac.com/egs/java.sql/CallFunction.html
    http://www.javaalmanac.com/egs/java.sql/CallProcedure.html
    DesQuite

  • Passing parameters to QBE Reports?

    I currently have an SQL Report that I filter dynamically with parameters from the page. I would like to be able to use this same functionality with a QBE Report that the client can more easily specify.
    Is it possible to pass parameters to QBE Reports? If so, how?
    Thanks,
    Mark

    As Chetan has correctly suggested, it will be better to use a table to store
    the emp no and their pin against their login session ids.
    You can have a table as :-
    create table emp_pin (
    session_id integer,
    emp_no integer,
    emp_pin integer,
    constraint emp_pin_fk1 foreign key (session_id) references <portal_schema>.wwctx_sso_session$(id) on delete cascade
    When a user logs into portal, a session_id is created and this session_id is
    deleted when the user logs out. The delete cascade rule will clean up your
    table entry when the user logs out.
    You can get this session_id using the <portal_schema>.wwctx_api.get_sessionid function.
    Now you need to create 2 functions that would return the emp_no and emp_pin.
    You can then use these functions in the sql query of your reports. This way you
    need not use bind variables at all.
    Example:-
    create or replace function get_empno(p_sess_id in integer)
    return varchar2
    is
    l_empno varchar2(2000);
    begin
    select emp_no
    into l_empno
    where session_id = p_sess_id;
    return l_empno;
    end;
    create or replace function get_emp_pin(p_sess_id in integer)
    return varchar2
    is
    l_emp_pin varchar2(2000);
    begin
    select emp_pin
    into l_emp_pin
    where session_id = p_sess_id;
    return l_emp_pin;
    end;
    Now, these functions can be used in SQL query of your reports as :-
    select <col1>, <col2>, <col3>
    from <table>
    where empno = get_empno(<portal_schema>.wwctx_api.get_sessionid)
    and emp_pin = get_emp_pin(<portal_schema>.wwctx_api.get_sessionid)
    and ....
    In a form, you can use these functions to set the default values of the empno,
    emp_pin fields.

  • Passing parameters to Update page

    Hi,
    I created the search/create/update page going by the instructions in the tutorial exercise. My primary key is a combination of employee number AND sequence number.
    When I query the employee in the search page and if the employee has more than one record it displays all the records for that employee.
    When I click on the "update" button on one of the record, It is not displaying me the record on which I clicked the "update" button. Instead it is displaying me the other record for the same employee. I believe I need to pass the sequence value as the parameter, but do not know how to pass it. Can anyone one help me accomplish this?
    Thanks in advance,
    Al
    Below is the CO code for SEARCH page:
    /*===========================================================================+
    | Copyright (c) 2001, 2005 Oracle Corporation, Redwood Shores, CA, USA |
    | All rights reserved. |
    +===========================================================================+
    | HISTORY |
    +===========================================================================*/
    package lac.oracle.apps.lac.jobperf.server.webui;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.webui.OAControllerImpl;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
    import oracle.apps.fnd.framework.webui.TransactionUnitHelper;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import java.io.Serializable;
    import java.sql.Connection;
    import java.text.SimpleDateFormat;
    import java.text.ParseException;
    import oracle.apps.fnd.common.MessageToken;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.server.OADBTransaction;
    import oracle.apps.fnd.framework.webui.OAControllerImpl;
    import oracle.apps.fnd.framework.webui.OADialogPage;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
    import oracle.apps.fnd.framework.webui.TransactionUnitHelper;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean;
    import oracle.apps.fnd.framework.webui.beans.layout.OAQueryBean;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageStyledTextBean;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageDateFieldBean;
    //import oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean;
    import oracle.apps.fnd.framework.webui.beans.table.OATableBean;
    import com.sun.java.util.collections.HashMap;
    import oracle.bali.share.util.IntegerUtils;
    * Controller for ...
    public class jobperfCO extends OAControllerImpl
    public static final String RCS_ID="$Header$";
    public static final boolean RCS_ID_RECORDED =
    VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
    * Layout and page setup logic for a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    // The following checks to see if the user navigated back to this page
    // without taking an action that cleared an "in transaction" indicator.
    // If so, we want to rollback any changes that she abondoned to ensure
    // they aren't left lingering in the BC4J cache to cause problems with
    // subsequent transactions. For example, if the user navigates to the
    //Create Review page where you start a "Create" transactio unit, then
    //navigastes back to this page using the browser Back button and selects
    // the Create Review button again, teh OA Framework detects this
    // Back button navigation and steps through processRequest() so this
    // code is executed before you try to Create another new Review.
    if (TransactionUnitHelper.isTransactionUnitInProgress(pageContext,"jobperfCreateTxn", false))
    am.invokeMethod("rollbackReview");
    TransactionUnitHelper.endTransactionUnit(pageContext,"jobperfCreateTxn");
    else if(TransactionUnitHelper.isTransactionUnitInProgress(pageContext,"jobperfUpdateTxn",false))
    am.invokeMethod("rollbackReview");
    TransactionUnitHelper.endTransactionUnit(pageContext,"jobperfUpdateTxn");
    * Procedure to handle form submissions for form elements in
    * a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am;
    OADBTransaction oadbxn;
    am = pageContext.getRootApplicationModule();
    oadbxn = am.getOADBTransaction();
    if (pageContext.getParameter("Create") != null)
    //Navigate to teh "Create Review" page while retaining the AM.
    //Note the use of KEEP_MENU_CONTEXT as opposed to GUESS_MENU_CONTEXT
    //since we know the current tab should remain highlighted.
    pageContext.setForwardURL("OA.jsp?page=/lac/oracle/apps/lac/jobperf/webui/ReviewPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, //Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
    OAWebBeanConstants.IGNORE_MESSAGES);
    else if ("update".equals(pageContext.getParameter(EVENT_PARAM)))
    String EmployeeNumber = pageContext.getParameter("EmployeeNumber");
    String Seq = pageContext.getParameter("Seq");
    //String EmployeeName = pageContext.getParameter("FullName");
    System.out.println("Update Selected");
    System.out.println(EmployeeNumber);
    //System.out.println(EmployeeName);
    System.out.println(Seq);
    oadbxn.putValue("EmployeeNumber",EmployeeNumber);
    oadbxn.putValue( "Seq",Seq);
    //oadbxn.putValue("EmployeeName",EmployeeName);
    HashMap params = new HashMap(2);
    // Replace the current employeeNumber request parameter value with "X"
    params.put("EmployeeNumber", EmployeeNumber);
    //params.put("EmployeeName", "EmployeeName");
    params.put("Seq", Seq);
    // IntegerUtils is a handy utility
    //params.put("EmployeeName", EmployeeName);
    //params.put("EmployeeNumber",IntegerUtils.getInteger(1));
    //params.put("EmployeeName",IntegerUtils.getInteger(2));
    //params.put("Seq",IntegerUtils.getInteger(2));
    // The user has clicked an "Update" icon so we want to navigate
    // to the first step of the multistep "Update Employee" flow.
    pageContext.setForwardURL("OA.jsp?page=/lac/oracle/apps/lac/jobperf/webui/UpdateReviewPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    params, //mir null,
    true, // Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES, // Do not display breadcrumbs
    OAWebBeanConstants.IGNORE_MESSAGES);
    Below is the CO code for UPDATE page:
    /*===========================================================================+
    | Copyright (c) 2001, 2005 Oracle Corporation, Redwood Shores, CA, USA |
    | All rights reserved. |
    +===========================================================================+
    | HISTORY |
    +===========================================================================*/
    package lac.oracle.apps.lac.jobperf.server.webui;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.webui.OAControllerImpl;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import oracle.apps.fnd.framework.webui.OADialogPage;
    import oracle.apps.fnd.framework.webui.TransactionUnitHelper;
    import oracle.jbo.domain.Number;
    import oracle.apps.fnd.common.MessageToken;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.OAViewObject;
    import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
    import java.io.Serializable;
    * Controller for ...
    public class ReviewUpdateCO extends OAControllerImpl
    public static final String RCS_ID="$Header$";
    public static final boolean RCS_ID_RECORDED =
    VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
    * Layout and page setup logic for a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    // Always call this first
    super.processRequest(pageContext, webBean);
    // Put a transaction value indicating that the update transaction
    // is now in progress.
    TransactionUnitHelper.startTransactionUnit(pageContext,"jobperfUpdateTxn");
    String EmployeeNumber = pageContext.getParameter("EmployeeNumber"); //small e
    String Seq = pageContext.getParameter("Seq");
    System.out.println("Into ReviewUpdateCOUpdate IN Process Request values from Page Context");
    System.out.println(EmployeeNumber);
    //System.out.println(EmployeeName);
    System.out.println(Seq);
    // We'll use this at the end of the flow for a confirmation message.
    String EmployeeName = pageContext.getParameter("FullName");
    pageContext.putTransactionValue("FullName",EmployeeName);
    Serializable[] params = { EmployeeNumber,Seq}; //small e
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    // For the update, since we are using the same VO as teg "Details" page, we
    // can use the same initialization logic.
    System.out.println("Into ReviewUpdateCOUpdate IN Process Request");
    System.out.println(EmployeeNumber); //small e
    //System.out.println(EmployeeName);
    System.out.println(Seq);
    am.invokeMethod("initDetails", params);
    //am.invokeMethod("jobperfAMImpl.createReview");
    System.out.println("Into ReviewUpdateCOUpdate IN Process Request AFTER INITDETAILS");
    System.out.println(EmployeeNumber); //small e
    //System.out.println(EmployeeName);
    System.out.println(Seq);
    } // end processRequest()
    * Procedure to handle form submissions for form elements in
    * a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    {    //super.processFormRequest(pageContext, webBean);
    // Always call this first.
    super.processFormRequest(pageContext, webBean);
    System.out.println("Into ReviewUpdateCOUpdate INTO Process FORM before apply Request");
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    // Pressing the "Apply" button means the transaction should be validated
    // and committed.
    if (pageContext.getParameter("Apply") != null)
    // Generally in the tutorial application and the labs, we've illustrated
    // all BC4J interaction on the server (except for the AMs, of course). Here,
    // we're dealing with the VO directly so the comments about the reasons
    // why we're obtaining values from the VO and not the request make sense
    // in context.
    OAViewObject vo = (OAViewObject)am.findViewObject("jobperfVO1");
    // Note that we have to get this value from the VO because the EO will
    // assemble it during its validation cycle.
    // For performance reasons, we should generally be calling getEmployeeName()
    // on the EmployeeFullVORowImpl object, but we don't want to do this
    // on the client so we're illustrating the interface-appropriate call. If
    // we implemented this code in the AM where it belongs, we would use the
    // other approach.
    String EmployeeName = (String)vo.getCurrentRow().getAttribute("FullName");
    // We need to get a String so we can pass it to the MessageToken array below. Note
    // that we are getting this value from the VO (we could also get it from.
    // the Bean as shown in the Drilldwon to Details lab) because the item style is messageStyledText,
    // so the value isn't put on the request like a messaqeTextInput value is.
    String EmployeeNumber = (String)vo.getCurrentRow().getAttribute("EmployeeNumber");
    String Seq = (String)vo.getCurrentRow().getAttribute("Seq");
    //ma String employeeNum = String.valueOf(employeeNumber.intValue());
    //ma Number employeeNumber = (Number)vo.getCurrentRow().getAttribute("EmployeeNumber");
    //ma String employeeNum = String.valueOf(employeeNumber.intValue());
    // Simply telling the transaction to commit will cause all the Entity Object validation
    // to fire.
    // Note: there's no reason for a developer to perform a rollback. This is handled by
    // the framework if errors are encountered.
    System.out.println("Into ReviewUpdateCOUpdate IN Process Form Request");
    System.out.println(EmployeeNumber);
    //System.out.println(EmployeeName);
    System.out.println(Seq);
    am.invokeMethod("apply");
    // Indicate that the Create transaction is complete.
    TransactionUnitHelper.endTransactionUnit(pageContext, "jobperfUpdateTxn");
    // Assuming the "commit" succeeds, navigate back to the "Search" page with
    // the user's search criteria intact and display a "Confirmation" message
    // at the top of the page.
    MessageToken[] tokens = { new MessageToken("EMP_NAME", EmployeeName),
    new MessageToken("EMP_NUMBER", EmployeeNumber) };
    OAException confirmMessage = new OAException("PER", "LAC_FWK_TBX_T_EMP_CREATE_CONF", tokens,
    OAException.CONFIRMATION, null);
    // Per the UI guidelines, we want to add the confirmation message at the
    // top of the search/results page and we want the old search criteria and
    // results to display.
    pageContext.putDialogMessage(confirmMessage);
    pageContext.forwardImmediately(
    "OA.jsp?page=/lac/oracle/apps/lac/jobperf/webui/jobperfPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, // retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
    else if (pageContext.getParameter("Cancel") != null)
    am.invokeMethod("rollbackReview");
    // Indicate that the Create transaction is complete.
    TransactionUnitHelper.endTransactionUnit(pageContext, "jobperfUpdateTxn");
    pageContext.forwardImmediately("OA.jsp?page=/lac/oracle/apps/lac/jobperf/webui/jobperfPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, // retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
    } // end processFormRequest()
    Message was edited by:
    user617353

    Hi,
    I created a new method(initQueryUpdate) in the VOImpl(here I am also setting the where clause).
    Also created a method(initDetailsUpdate) in the AMImpl and I am calling the vo.initQueryUpdate in AM code.
    I am also passing the parameters to method via a call in the ReviewupdateCO(am.invokeMethod("initDetailsUpdate", params);).
    It is compiling the entire jpr without any errors.
    When I Search an employee and clisk on the update button then I am geting the following error.
    I tried to pass parameters by putting them on the update button property with the action type of "fireAction.
    I also tried by making the actiontype "none" and putting the forwarding apge with parameters in the "Destination URL" property and still I get the error message when I run it. Any one has any clues.
    Thanks in Advance,
    Ali
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT
    jobperfEO.EMPLOYEE_NUMBER,
    jobperfEO.FULL_NAME,
    jobperfEO.PERSON_ID,
    jobperfEO.ASSIGNMENT_ID,
    jobperfEO.PERIOD_START_DATE,
    jobperfEO.PERIOD_END_DATE,
    jobperfEO.REVIEW_DATE,
    jobperfEO.REVIEW_TYPE,
    jobperfEO.REVIEW_STATUS,
    jobperfEO.JOB_CLASSIFICATION,
    jobperfEO.DISTRICT,
    jobperfEO.SUPERVISOR_ID,
    jobperfEO.SUPERVISOR_EMPLOYEE_NUMBER,
    jobperfEO.SUPERVISOR_NAME,
    jobperfEO.QUALITY_OF_WORK,
    jobperfEO.QUANTITY_OF_WORK,
    jobperfEO.JOB_KNOWLEDGE,
    jobperfEO.EFFICIENCY,
    jobperfEO.RELATING_TO_OTHERS,
    jobperfEO.INITIATIVE,
    jobperfEO.RELIABILITY,
    jobperfEO.HOUSEKEEPING_SAFETY,
    jobperfEO.OVERALL_PERFORMANCE,
    jobperfEO.SUGGESTED_IMPROVEMENT_AREAS,
    jobperfEO.EMPLOYEE_COMMENTS,
    jobperfEO.CREATED_BY,
    jobperfEO.CREATION_DATE,
    jobperfEO.LAST_UPDATED_BY,
    jobperfEO.LAST_UPDATE_DATE,
    jobperfEO.SEQ,
    jobperfEO.SECOND_SUPRV_EMPNO,
    jobperfEO.SECOND_SUPRV_FULLNAME
    FROM apps.LAC_CM_PERF_REVIEW jobperfEO) QRSLT WHERE (SEQ = :1 AND ( UPPER(EMPLOYEE_NUMBER) like :3 AND (EMPLOYEE_NUMBER like :4 OR EMPLOYEE_NUMBER like :5 OR EMPLOYEE_NUMBER like :6 OR EMPLOYEE_NUMBER like :7))) ORDER BY EMPLOYEE_NUMBER ASC
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:865)
         at oracle.apps.fnd.framework.OAException.wrapperInvocationTargetException(OAException.java:988)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:211)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:153)
         at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:749)
         at lac.oracle.apps.lac.jobperf.server.webui.ReviewUpdateCO.processRequest(ReviewUpdateCO.java:116)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:587)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1136)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2335)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1734)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:508)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:429)
         at _OA._jspService(OA.jsp:34)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
         at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199)
         at _OA._jspService(OA.jsp:39)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.sql.SQLException: ORA-01006: bind variable does not exist
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144)
         at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2548)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2933)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:650)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:578)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:631)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:518)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3375)
         at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:828)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4507)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
         at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
         at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3339)
         at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3326)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:441)
         at lac.oracle.apps.lac.jobperf.server.jobperfVOImpl.initQueryUpdate(jobperfVOImpl.java:77)
         at lac.oracle.apps.lac.jobperf.server.jobperfAMImpl.initDetailsUpdate(jobperfAMImpl.java:129)
         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:324)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:190)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:153)
         at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:749)
         at lac.oracle.apps.lac.jobperf.server.webui.ReviewUpdateCO.processRequest(ReviewUpdateCO.java:116)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:587)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1136)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2335)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1734)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:508)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:429)
         at _OA._jspService(OA.jsp:34)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
         at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199)
         at _OA._jspService(OA.jsp:39)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    java.sql.SQLException: ORA-01006: bind variable does not exist
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144)
         at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2548)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2933)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:650)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:578)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:631)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:518)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3375)
         at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:828)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4507)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
         at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
         at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3339)
         at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3326)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:441)
         at lac.oracle.apps.lac.jobperf.server.jobperfVOImpl.initQueryUpdate(jobperfVOImpl.java:77)
         at lac.oracle.apps.lac.jobperf.server.jobperfAMImpl.initDetailsUpdate(jobperfAMImpl.java:129)
         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:324)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:190)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:153)
         at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:749)
         at lac.oracle.apps.lac.jobperf.server.webui.ReviewUpdateCO.processRequest(ReviewUpdateCO.java:116)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:587)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1136)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2335)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1734)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:508)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:429)
         at _OA._jspService(OA.jsp:34)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
         at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199)
         at _OA._jspService(OA.jsp:39)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)

Maybe you are looking for

  • Error in read value from structure

    hi gurus, the structure does not contain any data.... so i have 2 problem related to it. 1. do i apply the select query nd write statement on structure rf05l. i apply it gives error that rf05l is not the table..... 2. so what is the use of include st

  • U5 wont' boot to cdrom

    I'm have a u5 with openbsd on it. I'm want to get opensolaris installed on it. I have the opensolaris cd, in the cdrom drive. At the ok prompt I type the follwing. boot cdrom1 -s witht the following results: Boot device: /pci@1f,0/pci@1,1/ide@3/cdrom

  • QUERY EXPLAIN_PLAN

    Hello GURUS I am on 10.2.0.2.0. I am sorry for big query. It is running really slow. Also please look at the explain plan I am trying to fix the problem but still the same, runnig slow. THE SS_SKU_STORE_WEEK is big table with aroundf 1 million rows,

  • Dreamweaver crashing constantly (Mac OSX)

    Hi Guys, Im having some serious problems with my Dreamweaver CS5 crashing, I have tried reinstalling it, deleting caches, deleting configuation folder but I am still getting the same symptoms. I am running a Mac OSX, (Snow Leopard I think) 10.6.4, I

  • How to recover missing library name

    I did something to blank out the library name in imovie, how do I recover from it?