Error in a search screen

i have designed a search query screen with four fileds-empno,ename,hiredate1,hiredate2 . .if i enter some empno in empno field it has to retrieve all the emps belong to that number . .the same applies to remaining also . . in order to do this requirement i have tried a key next item on ename field . . just to see whether it works or not . . .
declare
cri varchar2(20);
begin
cri:='ename='||:block3.ename;
set_block_property('emp',default_where,cri);
go_block('emp');
execute_query;
end;
there are no errors but when i enter the ename in field and run it is displaying as   FRM-40505: ORACLE error: unable to perform query.Can anyone rectify this.

Since ename is varchar2 field :block3.ename must be enclosed in quotes in the 'cri:=' statement
Something like that cri:='ename='||''''||:block3.ename||''''; and will be ok

Similar Messages

  • Oracle.jbo.NoDefException: Error in Quick Search when we use View  Criteria

    We encountered NoDefException error in Quick Search. We are using JDeveloper 11.1.1.6.0, JHeadstart 11.1.1.4
    I am able to reproduce the error by applying Oracle's HR schema. The following are the steps to reproduce with HR schema:
    1. Create an employee view named EmpVw by using the following query:
    select
    employee_id,
    first_name,
    last_name,
    email,
    phone_number,
    salary
    from employees
    2. Create a lookup view named CountryLookupView by using the following query:
    select
    country_id,
    country_name
    from countries
    3. Create a view named EmpCountryVw by using the following query:
    select
    emp.employee_id,
    emp.first_name,
    emp.last_name,
    cnty.country_id,
    cnty.country_name
    from employees emp
    inner join departments dept
    on emp.department_id = dept.department_id
    inner join locations loc
    on dept.location_id = loc.location_id
    inner join countries cnty
    on loc.country_id = cnty.country_id
    4. Create a LOV for the CountryId attribute in EmpCountryVw. The data source for this LOV is the CountryLookupView we just created. UI hints list type is Input Text with List of Values.
    5. Create View Criteria for EmpVw view, name it as EmpVwSearchCriteria Select EmpCountryVw from Attribute list, Operator is Exists, Operand is Inline View Criteria.
    6. Create new service EmployeeSearchService. Select EmpVw to the data model.
    7. In JHeadStart Application Definition Editor, create a new service node EmloyeeSearchService, set EmpVwSearchCriteria as Quick Search View Criteria in Search Settings section. Run the JAG, and then run the application.
    8. On the application screen, select EmployeeSearchService from the module drop-down list, on Emp Vw screen, click the glass icon to display the pop-up country search dialog, type in CA as country code, run the search, select the row with "Ca Canada" and then click OK button to close off the pop-up dialog. on Emp Vw screen, click "->" to run the search with Country Id = CA. Note the error dialog popup.
    The error message is: oracle.jbo.NoDefException: JBO-25058
    Caused by: oracle.jbo.NoDefException: JBO-25058: Definition data_MyJhsTutorial_UIShellPageDef_mainRegion_oracle_hr_pageDefs_EmpVwPageDef_WEB_INF_adfc_config_EmpVw_xml_EmpVwTaskFlow_EmpVwIteratorEmpVwSearchCriteriaQuery.vcrow125.EmpCountryVw.EmpCountryVwNestedCriteria.vcrow128.CountryId of type Attribute is not found in EmpVw.
         at oracle.jbo.server.ViewObjectImpl.findAttributeDef(ViewObjectImpl.java:7310)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding._isTransientAttribute(FacesCtrlSearchBinding.java:585)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding._changeQueryModeIfNeeded(FacesCtrlSearchBinding.java:577)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding.processQuery(FacesCtrlSearchBinding.java:397)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         ... 63 more
    Please let me know if you have solution for this error. Thanks in advance.
    Sarah

    Sarah,
    I could reproduce the error.
    However, I created a drag-and-drop page fragment with quick search and table, and modified the adfc-config-EmpVw task flow to reference the drag and drop page:
    <view id="EmpVwTable">
    <page id="__120">/EmpvwDD.jsff</page>
    </view>
    And then I still get the same error, so this looks like an ADF bug to me.
    I also created a stand-alone jspx page using drag and drop, same error as well. I suggest you make a testcase without JHeadstart and contact Oracle Support.
    Steven Davelaar,
    JHeadstart Team.

  • Validation Error in complaint search with changed on field.

    Hi all,
    I have added changed on field in complaint search screen of IC agent role, while searching for a complaint using changed on field, data as last month. We are getting an error message saying "Date M+-1 is invalid". Which I am suspecting as an validation error. Please also refer if any notes.
    FYR, Error is attached. Fast responses are highly appreciated.
    Thanks,
    Vivek.

    Hi Vivek,
      Your intention is need  to find the error validation?
      If that could be the case,then we can check from where that error message is coming!!
    1. Add a parameter in su3 BSPWD_USER_LEVEL and value is 8. If you go to web ui and place the cursor in error message, it will display the message class and message number.
    2. Then go to SE91 and put the class and number, check where used list. So that u can easily find the code logic beyond that field validation.
    Reply if u need more!!!
    Regards,
    Sugan.

  • Formatted Search screen - populate multiple fields

    I have an Employee Id field in my screen.
    On clicking Choose button,I use a Formatted Search screen to populate value to that field.
    I also have other fields like employee Name,department which should be populated, once an employee Id is chosen from Formatted Search screen.
    The functionality is like that of "Purchase Order screen".
    Once a vendor Id is chosen Name,Contact Person etc get populated in "Purchase Order screen".
    How do I do that?
    Should I trap the Choose button event of Formatted Search screen?
    Please help.

    I think all you are missing is a check to make sure you don't try and re-run the lookup when you are validating the return value from a previous lookup.
    I made a minor change to my code and achieved the behaviour you described.  I have extracted the relevant  code from the application .  Unfortunately it looses its indentation when I post it, so it might be quite hard to read.  It uses recordsets for the validation as in practice most of the real validation is more complex than this cut-down sample.
    This particular example is from a screen with a Customer Code prompt, and displays the customers name below it.
    Regards,
    John.
    <b>Constant holding menu uid of Formatted Search</b>
    Public Const AZU_MNU_SEARCH             As Long = 7425
    <b>Declare a variable at module level</b>
    Dim mblnCardLookup as Boolean
    <b>Create validation routine (cut down sample included)</b>
    Sub ValidateCustomer(sboApp As SAPbouiCOM.Application, sboCompany As SAbobsCOM.Company, BubbleEvent As Boolean)
        On Error GoTo ErrorHandler
        Const AZU_PROCEDURENAME     As String = "ValidateCustomer"
        Dim sboRecordset            As SAPbobsCOM.Recordset
        Dim sboForm                 As SAPbouiCOM.Form
        Dim sboDSCard               As SAPbouiCOM.UserDataSource
        Dim sboDSName               As SAPbouiCOM.UserDataSource
        Set sboForm = sboApp.Forms(strUID)
        Set sboDSCard = sboForm.DataSources.UserDataSources("UCARD")
        Set sboDSName = sboForm.DataSources.UserDataSources("UNAME")
        If sboDSCard.value <> "" Then
            Set sboRecordset = sboCompany.GetBusinessObject(BoRecordset)
            sboRecordset.DoQuery "Select CardCode, CardName, Currency From OCRD where CardCode Like '" & sboDSCard.value & "%'"
            If sboRecordset.RecordCount < 1 Then
                If sboDSName.value <> "" Then
                    sboDSName.value = ""
                    sboForm.Items("edtName").Update
                End If
                If Not mblnCardLookup Then
                    LookupCustomer sboApp
                End If
                BubbleEvent = False
                Exit Sub
            End If
            sboRecordset.MoveFirst
            sboDSCard.value = sboRecordset.Fields(0).value
            sboDSName.value = sboRecordset.Fields(1).value
            mstrCurrency = sboRecordset.Fields(2).value
            sboForm.Items("edtName").Update
        Else
            sboDSName.value = ""
            sboForm.Items("edtName").Update
            BubbleEvent = False
        End If
        Set sboDSName = Nothing
        Set sboDSCard = Nothing
        Set sboForm = Nothing
        Set sboRecordset = Nothing
        Exit Sub
    ErrorHandler:
        Call AZU_STD_ERROR_MSGBOX(AZU_MODULENAME, AZU_PROCEDURENAME)
    End Sub
    <b>Create lookup routine (cut down sample included)</b>
    Private Sub LookupCustomer(sboApp As SAPbouiCOM.Application)
        On Error GoTo ErrorHandler
        Const AZU_PROCEDURENAME     As String = "LookupCustomer"
        Dim sboForm                 As SAPbouiCOM.Form
        Set sboForm = sboApp.Forms(strUID)
        mblnCardLookup = True
        sboApp.ActivateMenuItem AZU_MNU_SEARCH
        Set sboForm = Nothing
        Exit Sub
    ErrorHandler:
        Call AZU_STD_ERROR_MSGBOX(AZU_MODULENAME, AZU_PROCEDURENAME)
    End Sub
    <b>Add the following code to the ITEMEVENT handler</b>
        'Validate Customer Code
        If pVal.EventType = et_VALIDATE And pVal.ItemUID = "edtCard" And pVal.Before_Action = False Then
            Call ValidateCustomer(sboApp, sboCompany, BubbleEvent)
        End If
        'Customer Code Lookup on TAB Key
        If pVal.EventType = et_KEY_DOWN And pVal.ItemUID = "edtCard" And pVal.Before_Action = True And pVal.CharPressed = 9 Then
            Set sboDSCard = sboApp.Forms(strUID).DataSources.UserDataSources("UCARD")
            If sboDSCard.value = "" Then
                LookupCustomer sboApp
                BubbleEvent = False
            End If
        End If
        'Force Validation on Return from Lookup
        If pVal.EventType = et_FORM_ACTIVATE And mblnCardLookup = True Then
            sboApp.Forms(strUID).Items("edtRef").Click
            mblnCardLookup = False
        End If

  • HT4407 I have already installed Window-7 in my Mac (64 bit). When I downloaded window support software I every time saw network error option on my screen. But network working very well and I can brows webpage. Will someone suggest me support for OSx Lion

    I have already installed Window-7 in my Mac (64 bit). When I downloaded window support software I every time saw network error option on my screen. But network working very well and I can brows webpage. Will someone suggest me support for OSx Lion .

    If I remember right there "may" be a problem if you have a proxie settings enabled.
    System Preferences/ Network/ Advanced/ Proxies. Can't remember which one or if it was an issue in 10.7 or 10.6. Just make sure their all unchecked and try again.
    You might try a search in these forums for more information. Different fix's for different issue's.
    Sorry I can't help more.........

  • Error while writting a screen in report

    Hello Friends,
                            I am running a report while executing i am getting error Error when writing a screen,
    If anyone have useful answer please replay.
    Thanking
    Shrikant

    Hello ,
    While running program i am getting following dump error.
    Short text                                                                        
        Error when writing a screen.                                                                               
    What happened?                                                                    
        Error in the SAP kernel.                                                                               
    The current ABAP "ZHRM_DEVIATION_ALL" program had to be terminated because the
        ABAP processor detected an internal system error.                             
    Thanks
    Shrikant

  • Not able to display and search on CLOB attribute in default search screen

    Hi,
    My requirement:
    I have three VARCHAR attributes and 1 CLOB attribute. i need to search the values on these 4 attributes.
    Created View crieteria on these 4 attributes and created default ADF search screen. but not able to add the CLOB attribute as search attribute.
    is there any solution for this or we can't search on CLOB attribute.
    FYI: i have created Converter using ClobDomain and and using this converted for editing the CLOB data.
    If i try adding the CLOB attribute in view criteria with ClobDomain and not able to see that attribute on search panel.
    Please help on this.
    Thanks in advance!!
    Thanks & Reagrds,
    Madhu

    Madhu, please tell us your jdev version!
    The search is done on the DB (query) so the converter is not used. To search clob columns you can use special SQL statements called contains or catsearch. These are using special index to find the data in blob or clob columns.
    Check my blog on how to integrate this into VC: http://tompeez.wordpress.com/2011/08/21/extending-viewcriteria-to-use-sql-contains-4/
    Timo

  • Required values should be displayed in forst search screen for Variable

    HI Gurus
    I have a Variable CUSTOMER which has 20000 values. In the first search screen we are getting 1 to 1000 values by default ( I have selected 1000 in properties). But I want the Values between 6000 to 7000. Is it possible?
    Thanks in advance.
    Best Regards
    Raj

    Hi
    I want to give single value in between 6000 to 7000. The single values which appear in first search should not be 1 to 1000. It must be 6000 to 7000
    Thanks
    Raju

  • Why is it that when I go to the search screen to find a particular message in a conversation it comes up with the message but when I click on it it takes me to the conversation where the most recent message was sent and not the message I wanted

    Why is it that when I go to the search screen and type in a particular message I want to view, my iPhone finds it but when I click on it it only takes me to the conversation at the most recently thing texted and not the particular message I clicked on?

    Never occurred to me you can search messages that way, thanks.
    Another way to do it is to scroll from the most recent message to the top of the screen and tap load more messages, repeatedly till you reach the one you want.
      I like your method better, but with both methods it refreshes to the most recent message.

  • How to change the default operators in sap web ui Search screen?

    How to change the default operators in sap web ui Search screen?
    For eg. Using advance search option , I have some fields with default operators like equals, contains,is between, is less than and is greater than. I don't need all these operators for this field.
    I need only "equals" operator. How do i remove the rest of the operators?

    There is a view cluster crmvc_dq where all the standard setting is present related to you r issue. Please try if you can modify that, that way you will avoid the code.
    Incase you are not able to make any changes there then in that case you have to redefine the method GET_DQUERY_DEFINITION () of the IMPL class to delete the operators for a particular serach field.
    Regards,
    Harshit

  • Itunes wont launch, no error message, no blue screens, just wont open

    itunes wont launch, i get no error message, no blue screen, it just wont open. I've tried to delete and reinstall, but once i close itunes i still have same issue. it wont open again.

    I have same problem  on my XP lap top and Windows 7 PC.    Apple have been investigating this problem for me for a week now without success so far.  Understand it 's ongoing with other customers as well.
      It is caused by an bit of program called APSDaemon supplied by Apple in latest i-Tunes.     Your quick fix to enable you to open i-Tunes again is as follows:-     open Task Manager (right click bottom toolbar), click on Task Manager, select Processes.   Find APSDaemon, highlight and press END PROCESS.      I-tunes will now re-open ok.   You have to repeat this every time you want i-Tunes re-opened until you switchoff or restart.
    A pain I know, but lets you keep going until Apple repair and release an update for i-Tunes

  • How to give error message for the screen element text field when wrong i/p

    How to give error message for the screen element text field when wrong i/p
    when wrong input given
    eg. 
    I have a text box with SBOOK-CARRID
    so when user give wrong entry in text box i.e LG
    then I should give some error stating that the the input is invalid or not available ,
    now it showing the error of standard messages,
    i want manual message to be displayed when error comes.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla

    Hi all,
    Thank you for your valuable reply,
    but the thing is that its a screen field,
    i.e text box not a selection screen
    i created in screen layout
    with name sbook-carrid
    now i want to get error message display if wrong i/p is given
    thank you.
    Regards,
    Jagrut bharatkumar Shukla,

  • Error Message in selection screen Status bar is getting truncated

    Hi Guys,
    Error Message in selection screen Staus bar is getting truncated (full message is not getting displayed).... can anybody tell me how to reslove this

    Hi
    Maimum we can give the error message length is 50 char. If you give more than that it will get truncated.
    What you can do this split 50 and 50 like that you can give 200 chnars.
    Data : Text1 type char50
              Text2 type char50
    If sy-surc ne 0.
    Message Text1 Text2  TYPE "E'' or 'S'
    endif.

  • Issue with programmatically created LOV on Advanced Search Screen in OCO.

    Hi All,
    I am trying to create a LOV programmatically on Advanced search screen of Oracle Customer's Online module for the country field present there, i have extended a controller and
    in it i am carrying out the creation for this.
    i am using the below code to do this.
    i am able to access the particular rowlayout bean and code below is starting after that.
    OARowLayoutBean CountryRowLayoutBean =
                            (OARowLayoutBean)RgtColTableLayoutBean.getIndexedChild(8);
                        if (pageContext.isLoggingEnabled(PROCEDURE))
                            pageContext.writeDiagnostics(this,
                                                         "CountryRowLayoutBean: " +
                                                         CountryRowLayoutBean,
                                                         PROCEDURE);
                        int CountryRowLytChldCount =
                            CountryRowLayoutBean.getIndexedChildCount();
                        if (pageContext.isLoggingEnabled(PROCEDURE))
                            pageContext.writeDiagnostics(this,
                                                         "CountryRowLytChldCount : " +
                                                         CountryRowLytChldCount,
                                                         PROCEDURE);
                        OAMessageTextInputBean CountryMsgTxt =
                            (OAMessageTextInputBean)CountryRowLayoutBean.getIndexedChild(2);
                        if (pageContext.isLoggingEnabled(PROCEDURE))
                            pageContext.writeDiagnostics(this,
                                                         "CountryMsgTxt : " +
                                                         CountryMsgTxt,
                                                         PROCEDURE);
                        CountryMsgTxt.setRendered(false);
                        OAMessageLovInputBean CountryLOV =
                            (OAMessageLovInputBean)createWebBean(pageContext,
                                                                 LOV_TEXT, null,
                                                                 MatchRuleAttrId); //MatchRuleAttrId - the fields are rendered through DQM so, this is the Id for the text input , same is taken as id for LOV, to enable search later.
                        if (pageContext.isLoggingEnabled(PROCEDURE))
                            pageContext.writeDiagnostics(this,
                                                         "CountryLOV : " + CountryLOV,
                                                         PROCEDURE);
                        CountryRowLayoutBean.addIndexedChild(CountryLOV);
                        Integer webBeanRegionAppId =
                            (Integer)webBean.getAttributeValue(REGION_APPLICATION_ID);
                        CountryLOV.setAttributeValue(REGION_APPLICATION_ID,
                                                        webBeanRegionAppId);
                        // Specify the path to the base page.
                        CountryLOV.setAttributeValue(REGION_CODE,
                                                        "/oracle/apps/imc/ocong/search/webui/ImcSearchPage");
                                  CountryLOV.setAttributeValue(LOV_REGION_APPLICATION_ID,
                                                        webBeanRegionAppId);
                        // Specify the LOV region definition.
                        CountryLOV.setLovRegion("/oracle/apps/ar/hz/address/webui/HzCountryLOV",
                                                   webBeanRegionAppId.intValue()); //Standard LOV region used
                        // Validation should be enabled for LOVs unless it's essential for the field to allow a partial value (in a "Search" region, for example).
                        CountryLOV.setUnvalidated(false);
                        CountryLOV.setAttributeValue(SELECTIVE_SEARCH_CRITERIA,
                                                        true);
                        CountryLOV.setAttributeValue(SEARCH, true);
                        // Configure the LOV mappings.
                        // Note that you must call this method after you add the messageLovInput item
                        // to the web bean hierarchy.
                        // base page item
                        // lov item
                        // direction
                        if (pageContext.isLoggingEnabled(PROCEDURE))
                            pageContext.writeDiagnostics(this,
                                                         "webBeanRegionAppId : " +
                                                         webBeanRegionAppId,
                                                         PROCEDURE);
                        if (pageContext.isLoggingEnabled(PROCEDURE))
                            pageContext.writeDiagnostics(this,
                                                         "MatchRuleAttrId : " +
                                                         MatchRuleAttrId,
                                                         PROCEDURE);
                        CountryLOV.addLovRelations(pageContext,
                                                      MatchRuleAttrId,
                                                      "TerritoryShortName",
                                                      LOV_RESULT,
                                                      LOV_REQUIRED_NO); // base page item
                        // lov item
                        // direction
                        CountryLOV.addLovRelations(pageContext,
                                                      MatchRuleAttrId,
                                                      "TerritoryShortName",
                                                      LOV_CRITERIA,
                                                      LOV_REQUIRED_NO);
    I am facing the issue that the torch icon is visble on the screen but when i click on it, it does not display the LOV region and a blank page saying website declined to show the page is displayed.
    Please suggest what needs to be added that i am missing right now.
    Thanks,
    Mayank

    on the first option I mean you can add new region  programaticaly like this on Processrequest
                OAStackLayoutBean newLocationLovs=
                    (OAStackLayoutBean)createWebBean(pageContext
                                                        ,"/yandex/oracle/apps/csi/instance/location/webui/YaLocationLovsRN"
                                                        , "xxnewLocationLovs"
                                                        ,true);
                  webBean.addIndexedChild(newLocationLovs);   

  • Error occurred during search

    Hello,
    I'm getting the following error when I use the search in the Portal:
    Error occurred during search: com.sapportals.wcm.WcmException: error: communication with preprocessor failed;index=teste,location=cdphl815:30203 (Errorcode 42)
    That's probably an indexing error:
    Indexing document failed. Preprocessor: failed (Errorcode 6800)
    But I don't know what to do to fix this.
    Please... help me!!
    Thanks
    Luisa

    Hi Luisa,
    It might help:
    Trex Administration Tool:
    http://help.sap.com/saphelp_erp2004/helpdata/en/23/92bd4016c0cc38e10000000a155106/frameset.htm
    General TREX Configuration :
    http://help.sap.com/saphelp_erp2004/helpdata/en/c2/d81e40777cdd5fe10000000a155106/frameset.htm
    Post-Installation Activities :
    http://help.sap.com/saphelp_erp2004/helpdata/en/8b/1cc83edf72e16be10000000a114084/frameset.htm
    Hope it helps,
    Yoav

Maybe you are looking for