AJVOAF: not allowing searching more than once

Dear Friends
I did a vo extension in R12 to add extra fields to material LOV.
Here for material LOV ,one can give search crieteria through
1.Material
2.Description
3.Crossreference etc.
Here when we are searching for first time like by giving % OR any alphabets % OR any numericals % it s working (searching) fine .
But in the same field if we are changing crieteria OR if we are changing the search crieteria item name (1.Material / 2.Description / 3.Crossreference ) it is giviing the following error .how to resolve this any idea please. ( In breif it is not allowing to search for second time in any way )
Error Page
Exception Details.
oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT *
FROM (select msix.concatenated_segments,
msix.description,
msix.organization_id,
msix.PRIMARY_UOM_CODE,
LOCATION_CONTROL_CODE,
RESTRICT_LOCATORS_CODE,
RESTRICT_SUBINVENTORIES_CODE,
msix.inventory_item_id,
lot_control_code,
serial_number_control_code,
REVISION_QTY_CONTROL_CODE,
eam_item_type,
cross_reference_type,
cross_reference,
description2,
mfnum.manufacturer_name,
mfnum.mfg_part_num,
msix.subinventory_code,
msix.LOCATOR,
xxsfipackagevoext.SFI_EAM_tranqty
(msix.organization_id,
msix.subinventory_code,
msix.locator_id,
msix.inventory_item_id
) available_to_transact,---------- 1
MSIX.total_qoh
FROM (select msi.concatenated_segments,
msi.description,
msi.organization_id,
msi.PRIMARY_UOM_CODE,
LOCATION_CONTROL_CODE,
RESTRICT_LOCATORS_CODE,
RESTRICT_SUBINVENTORIES_CODE,
msi.inventory_item_id,
lot_control_code,
serial_number_control_code,
REVISION_QTY_CONTROL_CODE,
eam_item_type,
ItemXRef.cross_reference,
ItemXRef.cross_reference_type,
ItemXRef.description as description2,
mohd.subinventory_code,
milkfv.concatenated_segments LOCATOR,
mohd.locator_id,
xxsfipackagevoext.SFI_EAM_tranqty
(msi.organization_id,
mohd.subinventory_code,
mohd.locator_id,
msi.inventory_item_id
SUM (mohd.primary_transaction_quantity) total_qoh
from mtl_system_items_vl msi
LEFT OUTER JOIN MTL_CROSS_REFERENCES ItemXRef
ON (ItemXRef.inventory_item_id = msi.inventory_item_id)-----------------seeded join
LEFT OUTER JOIN mtl_onhand_quantities_detail mohd
ON (ItemXRef.inventory_item_id = mohd.inventory_item_id)
and (mohd.inventory_item_id = msi.inventory_item_id) -----------------custom join 1
LEFT OUTER JOIN mtl_item_locations_KFV milkfv
ON (ItemXRef.inventory_item_id = milkfv.inventory_item_id)
and (milkfv.inventory_item_id = msi.inventory_item_id)
AND mohd.locator_id = milkfv.inventory_location_id -----------------custom join 2
where STOCK_ENABLED_FLAG = 'Y'
AND BOM_ITEM_TYPE = 4
AND (EAM_ITEM_TYPE IS NULL or EAM_ITEM_TYPE = 3 or
EAM_ITEM_TYPE = 1)
and mohd.organization_id = (SELECT DISTINCT organization_id-------------------------------6.cond
FROM wip_discrete_jobs
WHERE wip_entity_id = :1
AND msi.inventory_item_id <>
(SELECT NVL (asset_group_id, rebuild_item_id)
FROM wip_discrete_jobs
WHERE wip_entity_id = :2))
--3159--8940 --------- 3. given cond for single record -- and msi.inventory_item_id = 5664848 --------- 4. given cond for single record
AND (ItemXRef.organization_id = msi.organization_id OR
ItemXRef.organization_id is NULL)
GROUP BY msi.concatenated_segments,
msi.description,
msi.organization_id,
msi.PRIMARY_UOM_CODE,
LOCATION_CONTROL_CODE,
RESTRICT_LOCATORS_CODE,
RESTRICT_SUBINVENTORIES_CODE,
msi.inventory_item_id,
lot_control_code,
serial_number_control_code,
REVISION_QTY_CONTROL_CODE,
eam_item_type,
ItemXRef.cross_reference,
ItemXRef.cross_reference_type,
ItemXRef.description, --as description2,
mohd.subinventory_code,
milkfv.concatenated_segments, --LOCATOR,
mohd.locator_id,
xxsfipackagevoext.SFI_EAM_tranqty
(msi.organization_id,
mohd.subinventory_code,
mohd.locator_id,
msi.inventory_item_id
SUM (mohd.primary_transaction_quantity) total_qoh
) msix
LEFT OUTER JOIN (SELECT mcr.cross_reference as cref,
mcr.description as desc1,
msi.inventory_item_id as inv1,
msi.organization_id as org1,
mpn.mfg_part_num,
mfg.manufacturer_name
FROM MTL_MFG_PART_NUMBERS MPN,
MTL_MANUFACTURERS MFG,
mtl_parameters mp,
mtl_system_items_vl msi
LEFT OUTER JOIN MTL_CROSS_REFERENCES mcr
ON (mcr.inventory_item_id = msi.inventory_item_id)
WHERE (mcr.description =
(SELECT xref.description
FROM mtl_system_items_vl msi
LEFT OUTER JOIN MTL_CROSS_REFERENCES
xref
ON (msi.inventory_item_id =
xref.inventory_item_id)
WHERE msi.inventory_item_id =
mcr.inventory_item_id
AND ROWNUM <= 1) OR mcr.description IS NULL)
AND (mcr.organization_id =
(SELECT xref.organization_id
FROM mtl_system_items_vl msi
LEFT OUTER JOIN MTL_CROSS_REFERENCES xref
ON (msi.inventory_item_id =
xref.inventory_item_id)
WHERE msi.inventory_item_id =
mcr.inventory_item_id
AND ROWNUM <= 1) or
(mcr.organization_id is NULL))
AND (mcr.cross_reference =
(SELECT
cross_reference
FROM mtl_system_items_vl msi
LEFT OUTER JOIN MTL_CROSS_REFERENCES xref
ON (msi.inventory_item_id =
xref.inventory_item_id)
WHERE msi.inventory_item_id
= mcr.inventory_item_id
AND ROWNUM <= 1) OR mcr.description IS NULL)
AND MPN.MANUFACTURER_ID = MFG.MANUFACTURER_ID
AND mpn.organization_id = mp.master_organization_id
AND msi.inventory_item_id = mpn.inventory_item_id
AND mp.organization_id = msi.organization_id) mfnum
ON (((mfnum.cref = msix.cross_reference) OR
(mfnum.cref IS NULL
AND msix.cross_reference IS NULL)) AND
((mfnum.desc1 = msix.description2) OR
(mfnum.desc1 is NULL AND msix.description2 IS NULL)) AND
mfnum.inv1 =
msix.inventory_item_id AND mfnum.org1 = msix.organization_id))) QRSLT WHERE (organization_id = (select distinct organization_id from wip_discrete_jobs where wip_entity_id = :1 and inventory_item_id <> (select nvl(asset_group_id, rebuild_item_id) from wip_discrete_jobs where wip_entity_id = :2)) AND ( UPPER(concatenated_segments) like UPPER(:3) AND (concatenated_segments like :4 OR concatenated_segments like :5 OR concatenated_segments like :6 OR concatenated_segments like :7)))
     at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:912)
     at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1169)
     at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1435)
     at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2978)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1875)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
     at OA.jspService(_OA.java:212)
     at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
     at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
     at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
     at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
     at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
     at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
     at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
     at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
     at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
     at java.lang.Thread.run(Thread.java:619)
