Stored Procedure based on Row Level

Hi
I have created a Stored Procedure that works perfectly off the Header Level but not on the Row Level, the query is as follows:
IF @transaction_type='A' AND @Object_type = '13'
BEGIN
--AR Invoice
IF EXISTS (SELECT T0.DocEntry FROM [dbo].[OINV] T0 WHERE T0.Project ='0' OR T0.Project IS NULL AND T0.DocEntry = @list_of_cols_val_tab_del)
BEGIN
SET @Error = 10
SET @error_message = 'Please select Project Code under Accounting Tab > BP Project'
       END
END
Now I want to base it off Table - INV1, Field - Project, when executing it in SQL Server all seems good but once running in SBO the Stored Procedure does not trigger causing the user to bypass selecting a Project from the Project Field which is Mandatory; could this be down to T0.DocEntry as there is a DocEntry in INV1 and none in OINV?
Any suggestions will be appreciated.
Regards
Kurt Walters

Try this one:
IF @transaction_type='A' AND @Object_type = '13'
BEGIN
IF EXISTS (SELECT T0.DocEntry FROM dbo.INV1 T0
WHERE (T0.Project ='' OR T0.Project IS NULL) AND T0.DocEntry = @list_of_cols_val_tab_del)
Begin
SET @Error = 10
SET @error_message = 'Please set Project Code on every line !'
End
END

