3.2; LOV; find button

Hi,
I received following error when i typed "12" (to search for 12's)on textFiled and clicked Find on LOV frame.
DAC-511: ResultSetInfo: could not execute the query.
JBO-27122: SQL error during statement preparation. Statement: SELECT Vendor.VENDOR_ID, Vendor.VENDOR_NAME
FROM VENDOR Vendor WHERE (( = 12))
ORA-00936: missing expression
did i miss something? I beleive somehow i have to bind the textfield to a column on LOV. How?
please advice.
null

Linda,
I developed a class for that with almost 350 line code. of course i will optimize it later when got some free time.
but the idea is simple. i explain in brief. if you still need to see the code let me know your email to attache it to you.
1- create a JDialog class.
2- add a GridControl and two JTestField(to get user criteria)
3- add two buttons(Ok & Cancel)
4- register key and mouse listeners for thoes buttons
5- register key listener for thoes textFields and define keyTyped event
6- Now when user types on thoes JTextfield, fire following dynamic query.
lovRowSetInfo.setQueryCondition(lovRowSetInfo.getAttribute(0).getColumnName()+" like '"+searchString1+"%' AND "+
lovRowSetInfo.getAttribute(0).getColumnName()+" like '"+searchString2+"%'");
lovRowSetInfo.executeQuery();
7- write a method to pass the selected row to out of the class, when Ok button clicked
note that: "lovRowSetInfo" is the name of rowSetInfo that contain the data to search and you could pass it to this class.
Hope this help you.
Ali
null

Similar Messages

  • JDev3.1: BC4J: LOV, Find button

    Hi,
    I took an LOV to populate a text field.
    This LOV shows when clicked on a button(based on an action). Every thing works fine except find button in LOV. When i typed "w" and clicked on Find button, i received this error:
    DAC-511: ResultSetInfo: could not execute the query.
    JBO-27122: SQL error during statement preparation. Statement: SELECT Vendor.VENDOR_ID, Vendor.VENDOR_NAME, Vendor.ADDRESS, FROM VENDOR Vendor WHERE (( = w))
    ORA-00936: missing expression
    Any suggestion?

    sigh. If I'm sounding kinda tense, the closer I get to production deployment, and the harder I'm pounding/testing the resultant application, the odder behavior I'm encountering... some of which appear to due to going to JDEV 3.2/JDK 1.3. Some due to bugs in the JDKs.
    Some issues are probably due to my misunderstanding how things work. I'm getting increasingly irritated at some of the workarounds I'm having to implement, that are doing some very basic stuff through very complex means and massive amounts of redundantly executed code. I'm sure with more documentation, clearer documentation ( or my being able to find the right documentation and understand it ) some of these issues would go away. But that ain't clear.
    Best of Luck
    null

  • LOV Find Problem

    I'm a newbie, so bear with me. I created a form with a couple of LOVs. One is for looking up employees by full_name. When the LOV pops up I do a search on Ar% and I am returned all the employees with names starting with Ar. Now, if I don't choose anything and just change my search criteria, to say Br% and click the find button, nothing happens. The find button is greyed out. If I go back and put in the original search criteria again, it works fine. So, no matter what the search criteria, only the first search works. I have to close the LOV and start again to change the search. Is this normal behavior or am I doing something wrong?
    Here are my LOV property settings:
    Under the General section:
    Subclass Information: LOV
    Under the Functional section:
    List Type: Record Group
    Record Group: EMPLOYEE_RG
    Column mappings are setup.
    Filter before Display: Yes
    Automatic Display: No
    All of the rest of the Automatic properties are set to Yes.
    I have another LOV for returning data from a small table and I have all the Functional section properties the same except for Filter Before Display, which is set to No. I don't have the problem with this LOV.
    However, I've looked at some standard Oracle forms that have LOVs setup the same as my Employee LOV with Filter Before Display being set to Yes and they don't seem to have this problem. So, I'm scratching my head as to what could be causing this. Any help is appreciated. Thanks.

    I'm using Form Builder version 6.0.8.26.0
    Internet Explorer version 6.0.2900.2180
    Operating system is XP Professional.

  • Find button on toolbar won't search current page

    Post Author: sarasew13
    CA Forum: .NET
    I'm having an issue with the Find button on the standard report viewer toolbar for ASP.  When I enter a search term and click on find, it starts searching on the next page even though there are entries (several) that match on the current page.
    I found one mention on the internet that says it only searches forward (if you search from page 5 you won't get the entry on page 2) which is fine.  However, this keeps the user from searching from page 1 (for example) when they are on page 1.  If this is forward only (and that was only mentioned on a site not related to Microsoft or Crystal) then shouldn't it still look on the current page?
    Anyone else have this issue?
    Sara

    Post Author: Ted
    CA Forum: .NET
    Yes. I'm using Crystal Reports for VS 2005 (ASP.NET). I don't see much written about this issue, but it sure annoys me, and my users won't like it either. Unless there is a better alternative, I'll remove the Find feature from the reports completely so that I don't have to deal with user complaints. They can use the browser Find to search a page at a time, or export the report and search using the exported format's application.

  • How to enable the 'FIND' Button in Module Pool Screen. Logic please

    Hi All,
       I am writing one Module Pool Program. I have one requirement like I have to put FIND, FIND+ buttons on different screens.
       I am able to do the code for normal FIND. According to my requirement I have to display one Popup when the user click on FIND button. Once he entered some value it should find all the records and all the fields and display the list of hits in another popup. This whole process should as same as in SE11 Transaction functionality.
       Example: SE11 ->Table Entries -> and click the FIND Button. I need the same functionality in my Program.
       Please let me know ASAP. If you provide some code sample it will be Great.
    Thanks & Regards
    Kiran

    Hi
    If you have just implemented the code for FIND I believe u need to add some little modifications for FIND+.
    U need only to manage the position of the last found value, so u need to go on from that position for FIND+.
    The position should have the two coordinates X (the position in the record) and Y (the number of the record):
    - FOUND should start for postion = 0, 0
    - FOUND+ should start for position = X, Y
    Max

  • UIX Master-Detail  - Find button does not display detail lines

    Hello,
    We have a master-detail UIX page. Master has one attribute only. When 'Next' or 'Previous' buttons are pressed, the next master-detail records are displayed.
    However, when master attribute's value is changed by the user and the 'Find' button is pressed, the new detail lines are not displayed. Also we get following error:
    JBO-26080: Error while selecting entity for <ViewObject>
    Has anyone experienced this issue before?
    Thanks, Ali.

    Please dis-regard this post. The correct sequence is to click on Find button, enter new value then click on Execute button to query new values.
    Thanks, Ali.

  • If i press the Find button didn't get the all fields

    Hi...........
    If i press the find button only two fields get the values remaining fields didn't get the values
    :CONTROL_1.ASSET_NUMBER := i.asset_serial_numebr;
    :CONTROL_1.INSTANCE_NUMBER := i.serial_number; ---------------only this two fields are inserted.
    actually in loop first i taken those two fields then i taken begin i wrote select statement it's not working i think tats why only two fields are get the values.
    i wrote this code in find button
    declare
         cursor c1 is
         select aa.serial_number asset_serial_numebr,
    aa.instance_number serial_number
    from mtl_eam_asset_numbers_v aa,
    mtl_eam_asset_attr_values av
    where aa.serial_number = av.serial_number
    and aa.MAINTENANCE_OBJECT_ID= av.MAINTENANCE_OBJECT_ID
    and av.attribute_category = 'Expected Life Details'
    and av.c_attribute3 not in ('Stolen','Under Disposal')
    and aa.inv_organization_id = :global.ORG_ID
    and aa.inventory_item_id = :CONTROL.INV_ITEM_ID
    order by aa.serial_number;
         cur1 c1%rowtype;
    begin
         open c1;
         fetch c1 into cur1;
         if(c1%NOTFOUND) then
              go_block('CONTROL_1');
         clear_block;
              fnd_message.set_string('Asset not available for selected group');
         fnd_message.show();
    raise form_trigger_failure;
         end if;
         close c1;
         :parameter.RECORD_COUNT := 0;
         go_block('CONTROL_1');
         clear_block;
         first_record;
         for i in c1
         loop
              :CONTROL_1.ASSET_NUMBER := i.asset_serial_numebr;
              :CONTROL_1.INSTANCE_NUMBER := i.serial_number;
         begin
         select
         depr_method,
         commision_date,
         asset_cost,
         asset_life,
         salvage_life,
         period,
         months,
         pre_depr_cost,
         pre_cost_after_depr,
         remarks
         into
         :CONTROL_1.DEPR_METHOD,
         :CONTROL_1.COMMISION_DATE,
         :CONTROL_1.ASSET_COST,
         :CONTROL_1.ASSET_LIFE,
         :CONTROL_1.SALVAGE_LIFE,
         :CONTROL_1.PERIOD,
         :CONTROL_1.MONTHS,
         :CONTROL_1.PRE_DEPR_COST,
         :CONTROL_1.PRE_COST_AFTER_DEPR,
         :CONTROL_1.REMARKS
         from xxeam_depreciation_master
         where org_id = :global.ORG_ID
         and inventory_item_id = :CONTROL.INV_ITEM_ID
         and instance_number = :CONTROL_1.ASSET_NUMBER;
         exception
              when no_data_found then
              null;
         end;
         :parameter.RECORD_COUNT := :parameter.RECORD_COUNT + 1;
              next_record;
         end loop;
         first_record;
    end;
    Please give me any solution................
    Regards
    Mohan

    Mohan,
    We cannot read your mind, so you need to describe what you are trying to do in greater detail.
    And always post your indented code in code tags like this, &#123;code&#125;..your code here..&#123;code&#125;
    begin
    open c1;
    fetch c1 into cur1;
    if(c1%NOTFOUND) then
    go_block('CONTROL_1');
    clear_block;The Fetch is not in a loop, so only the first row will be read.
    And then suddenly we see
    for i in c1
    loop
    next_record;
    end loop;And what FOR i doing in this place? Where is the fetch for the second record onwards?
    Too many errors in the code.
    Regards,

  • Find button

    Hi Everyone,
    I have a screen displaying 3 alv grids, and I have created through menu painter standard toolbar. In that toolbar I have find and find next buttons.
    My requirement is if I press find button it has to search in the grid on which focus is present for the specified string like the find functionality present in the alv grid toolbar.
    How can I implement this.
    Any help on this, sample codes will be greatly appreciated.
    Thanks a lot,
    Prashanth.

    check this program to find how you can manage the grid toolbar button click event from outside.
    BCALV_TEST_GRID_TOOLBAR
    Regards
    Raja

  • Show result before I click "Find" button~

    HI ALL~
    I have a problem~
    ex: A-Group has "Find Page=true"......
    when I navigate FindA-Group.jsp , there has result in the page before I press "FIND" button.(I combine fine page and result page to same page).Of course,I can input some data in query columns,and to find.
    Could it to accomplish??
    How to do it??
    my JheadStart vision:9.0.5.1.8
    Using JSP.

    Spray,
    I don't exactly understand your problem. I assume that you have applied the section from the JHeadstart tutorial called "Find page and result table in same page".
    I assume that the current behavior is that initially (when you first enter the page) you do not see the result table, and that you would like to change that so that it initially shows all rows?
    If that is the case, you could try re-ordering the Struts actions that are performed: first perform a find before you go to the page.
    Hope this helps,
    Sandra Muller
    JHeadstart Team

  • CSF Phone configuration Find button

    We have two clusters.
    1 here in the US and 1 in Germany.
    The one in Germany has a "Find" button next to the "Owner User ID" and one next to the "Primary Phone" entries.
    Anyone know how to enable this on our CUCM here in the US?
    I opened a TAC case and they say they dont have it either. LOL
    Thanks in advance for any help.

    Maybe in the Enterprise Parameters?
    It will only let me go down to 250 on the Max lookup Items..
    I have 150 Users on this system. My other system has 1600+.
    grrr... so close! It is such a pain adding the primary phone this way...

  • BLF SpeedDials NO Find Button

    Hi Guy,please take a look to the picture attached .
    I can't find the Find button to be able to search for directory numbers,instead of uing the drop down list.
    I have this button in different cucm servers other than this one i am working with now.

    Ahmed, did you read my post above
    Here is mine on CUCM 8.6.I think it depends on the amount of DN that you have. If your DN exceed the amount that can be seen in the drop down menu, then the find button appears
    It depends on how many Extensions you have.
    Please rate all useful posts
    "opportunity is a haughty goddess who waste no time with those who are unprepared"

  • Name Dialing and Find button in Device Profile

    I have two questions.
    1. How do I enable "Name Dialing" option in CUCM 8.6, I dont have that option in End user Configuration.
    2. How do I have "FIND" button next to Phone Button Templet in Device Profile configuration window.
    Thanks

    Name dialing not even sure where you got that screenshot, I also don't have it
    Find is only available when you have so many phone button templates and they cannot be shown in the dropdown.
    HTH
    java
    if this helps, please rate
    www.cisco.com/go/pdihelpdesk

  • Cant use find button to open query

    Hi Experts,
    I am having a problem when i use the find button to try and open a query; when i click on the queryto open it get this error:"A critical program error occurred, the program has to close. Please refer to the trace for further information"
    Does anyone know what can be causing this?

    Hi,
    Follow the way the link below.
    https://websmp103.sap-ag.de/patches >> Support Packages and Patches" SAP Frontend Components" SAP GUI FOR WINDOWS" SAP GUI FOR WINDOWS 7.10 CORE >Win32
    There you can find patch level 1 for sapgui 7.10
    Regards,
    Please do not forget reward points for good answers.

  • Remove Find Button in BEx tool

    Hi all,
    I use s_rs_fold object to remove other buttons on BEx analyzer.  However, the find button allow user to find other queries.  How do I remove the find button in BEx?
    Alan

    You can't hide the find button.  But here is my activity:
    S_RS_COMP
    Activity                       16
    InfoArea                       *
    InfoCube                       *
    Name (ID) of a reporting compo *
    Type of a reporting component  REP
    S_RS_COMP1
    Activity                       03, 16
    Name (ID) of a reporting compo *
    Type of a reporting component  *
    Owner (Person Responsible) for *
    Good Luck,
    Allen

  • Activate "Find" button in PO13

    After upgrade to 4.7 from 4.5, the "Find" button (below the menu bar, next to the Print button) in Transaction Code PO13 Maintain Position is greyed-out (deactivated).
    How can I activate the "Find" button ? Thanks.

    Within a Position, a number of Activity Groups have been assigned. Have to page up and down to locate the required Activity Group.
    Any "Find" facility within PO13, to locate the required Activity Group within a position ? Thanks.

Maybe you are looking for

  • Firefox keeps crashing, and I think it might be virus-related.

    I had a nasty virus about a month ago, but after running a couple antivirus programs, it seemed to be gone for good. One of the problems it caused was that it caused Firefox to crash when i had several tabs/windows open at once. But even though the v

  • Year to Date Revenue

    Hi All, Could please give me idea of How to get Estimated Revenue, current YTD Realized Revenue, Prior YTD Realized Revenue and Prior Year total Actual? It would be great if you can provide me Table names and field names. Thanks for your help. Regard

  • Can i upgrade from photoshop cs to cs6?

    hello i have cs1 and i would like to upgrade to cs6 is that possible?

  • Spark Layout Question

    Hi, I am experimenting with Spark Layouts and this what I have <s:List id="list" height="123" verticalCenter="0" dataProvider="{itemList}"                  itemRenderer="MyRenderer" width="350" horizontalCenter="0" depth="100">         <s:layout>    

  • Is recognized but won't sync

    My new Ipod shuffle keeps saying its corrupted. I tunes recognizes it (icon shows under devices) but it won't allow me to sync. It prompts for me to restore it and when I do it still says appears to be corrupted.