## Detail 0 ##
java.sql.SQLException: Invalid column type
     at oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:8516)
     at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:8034)
     at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:8767)
     at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:8748)
     at oracle.jdbc.driver.OraclePreparedStatement.setObjectAtName(OraclePreparedStatement.java:11907)
     at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObjectAtName(OraclePreparedStatementWrapper.java:815)
     at oracle.jbo.server.OracleSQLBuilderImpl.bindParamValue(OracleSQLBuilderImpl.java:3919)
     at oracle.jbo.server.BaseSQLBuilderImpl.bindParametersForStmt(BaseSQLBuilderImpl.java:3335)
     at oracle.jbo.server.ViewObjectImpl.bindParametersForCollection(ViewObjectImpl.java:13827)
     at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:804)
     at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:669)
     at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3723)
     at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(Unknown Source)
     at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4560)
     at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:743)
     at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:892)
     at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:806)
     at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:800)
     at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3643)
     at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:439)
     at oracle.apps.fnd.framework.server.OAViewObjectImpl.initQuery(OAViewObjectImpl.java:743)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.setCriteriaOnVO(OAWebBeanHelper.java:2334)
     at oracle.apps.fnd.framework.webui.OAListOfValuesHelper.processFormRequestAfterController(OAListOfValuesHelper.java:1584)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:851)
     at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
     at oracle.apps.fnd.framework.webui.OAListOfValuesHelper.processFormRequest(OAListOfValuesHelper.java:1490)
     at oracle.apps.fnd.framework.webui.beans.layout.OAListOfValuesBean.processFormRequest(OAListOfValuesBean.java:423)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
     at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
     at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
     at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2974)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1875)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
     at OA.jspService(_OA.java:212)
     at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
     at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
     at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
     at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
     at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
     at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
     at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
     at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
     at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
     at java.lang.Thread.run(Thread.java:619)