Similar Messages

  • Calling a stored procedure for each row returned

    I need to call a stored procedure for each row returned by a repeating frame. I called the stored procedure from the repeating frame format trigger, but that did not work( it did no populated the tables populated by the stored procedure)
    How can I call a stored procedure for each row returned by a repeating frame.
    Thank you

    Include it as a formula column in your data model.

  • Stored Procedure/Function Returns Rows?

    Hello,
    I have very little experience writing PL/SQL procedures, but I have written my fair share of Sybase stored procedures. In Sybase, I can create a stored procedure that returns rows of data. For example:
    create procedure myproc as
    begin
    select * from mytable;
    end;
    Then if I invoke the procedure (whether that is from an interactive SQL session or from a ColdFusion or JSP page), several rows of data are returned to me.
    The benefit of this is that the web developers don't need to write complicated SQL.
    Is this even possible in Oracle? I have never seen anyone actually do this. Or do my web coders need to learn how to write PL/SQL and embed it into their code?
    HELP!
    Thanks!

    Hi Justin,
    Thanks for your reply. That's kind of what I was suspecting, except that I was hoping to be able to execute the function/procedure from within a SQL session also, for testing. Is there a way to invoke such a procedure from a SQL*Plus session and have it return the rowset (ref cursor) just as if I had typed in the SQL select statement?
    For example, I just want to type at a SQL*Plus prompt something like this:
    mypackage.myfunction(param1, param2);
    and then have it return the results to me. Is that possible?
    Thanks again for your help.
    Mark

  • If the result from the stored procedure returns 0 rows I get this error returned:

    If the result from the following stored procedure returns 0
    rows I get this error returned:
    faultCode:Server.Processing faultString:'Variable transfers
    is undefined.' faultDetail:''
    How can I get round this?

    Well if I try this in a cfm page:
    <cfstoredproc procedure="GetTransfers"
    datasource="datasource" returncode="true">
    <cfprocparam type="in" cfsqltype="CF_SQL_VARCHAR"
    value="4">
    <cfprocparam type="in" cfsqltype="cf_sql_date"
    value="12/09/2006 08:42:00">
    <cfprocparam type="in" cfsqltype="cf_sql_date"
    value="12/09/2008 08:42:00">
    <cfprocresult name="transfers">
    I get an error like:
    [Macromedia][SQLServer JDBC Driver][SQLServer]Procedure or
    function 'GetTransfers' expects parameter '@fromdate', which was
    not supplied.
    But this procedure only accepts 3 parameters.

  • SSIS-How to pass multiple value to stored procedure from table row one by one using ssis package??

    I want to execute a stored procedure using ssis.But the problem  I am having is that there is a table with 200 rows with only
    single column.Now i want to execute stored procedure using value one by one from table .once the stored procedure is executed with top value from table i also want to delete that topmost column value and execute with next table value.and store the result in
    text file.
    please help me..or provide a package.

    If you want to do it in SSIS, a way to do this is by using For Each Loop as mentioned above.
    Create 1 OBJECT type variable (list of values) and one STRING type variable (one value at a time)
    Use EXE SQL Task with ResultSet = FULL RESULT SET and query = SELECT COL FROM TABLE ORDER BY COL ASC...output this to the OBJECT type variable 
    Next, a For Each loop container with Foreach ADO Enumerator, ADO object source variable = Object type variable and map that to String type variable with index = 0.
    Within your for each loop container, select another EXEC SQL Task and pass in an input parameter (the String type variable) and query = EXEC PROC ? -- WHERE ? = String type variable.
    This will execute your store procedure just for that one value out of the whole list.
    Now within the same For Each loop, select another EXEC SQL Task and again pass in an input parameter (the same String type variable) and query = DELETE FROM TABLE WHERE COL = ? -- WHERE ? = the current value 
    The above process should A) get the list of values from the table B) pick one value at a time and execute the proc and delete and right after delete that value from the table.
    Hope this helps.
    -- some further investigation/tweaking may require but it should help you get started.

  • Stored Procedure Returning Multiple Rows

    Hello. Where can I find sample code from a class that calls a stored procedure that returns multiple rows?
    I have a servlet that calls the DB directly from the servlet & loops through the result set. I want to put that code into a stored procedure, but I'm not sure how to loop through the results.
    Your help is greatly appreciated!

    Surely you would call the stored procedure and loop
    through the resultset as usual.
    all that is different is the method by which you obtain the resultSet .
    assuming CallableStatement, Connection have been
    instantiated.
    cstmt=con.prepareCall("{call sp_NewOfficeSurgery (?,?)}");
    cstmt.setString(1,"first");
    cstmt.setString(2,"second");
    rs = cstmt.executeQuery();
    while (rs.next())
    String nme = rs.getString(1)
    etc,etc
    Hope this helps , Sorry If I have misinterpreted this
    please let me know if my thinking is floored or you need
    further clarification ect.
    [email protected]

  • Stored procedure to count rows and columns- NEWB

    I have  the following table and I want to get a count of 'Enabled' in each column and output to a new table with the same column names with counts. Is this possible?
    AzureRMS    Office_PP   Lync        Office_Onli Sharepoint  Exchange    Visio       Project     ExchangeArc
    Disabled    Enabled     Disabled    Enabled     Enabled     Disabled    Disabled    Disabled    Disabled
    Disabled    Enabled     Disabled    Enabled     Enabled     Disabled    Disabled    Disabled    Disabled
    Disabled    Enabled     Disabled    Disabled    Disabled    Disabled    Disabled    Disabled    Disabled
    Disabled    Enabled     Disabled    Disabled    Disabled    Disabled    Disabled    Disabled    Disabled
    Disabled    Enabled     Disabled    Enabled     Enabled     Disabled    Disabled    Disabled    Disabled
    Disabled    Enabled     Disabled    Disabled    Disabled    Disabled    Disabled    Disabled    Disabled
    Disabled    Enabled     Disabled    Enabled     Enabled     Disabled    Disabled    Disabled    Disabled
    Disabled    Enabled     Disabled    Disabled    Disabled    Disabled    Disabled    Disabled    Disabled
    Disabled    Enabled     Disabled    Disabled    Disabled    Disabled    Disabled    Disabled    Disabled
    Disabled    Enabled     Disabled    Disabled    Disabled    Disabled    Disabled    Disabled    Disabled
    Disabled    Enabled     Disabled    Disabled    Disabled    Disabled    Disabled    Disabled    Disabled
    Disabled    Enabled     Disabled    Disabled    Disabled    Disabled    Disabled    Disabled    Disabled
    Disabled    Enabled     Disabled    Disabled    Disabled    Disabled    Disabled    Disabled    Disabled
    Disabled    Enabled     Disabled    Disabled    Disabled    Disabled    Disabled    Disabled    Disabled
    Disabled    Enabled     Disabled    Disabled    Disabled    Disabled    Disabled    Disabled    Disabled
    Disabled    Enabled     Disabled    Enabled     Enabled     Disabled    Disabled    Disabled    Disabled
    Disabled    Enabled     Disabled    Disabled    Disabled    Disabled    Disabled    Disabled    Disabled
    Disabled    Enabled     Disabled    Disabled    Disabled    Disabled    Disabled    Disabled    Disabled
    Dan

    Hello Dan,
    The base query is a conditional sum, like:
    SELECT
    SUM(CASE WHEN AzureRMS = 'Enabled' THEN 1 ELSE 0 END) AS CountAzureRMS
    ,SUM(CASE WHEN Office_PP = 'Enabled' THEN 1 ELSE 0 END) AS CountOffice_PP
    , -- and so on
    FROM yourTable
    just complete it for the other columns.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]
    Thanks!  
    How do I write this a stored procedure using a tablename as a parameter?
    Dan
    Thats not recommended. Why do you want write a generic procedure for this passing tablename as a parameter??
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
    I am accessing the data via powershell/windows forms and I like to simplify the query.
    Dan

  • Adding more columns on a stored procedure with return rows

    Not a very easy subject heading to define, but I'll explain more now:
         PROCEDURE sp_Load_Quote (p_cursorQuote IN OUT cursorPromo, p_QuoteID IN varchar) IS
         thissql varchar(1000);
         templateType varchar(50) default '';
         templateID number default -1;
         BEGIN
               select pa.TEMPLATEID, pt.tool into templateID, templateType
               from  ppt_answer pa, ppt_template pt
               where pa.quoteid = ''' || p_QuoteID || '''
               AND pa.templateid = pt.templateid
               and rownum = 1;          
               thissql :=     'SELECT q.*, sq.SESSIONID, qp.QUOTEID as PartQuoteID, qp.VPEC_CODE, qp.PEC_CODE, qp.Quantity as PartQuantity, qp.description as PartDescription, qp.ptype, qp.MSRP, qp.WPP, qp.NPP, qp.isPackage, cu.symbol as currency, '|| templatetype ||' as templateType, '|| templateID ||' as templateID ';
               thissql :=     thissql || 'FROM Quote q, tblsavedquote sq, tblsavedquoteparts qp, thecurrency cu ';
                thissql :=     thissql || 'where q.QuoteID = qp.QuoteID (+) ';
                thissql :=     thissql || 'and sq.QuoteID = q.QuoteID ';
               thissql :=     thissql || 'and q.QuoteID = ''' || p_QuoteID || ''' ';
               thissql :=     thissql || 'and q.currencyid = cu.currencyid ';
               open p_cursorQuote FOR thissql;
               begin
                      Execute immediate thissql;
               end;
         END sp_Load_Quote;The error I get is
    "Exception - SMBDataAccess.clsQuote.loadFromDB - ORA-01403: no data found ORA-06512: at "MARKETING_ADMIN.PKG_SMBTOOL", line 438 ORA-06512: at line 1"
    It could be to do with the first select statement where I put the two values into 2 variables ( templatetype and templateID )
    I am unsure

    Any idea what the problem is? In regards of your error message, a query return no row...
    If you want avoid such thing, you need to manage exceptions like below for example :
    BEGIN
    BEGIN
               select pa.TEMPLATEID, pt.tool into templateID, templateType
               from  ppt_answer pa, ppt_template pt
               where pa.quoteid = p_QuoteID --remove quotes here, no need
               AND pa.templateid = pt.templateid
               and rownum = 1;          
    EXCEPTIONS WHEN OTHERS THEN dbms_output.put_line(sqlerrm);
    END;
               thissql :=...Nicolas.

  • Null pointer in setTableLocation for a report based on a stored procedure

    im using the crjavahelper class and setTableLocation to change the datasource of a stored procedure based report and its throwing a null pointer exception somewhere in the sdk.  This is happening with sqljdbc4.jar and sql2005 and jdk 1.6.
    Jan 20, 2010 12:43:37 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.NullPointerException
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.do(SourceFile:4605)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:621)
         at com.crystaldecisions.sdk.occa.report.application.b0.if(SourceFile:75)
         at com.crystaldecisions.sdk.occa.report.application.b0.b(SourceFile:106)
         at com.crystaldecisions.sdk.occa.report.application.bb.int(SourceFile:96)
         at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.performDo(SourceFile:151)
         at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.a(SourceFile:106)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:2159)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:543)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:3898)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.setTableLocation(SourceFile:2906)
         at com.businessobjects.samples.CRJavaHelper.changeDataSource(CRJavaHelper.java:191)
         at org.apache.jsp.index_jsp._jspService(index_jsp.java:114)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         at java.lang.Thread.run(Unknown Source)
    any ideas? I tried using the jtds driver and it doesnt throw the exception but it doesnt return any data either, ive never gotten a stored procedure based report to work with it.
    Jeremy

    Check out this forum post:
    Problem using Null as a parameter with a stored procedure

  • Calling a stored procedure before row update without using triggers

    I have got two tables Main Table(Table1) and History Table(Table2), whenever an update is done on Table1 i want to insert the old row before update to Table2, so that i have history available for that record.
    My doubt is
    how to refer to old value (values b4 update) in a stored procedure?
    how to call a stored procedure b4 every row update(on the database side as we do with tiggers)?
    I want to write a stored procedure where in i will insert the old row values ( value b4 update ) to Table2.
    Any Help would be great....

    sample code calling procedure before insert:
    DriverManager.registerDriver(new someDriver);
    Connection conn = DriverManager.getConnection(driver,uname,pword);
    CallableStatement cs = conn.prepareCall("{call procedureName(?,?)}");
              cs.setString(1,userName);
              cs.registerOutParameter(2,Types.VARCHAR);
              cs.execute();
              success = cs.getString(2);
              PreparedStatement pstmt = conn.prepareStatement("insert into sometable values(?,?)");
              pstmt.setString(1,userName);
              pstmt.setString(2,password);
              pstmt.executeUpdate();     
              conn.commit();      
              cs.close();
           conn.close();

  • JCE Based Java Stored Procedure in Oracle 8i

    I have a Java class which is created based on JCE 1.2.1. I need to call this Java class from PL/SQL. Therefore, I want to create a Java stored procedure based on this Java class. I just read some topics in this forum and it seems that many people are unable to have JCE correctly setup on Oracle8 JVM.
    My question is how to configure the JVM of Oracle8i to use the JCE?
    I am using Oracle 8.1.6 on unix.
    Thanks,

    unfortunately, for JCE to work, you need a fix to OracleJVM that we will be providing in the next major release
    Thanks for your reply.
    The JCE optional package could be installed on SUN's JDK 1.2.x or higher. Since Oracle 8.1.6's JServer support SUN's JDK 1.2.1. Therefore, in theory, JCE could be installed for Oracle 8.1.6 or higher.
    However, the cofiguration of JCE on the JVM requires the modification of Java security policy file. I followed the JCE's installation guide but it did not work on Oracle's JServer.
    My question is: How to install JCE 1.2.1 on Oracle 8.1.6? Is it possible to configure the JVM of Oracle 8.1.x to use JCE? If yes, how?
    Thanks,
    JCE is an optional package even in J2SE 1.3 - it is required in J2SE 1.4
    OracleJVM will be J2SE 1.4 compliant in the nest major release and we plan to support JCE
    I have a Java class which is created based on JCE 1.2.1. I need to call this Java class from PL/SQL. Therefore, I want to create a Java stored procedure based on this Java class. I just read some topics in this forum and it seems that many people are unable to have JCE correctly setup on Oracle8 JVM.
    My question is how to configure the JVM of Oracle8i to use the JCE?
    I am using Oracle 8.1.6 on unix.
    Thanks,

  • JDBC Adapter - Sender - Stored Procedure - SQLException Error

    Hi,
         I have created one stored procedure in our Oracle database. I give below that stored procedure.
    CREATE OR REPLACE PROCEDURE sp_stud
    IS
        l_row student%ROWTYPE;
        TYPE t_ref_cursor IS REF CURSOR RETURN l_row%TYPE;
        c_cursor t_ref_cursor;
    BEGIN
        OPEN c_cursor FOR
         SELECT *
         FROM student where readflag= ' ';
        LOOP
         FETCH c_cursor into l_row;
            EXIT WHEN c_cursor%NOTFOUND;
            DBMS_OUTPUT.PUT_LINE(l_row.id || ' : ' || l_row.name);
        END LOOP;
    close c_cursor;
    END;
    This is a procedure to retreive rows from the table student which is having the field read_flag = ' '; (Student table contains the fields ID, NAME, BIRTHYEAR, BIRTHMONTH, READFLAG).
    In JDBC Sender Adapter, I set the values for the following fields under Parameters tab.
    Query SQL Statement: EXECUTE sp_stud
    Update SQL Statement: UPDATE student SET readflag = 'Y' where readflag = ' '
    The scenario is every 5 minutes JDBC adapter checks the table whether any new row is inserted, if it is inserted and commit, it will send that record to File. This is the Scenario.
    In Runtime Workbench, Communication Channel Monitoring, it shows the following error, when JDBC Polls the table.
    Database-level error reported by JDBC driver while executing statement 'EXECUTE sp_stud'. The JDBC driver returned the following error message: 'java.sql.SQLException: ORA-00900: invalid SQL statement '. For details, contact your database server vendor.
    Note : If we execute the Stored Procedure ad SQL command level, it works fine.
    Kindly help friends to solve this, where the error is happened.
    Thanking you,
    Kind regards,
    Jegatheeswaran P.

    Hi,
    Not a Database expert. But , in case you have not seen the note pointed by Deepu,
    <i> The JDK 1.1.x, 1.2 and 1.3 versions (classes111. zip, classes12.zip, classes12.jar) of the driver are not compatible with the SAP XI JDBC Adapter. Use the JDK 1.4 driver (ojdbc14.jar) instead. For details, refer to Oracle MetaLink note # 203849.1.
               <b>Invoking Oracle stored procedures from within a JDBC sender channel is only possible for Oracle DBMS versions >= 10.2.x using so-called table functions:</b>
               Example:
    pkg1 -
    CREATE PACKAGE pkg1 AS
      TYPE numset_t IS TABLE OF NUMBER;
      FUNCTION f1(x NUMBER) RETURN numset_t PIPELINED;
    END pkg1;
    CREATE PACKAGE BODY pkg1 AS
    -- FUNCTION f1 returns a collection of elements (1,2,3,... x)
    FUNCTION f1(x NUMBER) RETURN numset_t PIPELINED IS
      BEGIN
        FOR i IN 1..x LOOP
          PIPE ROW(i);
        END LOOP;
        RETURN;
      END;
    END pkg1;
    pkg1 -
            <b>   This function has to be invoked from the sender channel configuration (SELECT statement) as follows:
               SELECT * FROM TABLE(pkg1.f1(5));</i></b>
    Check this, confirm your Oracle DB version and then use the Table Functions as described in this note.
    A Database Expert wil be able to crack this for sure.
    Regards
    Bhavesh

  • Stored Procedure for custom permission check

    Hi,
    I have created 2 UDTs for Master Data and Master Rows, and generated a UDO form for this.
    Only few users can add master data, but all users should be able to update fields in the rows for existing master records (but not the fields in the header).
    For this, I can probably add a custom permission UDF in User Master.
    But how can I code the Stored Procedure based on this UDF in the User Master, and whether rows are modified for existing records?
    Thanks.

    John......
    Try this.....
    IF (@object_type = '140' And (Select ObjType From OPDF
           Where DocEntry = @list_of_cols_val_tab_del)='46'
    AND @transaction_type IN ('A'))
    BEGIN
    if exists(select t0.DocEntry from OPDF T0 inner join PDF4 T1 on
    T0.DocNum = T1.DocNum where t1.ObjType ='46' AND (T0.Series = '15' AND T1.OcrCode != 'U-1')
    and T0.DocEntry = @list_of_cols_val_tab_del)
    begin
    select @error = 1,
    @error_message = 'Check Unit'
    end
    End
    Above SP will only work when your Series Code is 15 and OcrCode is not equal to 'U-1'....
    Please confirm........
    And Object type for Payment Draft 140 is right.....
    Regards,
    Rahul

  • Calling Stored Procedure in Table Object

    Dear All
    i can run a Stored Procedure in App Module Level.
    is there any way to call this procedure in object level or call it from appmodule level ?
    Many Thanks
    Edited by: Oracle ITself on Mar 22, 2010 12:08 PM

    You are still working on this.
    Please see sample codes ( extracts from my project is working in prod) and you need to create your jdbc url or jdbc datasource in your AppleModule. I am using 10.1.3.4 , I hope this will help you.
    1. jspx.
    <af:table value="#{bindings.yourView.collectionModel}"
    var="row"
    rows=""
    first="#{bindings.yourView.rangeStart}"
    emptyText="#{bindings.yourView.viewable ? 'No rows yet.' : 'Access Denied.'}"
    id="table" binding="#{ReconcileBean.table}" width="100%"
    partialTriggers="cmdXXXXXX">
    <f:facet name="selection">
    <af:tableSelectMany text="Select and ...">
    <af:commandButton text="your message"
    action="#{ReconcileBean.handleSaved}"/>
    </af:tableSelectMany>
    </f:facet>
    </af:table>
    2. Pagedef:
    under <executables>
    <variable Name="find_fileId" Type="oracle.jbo.domain.Number"
    IsQueriable="false"/>
    </executables>
    under <bindings>
    <methodAction id="sendToTibco"
    InstanceName="yourAppModuleDataControl.dataProvider"
    DataControl="yourAppModuleDataControl" MethodName="sendToTibco"
    RequiresUpdateModel="true" Action="999"
    IsViewObjectMethod="false">
    <NamedData NDName="fileID" NDValue="${bindings.find_fileId}"
    NDType="oracle.jbo.domain.Number"/>
    </bindings>
    3. backbean:
    public String handleSaved() {
    // Add event code here...
    invokeMethod("sendToTibco");
    AdfFacesContext.getCurrentInstance().addPartialTarget(this.getTable());
    return null;
    4. AppModuleImpl:
    import java.sql.CallableStatement;
    import java.sql.SQLException;
    import java.sql.Types;
    public void sendToTibco(Number fileID) {
    CallableStatement st = null;
    System.out.println("file id:" + fileID);
    try
    String stmt = "begin XXXmgr.XXX_XXXX_proc(?,?,?); end;";
    // I have a SP with one IN and two OUT.
    st = getDBTransaction().createCallableStatement(stmt, 0);
    st.registerOutParameter(2, Types.VARCHAR);
    st.registerOutParameter(3, Types.VARCHAR);
    st.setObject(1,fileID);
    st.execute();// 5. Execute the statement
    } catch (SQLException e)
    e.printStackTrace();
    throw new JboException(e);
    } finally
    if (st != null)
    try
    st.close();
    } catch (SQLException unused)
    log.error("Error encountered in sendToTibco method", unused);
    After you wrote the method, you need to move from "Available:" to "Selected" from "Client interface" of your AppleModule. so in Pagedef you click this AM you will see this method.
    Edited by: albertpi on Mar 22, 2010 12:42 PM
    Edited by: albertpi on Mar 22, 2010 12:43 PM
    Edited by: albertpi on Mar 22, 2010 12:46 PM

  • New to Oracle - Stored Procedure Question

    All I want to do is create a stored procedure that returns rows of data from the database. All that I have read says that you use a function for this in Oracle, but all the samples I've seen only returns a single value.
    Can anyone provide a sample for returning rows of data to the client (Visual Basic in my case).
    Thanks.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Rob Davis:
    All I want to do is create a stored procedure that returns rows of data from the database. All that I have read says that you use a function for this in Oracle, but all the samples I've seen only returns a single value.
    Can anyone provide a sample for returning rows of data to the client (Visual Basic in my case).
    Thanks.<HR></BLOCKQUOTE>
    I'm not sure why you had to use a procedure to return rows, but if your objective is to return rows based on joins of tables, why not use views?
    If you have to pass parameters, then that's another story. Sorry!!!
    Cheers
    null

Maybe you are looking for

  • Blocking payment  for stock in quality

    Dear All, We dont have quality  Module in our Project so  the  Material is not  quality  activated,  I  want to block the payment  when material in quality inspection,  and  release for payment should only happan when material is posted  from quality

  • 1 Month trial turned to 1 Month Paid Subscription

     Hello,  I have signed up for the offer of  1 month free trial for Unlimited World on the 29th of June but didn't really find the need to use it. Today I received an email from Skype saying I have bought one more month of the Unlimited World package

  • 10.1.3 EA - Visual Properties Quirks in BC Diagram

    A couple of things I've noticed using the Visual Properties settings for Associations and View Links in the Business Components Diagrams: 1) After manually setting the "Show Association Name" and "Show Role Names" on all of the Associations in a diag

  • Trying to open I tunes but keeps saying msvcr80.dll is missing

    Trying to open I tunes but keeps saying msvcr80.dll is missing

  • Adobe Flash Media Interactive Server 3.5

    Hey, I am thinking about making a web site that streams HD movies and videos that I have created myself. I was wonder could you use Adobe Flash Media Interactive Server 3.5 to do so I know i would have to buy a dedicated server and a fast one with a