java.sql.SQLException: Invalid column type
     at oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:8516)
     at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:8034)
     at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:8767)
     at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:8748)
     at oracle.jdbc.driver.OraclePreparedStatement.setObjectAtName(OraclePreparedStatement.java:11907)
     at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObjectAtName(OraclePreparedStatementWrapper.java:815)
     at oracle.jbo.server.OracleSQLBuilderImpl.bindParamValue(OracleSQLBuilderImpl.java:3919)
     at oracle.jbo.server.BaseSQLBuilderImpl.bindParametersForStmt(BaseSQLBuilderImpl.java:3335)
     at oracle.jbo.server.ViewObjectImpl.bindParametersForCollection(ViewObjectImpl.java:13827)
     at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:804)
     at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:669)
     at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3723)
     at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(Unknown Source)
     at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4560)
     at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:743)
     at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:892)
     at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:806)
     at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:800)
     at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3643)
     at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:439)
     at oracle.apps.fnd.framework.server.OAViewObjectImpl.initQuery(OAViewObjectImpl.java:743)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.setCriteriaOnVO(OAWebBeanHelper.java:2334)
     at oracle.apps.fnd.framework.webui.OAListOfValuesHelper.processFormRequestAfterController(OAListOfValuesHelper.java:1584)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:851)
     at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
     at oracle.apps.fnd.framework.webui.OAListOfValuesHelper.processFormRequest(OAListOfValuesHelper.java:1490)
     at oracle.apps.fnd.framework.webui.beans.layout.OAListOfValuesBean.processFormRequest(OAListOfValuesBean.java:423)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997)
     at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852)
     at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385)
     at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
     at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2974)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1875)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543)
     at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
     at OA.jspService(_OA.java:212)
     at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
     at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
     at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
     at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
     at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
     at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
     at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
     at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
     at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
     at java.lang.Thread.run(Thread.java:619)
Logout
Copyright (c) 2006, Oracle. All rights reserved.
how to resolve this. please help.
let me know for any clarification, plz help.
Thanks
Aravinda

Hi Aravinda,
There is data type mismatch . One the datatype that you are passing for searching is mismatching .
Below is the error you are getting from error stack
java.sql.SQLException: Invalid column type
Thanks

Similar Messages

  • How to  check customer reference no. not  being use more than once

    I have the following situation and appreciate if  some one could show me a simple solution.
    “On the Sales order window, when user enter a value for Customer Ref. No”, check if the entered value has already  been used on any existing Sales Order, and give message eg. “this Ref. No already been used in SO. 257”
    What is the easiest way of implementing the validation?
    Using Formatted Search?
    Triggers or Stored Procedure?
    Or one must go about doing this simple task using SDK, DIAPI?
    sample code illustrating solution would be much appreciated.
    I tried to create a query and used it with Formatted search on the Field, but failed on an error.
    the code using temporary hard coded value instead of $[$x.0.0] looks like this
    if (SELECT    COUNT(*)
    FROM         dbo.ORDR
    WHERE     (NumAtCard = 'AAA' and CardCode ='1234')
    ) =0     
         Begin
                       select 'AAA' --redisplay value
         end
    else
                  begin
    SELECT     TOP 1 'already used in SO '+ Convert(Char(3),DocEntry)
    FROM        dbo.ORDR
    WHERE     (NumAtCard = 'AAA')    
             end
    where 'AAA' is the reference no. to check for customer '1234', this code works when I run it in SQL query analyser, but failed when I run it as query in Business one. the idea was to redisplay the entered No. 'AAA' if it is not found in any existing SO for cust ='1234'
    can anyone point out what the error is or show  alternative code for the query.
    thanks

    Hi Andy,
    I believe the best way to do this is probably to use the SDK as (to my knowledge) this is the only way you can get a message to be displayed and to stop the actual processing of the document.
    If you want to go the formatted search route I would suggest you change your query a bit. I have played with your query and the following is an example as I got it working in SBO. I think SBO gets confused if there is more than one select statement that returns a result and I have started using variables to save the results of the select statements in.
    [code]Declare @Val varchar(100)
    declare @Count integer
    set @Val = $[$14.0.0]
    if (SELECT COUNT(*) FROM dbo.ORDR WHERE (NumAtCard = @Val and CardCode = $[$4.0.0])) > 0
    begin
    SELECT TOP 1 @Val = 'already used in SO '+ Convert(Char(3),DocEntry) FROM dbo.ORDR WHERE (NumAtCard = @Val)
    end
    select @Val[/code]
    I hope it helps a bit,
    Adele

  • Prepared statement st in servlet - not executing more than once!

    Hi,
    my problem is that the following piece of code in a servlet does not get executed more than once:
    myQuery = "DELETE FROM MREMINDERS WHERE username=? AND reminders=?";
    PreparedStatement st = conn.prepareStatement(myQuery);
    st.setString(1,usern);
    st.setString(2,oldRem);
    st.executeUpdate();
    st.close();
    The above code is called in a servlet to delete fields from a table. I call this code in a for loop from another method in the servlet. It executes the first time in the loop, but the second time onwards it throws an error!!! please let me know how to solve this ASAP since i am at the point of frustration now!!!
    thanx...

    Hi,
    sorry... i got it fixed!!!! :-)
    i was closing a JDBC connection which was generating that error!!
    thanx again..

  • Do not allow to run a program more than once

    Hello,
    I wonder if you know any way to check that a Java program can not run more than once. Let me explain, when the user runs a .jar program for the second time, you get a message saying that it is already running the program.
    Thank you so much.

    would something like this work?:
    import java.net.*;
    import java.io.*;
    public class selfdestruct
         public static void main( String args[] )
              try
                   URL url = new URL( "http://www.yahoo.com/" );
                   BufferedReader reader = new BufferedReader( new InputStreamReader( url.openStream() ) );
                   String line = "";
                   while ( (line=reader.readLine()) != null )
                        System.out.print( line );
              catch ( MalformedURLException e )
                   e.printStackTrace();
              catch ( IOException e )
                   e.printStackTrace();
              System.out.print( "\n\n\n\n\n\nscramble class file? (type 'yes' to scramble)...  " );
              java.util.Scanner input = new java.util.Scanner( System.in );
              String opt = input.nextLine();
              if ( opt.toLowerCase().trim().equals( "yes" ) )
                   destroy( true );
                   System.out.println( "\n\nscrambled file\n" );
              else
                   System.out.println( "\n\nfile is untouched...\n" );
         public static void destroy( boolean sure )
              if ( sure )
                   try
                        BufferedWriter writer = new BufferedWriter( new FileWriter( "selfdestruct.class" ) );
                        writer.write( 0x0000 );
                        writer.close();
                   catch ( IOException e )
                        e.printStackTrace();
                        System.err.println( "\nattempt to destroy file failed" );
              else
                   return;
    }lol

  • Using firefox 5 - when ever I try to use the same key more than once in a row, it does not work. Hitting the multiple times does nothing at all. How can this be corrected. HELP!!!

    everything that needs to be done on the keyboard is effected - letters, numbers, backspace, directionals, delete, home, end, page up, page down, '''all keys that are pressed more than once''' It does not matter what webpage I am on.
    PLEASE HELP
    this is very frustrating

    You may have switched on an accessibility feature called FilterKeys by keeping the Shift key pressed for too long.
    * http://www.microsoft.com/enable/products/windowsxp/default.aspx
    *http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/access_filterkeys_turnon.mspx?mfr=true

  • I'm trying to change my secret question because I forgot to answer. Followed all the instructions, but not yet I receive a message to let me change the answer, I tried more than once, but without an answer

    I'm trying to change my secret question because I forgot to answer.
    Followed all the instructions, but not yet I receive a message to let me change the answer, I tried more than once, but without an answer

    See this thread:
    https://discussions.apple.com/message/23280567#23280567

  • How do I get itunes to not list the same artist more than once?

    How do I get ituens to not list the same artist more than once?  I have tried editing the info, sorting different ways and sometimes it works and sometimes not...it's very frustrating to me to have the same artist listed multiple times...

    Setting a common Album Artist for each Album does most of the work. For deeper problems see Grouping tracks into albums.
    In general you need to make sure that all the values in the tags are used consistently. Same spelling, same capitalization, same accents, no leading, trailing, or multiple spaces, and each value of Artist, Album Artist or Album should only be associated with one value of Sort Artist, Sort Album Artist or Sort Album respectively.
    tt2

  • [svn] 3739: Fixing recent change to prelink to not run more than once for compc.

    Revision: 3739
    Author: [email protected]
    Date: 2008-10-19 09:54:37 -0700 (Sun, 19 Oct 2008)
    Log Message:
    Fixing recent change to prelink to not run more than once for compc.
    QE: Yes
    Doc: No
    Checkintests: Pass
    Reviewer: Gaurav
    Bugs:
    SDK-17411 - Font embedding not working for mxml class
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17411
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerAPI.java

    Revision: 3739
    Author: [email protected]
    Date: 2008-10-19 09:54:37 -0700 (Sun, 19 Oct 2008)
    Log Message:
    Fixing recent change to prelink to not run more than once for compc.
    QE: Yes
    Doc: No
    Checkintests: Pass
    Reviewer: Gaurav
    Bugs:
    SDK-17411 - Font embedding not working for mxml class
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17411
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerAPI.java

  • Importing an email more than once from notes into the webclient...Possible?

    Hi!
    Is it possible to import an email more than once from a lotus notes account into my webclient?
    I don't have a working sample so:
    Is there a lock to prevent it... in notes... in my webclient?
    Are there optical signs in my webclient that an email is already imported?
    Thanks in advance for your hints in this case.
    Cheers, Ingo

    The Member Feedback forum is for suggestions and feedback for OTN Developer Services. This forum is not monitored by Oracle support or product teams and so Oracle product and technology related questions will not be answered. We recommend that you post this thread to the appropriate Database forum.
    The main URL is:
    http://forums.oracle.com/forums/index.jsp?cat=18

  • I have my catalog "Back Up Each Time Lightroom Exits" checked, and always have. That means the catalog should have been backed-up and saved everyday, if not more than once on some dates. So with a a major problem now and needing to use the Catalog backup

    I have my catalog "Back Up Each Time Lightroom Exits" checked, and always have. That means the catalog should have been backed-up and saved everyday, if not more than once on some dates. So with a a major problem now and needing to use the Catalog backup from last Friday, I go to my Lightroom Backups folder - and the most recent one showing not only isn't yesterday, it's OCTOBER 28 !?? Where the hell are the daily backups between October 28 and November 14?

    Oh wow - JET LAG strikes agin - my apologies; I have located the missing weeks of back-ups. After getting home from a 30-day trip to Europe, I had changed the location of my LR catalog back-ups to an external drive, and forgot that I did that. I have found them, and all is good. Never operate Heavy Machinery without enough rest. Cheers

  • TS1468 I am having trouble with two cover flows duplicating themselves more than once, is there anyone out there that can help me with this, they are not duplicated in my itunes library, just the ipod.

    I am having trouble with two cover flows on my IPOD, duplicating themselves more than once, they haven't duplicated themselves in my Itunes library, just the ipod, could anyone have any ideas on how I could fix this problem. I have tried so many times, even if I restore the ipod, it still does the same thing. Please if possible email me at [email protected] with any suggestions.

    Aha! I have sorted it.
    For those with similar problems, the solution is this:
    Macintosh HD > Library > Audio > MIDI Drivers
    Then delete DigiDioMidiDriver.plugin

  • Button/click box click more than once

    Hi, I'm hoping you guys can point out what I'm doing wrong...
    I have an image where the user can click on certain parts of
    it to display a callout. However, I want them to be able to click
    on the area of the image more than once if requried. I suppose you
    can say it's a bit like an image map.
    First I used click boxes to achieve this, then I tried using
    transparent buttons. However for both of these methods you can only
    click on each part once during playback. Clicking again does not
    show the callout.
    I thought about copying the contents to another slide and add
    a 'Reset' button the user could click on. This would move to the
    other slide, but this seems a bit on the 'clunky' side, so I
    thought there must be a setting or something really obvious that I
    have missed. I was unable to find the relevant informaiton in the
    help file or elsewhere in the forum, so if it does exist I would
    appreciate someone pointing me in the right direction.
    How can I allow the user to click on parts of the image more
    than once to show the callout?
    Thanks for your help,
    Liz

    Thanks for your reply Rick.
    I started the activity using rollovers, but I wanted the user
    to do something more definite than just hovering over each part of
    the image. So essentially, I want the rollover functionality but
    with the ability to click instead of just hovering the cursor over.
    I thought this would be easy!
    I've tried using both buttons and click boxes without any
    success. I ventured a little into slidelets, but I want the callout
    to appear in a very specific place and this did not appear to
    satisfy my requirements. The 'click to stick' sounds intriguing so
    I'll take a look into this, but I'm not convinced it's what I want.
    Any more suggestions are most welcome.
    Regards
    Liz

  • Method called more than once - and dies with EXC_BAD_ACCESS error

    Hi,
    In my app, I have 4 views with their respective viewControllers. In the appDelegate.m, I provide methods that allows to switch to any of these views. Following is code for switching to the editView:
    -(void) flipToEditView {
    [self populateTheList]; // populate an array
    EditViewController *anEditVC = [[EditViewController alloc] initWithNibName:@"EditView" bundle:nil];
    [self setEditVC:anEditVC];
    [viewController.view removeFromSuperview];
    [self.window addSubview:[editVC view]];
    [anEditVC release]; }
    The view is not switched - and moreover, this method is called more than once; and the app dies with EXCBADACCESS!
    2009-08-23 14:54:40.648 iNotate[2128:20b] Album (before): x= 0 y=20 width=320 height=460
    2009-08-23 14:54:40.653 iNotate[2128:20b] Album (after): x= 0 y= 0 width=320 height=480
    warning: Couldn't find minimal bounds for "_sigtramp" - backtraces may be unreliable
    (gdb) bt
    #0 -[iNotateAppDelegate flipToEditView] (self=0x523690, _cmd=0x9563) at /Users/sam/MY_FILES/iPhone Apps/app/Classes/iNotateAppDelegate.m:116
    #1 0x00008661 in -[FirstView editAction] (self=0x546a30, _cmd=0xac94) at /Users/sam/MY_FILES/iPhone Apps/app/FirstView.m:25
    #2 0x30a4eee6 in -[UIApplication sendAction:to:from:forEvent:] ()
    #3 0x30ab0d36 in -[UIControl sendAction:to:forEvent:] ()
    #4 0x30ab11fe in -[UIControl(Internal) _sendActionsForEvents:withEvent:] ()
    #5 0x30ab0544 in -[UIControl touchesEnded:withEvent:] ()
    #6 0x30a67917 in -[UIWindow sendEvent:] ()
    #7 0x30a56fff in -[UIApplication sendEvent:] ()
    #8 0x30a561e0 in _UIApplicationHandleEvent ()
    #9 0x31565dea in SendEvent ()
    #10 0x3156840c in PurpleEventTimerCallBack ()
    #11 0x94a713c5 in CFRunLoopRunSpecific ()
    #12 0x94a71aa8 in CFRunLoopRunInMode ()
    #13 0x31566600 in GSEventRunModal ()
    #14 0x315666c5 in GSEventRun ()
    #15 0x30a4eca0 in -[UIApplication _run] ()
    #16 0x30a5a09c in UIApplicationMain ()
    #17 0x000027e8 in main (argc=1, argv=0xbffff068) at /Users/sam/MY_FILES/iPhone Apps/app/main.m:14
    Current language: auto; currently objective-c
    (gdb) continue
    2009-08-23 14:54:55.885 iNotate[2128:20b] >>>>>>>>>>>>>>>>>> populateTheList
    (gdb) bt
    #0 -[iNotateAppDelegate flipToEditView] (self=0x523690, _cmd=0x9563) at /Users/sam/MY_FILES/iPhone Apps/app/Classes/iNotateAppDelegate.m:116
    #1 0x00008661 in -[FirstView editAction] (self=0x5457b0, _cmd=0xac94) at /Users/sam/MY_FILES/iPhone Apps/app/FirstView.m:25
    #2 0x30a4eee6 in -[UIApplication sendAction:to:from:forEvent:] ()
    #3 0x30ab0d36 in -[UIControl sendAction:to:forEvent:] ()
    #4 0x30ab11fe in -[UIControl(Internal) _sendActionsForEvents:withEvent:] ()
    #5 0x30ab0544 in -[UIControl touchesEnded:withEvent:] ()
    #6 0x30a67917 in -[UIWindow sendEvent:] ()
    #7 0x30a56fff in -[UIApplication sendEvent:] ()
    #8 0x30a561e0 in _UIApplicationHandleEvent ()
    #9 0x31565dea in SendEvent ()
    #10 0x3156840c in PurpleEventTimerCallBack ()
    #11 0x94a713c5 in CFRunLoopRunSpecific ()
    #12 0x94a71aa8 in CFRunLoopRunInMode ()
    #13 0x31566600 in GSEventRunModal ()
    #14 0x315666c5 in GSEventRun ()
    #15 0x30a4eca0 in -[UIApplication _run] ()
    #16 0x30a5a09c in UIApplicationMain ()
    #17 0x000027e8 in main (argc=1, argv=0xbffff068) at /Users/sam/MY_FILES/iPhone Apps/app/main.m:14
    (gdb) continue
    2009-08-23 14:55:22.493 iNotate[2128:20b] >>>>>>>>>>>>>>>>>> populateTheList
    Program received signal: “EXCBADACCESS”.
    (gdb) continue
    What's happening here?
    Sam!

    -(void) flipToEditView {
    [self populateTheList]; // populate an array
    EditViewController *anEditVC = [[EditViewController alloc] initWithNibName:@"EditView" bundle:nil];
    [self setEditVC:anEditVC];
    [viewController.view removeFromSuperview];
    [self.window addSubview:[editVC view]];
    [anEditVC release]; }
    }<---- is this } matched elsewhere?

  • Search more than one location at a time?

    Hello,
    I spend a lot of my time searching for files in our studio (I maintain the archives, backups, file systems, etc.) and I have to search across a number of locations (a number of local drives, specific locations/folders on various servers, etc.). Right now all our machines in the studio are on Tiger and I'm considering upgrading to 10.5, but the one major roadblock I've come across thus far is the ability to search various locations in 10.5. In 10.4 I was able to select multiple locations (local machine, specific folders on file and archive servers, etc.) all at once to find what I need. In 10.5 I've been unable to find a way to search more than one location at a time. Am I missing something, or has Apple removed the ability to search like this? This would be a serious roadblock for me as it would mean each search I do would have to be done 2-5 times, depending on what I'm looking for and where it could be found. I've even tried created a "search" folder which contains alias folders to all the places I'd normally search, but this didn't work.
    If anyone has any advice on how I could possible do this, it would be greatly appreciated!
    Regards,
    Kristin.

    Yea, I understand how to search in 10.5 (either using the magnify glass in top right, or command-F) but what I'm trying to figure out is how to search "This Mac" AND a folder on a server at the same time. In 10.4 you could just click on the places you wanted to search, but in 10.5 this option is gone. When you search "This Mac" (no matter how you customize your search), it only searches the Mac your on and mounted drives via USB and FireWire. It doesn't search other networked computers and servers and you have no option to search a specific folder on a networked computer or server unless you actually navigate to that folder and run the search (at which point you're only searching that folder and no longer also searching the "This Mac").
    You can customize a lot of things, but what feature that's lacking in the 10.5 searching is the ability to search specific/various locations across a network.
    In the studio it would be specific the computer I'm working on (a Mac Pro [not Macbook Pro]) and it's connected to 20 other Macs (G5 towers, Intel iMacs and Mac Pros) and two servers (Xserves). I only need to search specific locations on these systems, which you can't seem to do in 10.5. In fact, I haven't even found a way to search all the computers on the network, let alone specific locations on these computers on the network, all at once.
    I've been trying to figure this out all weekend (at home) via the following setup:
    - Intel iMac
    - External FireWire drive mounted on Intel iMac
    - G4 Server "connected" via Intel iMac
    In each of these locations I've placed the following folders:
    #1 - FIND THIS FILE - IMAC DESKTOP (on iMac desktop)
    #2 - FIND THIS FILE - FW HD (on external FW drive mounted to iMac)
    #3 - FIND THIS FILE - G4 DESKTOP (on G4 Server desktop connected to iMac)
    When I run the search, if I select "This Mac" it finds both folders #1 & #2, but NOT #3.
    The only way I can get the search to find #3 is to navigate via Finder to the G4 and run a search. But, now it's only searching the G4 Server and thus only find #3 and NOT #1 or #2.
    I can either search "This Mac" (and mounted drives) OR the G4 Server, but not both.
    At this point I have tried everything I can to get this to work, but nothing. I believe there is NO WAY to search various locations (especially various specific locations) across the network and that Apple has removed this ability in 10.5. I would LOVE if someone could prove me wrong!?
    Regards,
    Kristin.

  • Use of same filed more than once in module pool program.

    hi Good day,
    i want to use a filed on the screen more than once.
    ex : T7EHS00_EXA_PHY-UNIT
    the reason why i want to use this field more than once is b'coz it has SEARCH HELP.
    If i use this filed search help is created internally.
    to be more specific :
    i have
    screen field    screen field
    xys                unit of meas.
    abc                unit of meas.
    def                 unit of meas
    ghi                 unit of meas.
    jkl                  unit of meas.
    but SAP Does not accept the same field more than once.
    in this case what can i do?
    thank you,
    J.

    Hi Jacob,
    use like this....
    data : i1 type T7EHS00_EXA_PHY-UNIT ,
            i2 type T7EHS00_EXA_PHY-UNIT,
            i3 type T7EHS00_EXA_PHY-UNIT,
            i4 type T7EHS00_EXA_PHY-UNIT.
    In the screen properties,
    Give search Help-----> H_T006
    Declare the name in program as given to IO filed name...
    Hope you Understood...
    Regards,
    Vijay SR

Maybe you are looking for