Query after searching !!

hi all,
I have a problem with the searching on view objects;
when I perform a search for example on emplyees with salary > 5000, I got the required employees (3 employees for example)
The problem is when I navigate to this page again I find only those 3 employees not all !!
How to solve this??
I've tried to override the executeQuery method to set the where clause to null but nothing changed, I've printed the sql query of this view object before and after setting the where clause to null and I found them the same !!
Bassam

Hi,
At the moment you got to a page, you should call an ApplicationModule method that will retrieve the viewobject that needs to be cleared, and call applyViewCriteria(null) on it.
For example:
public void clearEmployeesCriteria()
getEmployees().clearViewCriteria();
For any further information about how to call application module methods from a page, see the ADF Developers Guide or the JDeveloper forum.
Regards,
Evert-Jan de Bruin
JHeadstart Team

Similar Messages

  • How to hide a node with no children in ADF Tree after Search

    Hi,
    I have a tree component with Search in my screen.
    I followed http://www.jobinesh.com/2010/01/search-by-child-attributes-on-tree.html to implement search.
    Search is performing on the childnodes, once the search is done I am expanding all the nodes and displaying only the filtered records.
    my code to expand all the nodes :
    public void expandAllTreeNodes() {
    UIXTree tree = getGroupTree();
    RowKeySet disclosedRowKeys = new RowKeySetTreeImpl(true);
    CollectionModel model = (CollectionModel)tree.getValue();
    JUCtrlHierBinding treeBinding = (JUCtrlHierBinding)model.getWrappedData();
    JUCtrlHierNodeBinding nodeBinding = treeBinding.getRootNodeBinding();
    List<JUCtrlHierNodeBinding> childNodes = nodeBinding.getChildren();
    if (childNodes != null) {
    for (JUCtrlHierNodeBinding _node : childNodes) {
    disclosedRowKeys.add(_node.getKeyPath());
    disclosedRowKeys.remove(_node.getKeyPath());
    tree.setDisclosedRowKeys(disclosedRowKeys);
    Now I want to hide the nodes which does not have children after search.
    how can I hide the node if _node.getChildren() is null.
    Could any one provide some inputs on this.
    Thanks,
    Swathi

    AE Basics
    Keyframe the mask path.

  • Im trying to download the new itunes so i can use my iphone 5 , however , the new itunes requires Mac OS X 10.6.8 or later and i cant seem to install that onto my imac even after searching for the new update (my imac is currently on 10.5.8.

    .Im trying to download the new itunes so i can use my iphone 5 , however , the new itunes requires Mac OS X 10.6.8 or later and i cant seem to install that onto my imac even after searching for the new update (my imac is currently on 10.5.8.

    You have already seen that you cannot load the new iTunes into your 10.5.8, so as Neil says, you need Snow Leopard (current cost £14).    And you'll probably need to update the disc you buy via the combo update, though that is free.
    As far as the new iTunes is concerned, there's been a certain amount of grumbling so you may want to study the forums before you update.   The main problem has been with album artwork which does not transfer easily.

  • Query to search engine

    please can any body help me in my project
    how to send query to search engine and get the answer back?

    Use URLConnection class and its I/O APIs.

  • Can't work with the Query after I save a 3.5 Query in 7.0 Query Designer

    Hello,
    my Problem is, I open a 3.5 Query in a 7.0 Query Designer. Then I save as another name. When i Open the Query
    i can't change things... WHY ? A Standart Transport is OK in RSA1, Transport, BexTransport. all ok..
    can't work with the Query after I save a 3.5 Query in 7.0 Query Designer
    Best Regadrs

    Hi,
    I cant click on it. It is grey..
    I open the 3.x Query in a 7.0 Query Designer and save as another name.. Then I try to open it with the 7.0 tool. The Query is displayed. But I cant change something...
    thnx

  • Heavu CPU Utilization of Dictionary Query - After 9i to 10g Upgrade

    Hi Friends,
    We have migrated our production DB from Oracle 9i(Windows) to Oracle 10g(AIX) and after that a heavy cpu utilization query is coming frequently and hence many timeouts are happening in the application.
    Application is connecting to the database through Java Application (JDBC).
    Once the application service is started, below query is invoked and CPU takes around 20% continuously.
    The interesting thing is this query is not owned by the application schema but by SYS and it's invoked from Application Schema.
    We have raised an SR but still no luck.
    Any help will be very much appreciated.
    SELECT -- Packaged procedures with no arguments package_name AS procedu
    re_cat, owner AS procedure_schem, object_name AS procedure_name, NULL
    , NULL, NULL, 'Packaged procedure' AS remarks, 1 AS procedure_type
    FROM all_arguments WHERE argument_name IS NULL AND data_type IS NULL AN
    D package_name LIKE :3 ESCAPE '/' AND owner LIKE :4 ESCAPE '/' AND obje
    ct_name LIKE :5 ESCAPE '/' UNION ALL SELECT -- Packaged procedures with a
    rguments package_name AS procedure_cat, owner AS procedure_schem, obj
    ect_name AS procedure_name, NULL, NULL, NULL, 'Packaged procedure'
    AS remarks, 1 AS procedure_type FROM all_arguments WHERE argument_name IS
    NOT NULL AND position = 1 AND position = sequence AND package_name L
    IKE :3 ESCAPE '/' AND owner LIKE :4 ESCAPE '/' AND object_name LIKE :5
    ESCAPE '/' UNION ALL SELECT -- Packaged functions package_name AS proce
    dure_cat, owner AS procedure_schem, object_name AS procedure_name, NU
    LL, NULL, NULL, 'Pa
    Regards,
    Savad

    Pl do not post duplicate threads - Heavy CPU Utilization of Dictionary Query - After 9i to 10g Upgrade
    Srini

  • Sum of the sql query after a control break

    Hi all,
    I need some help about getting the final sum of the sql query after doing a control break in a dynamic report, ( the control break make me the sum of each report but didn't leave me the sum of all the query)
    Thanks in andvance for your help !!
    Eric

    Have a look at the text_io package:
    http://www.oracle.com/webapps/online-help/forms/10g/state?navSetId=_&navId=3&vtTopicFile=f1_help/oraini/c_text_io.html&vtTopicId=
    cheers

  • Query about Search help exits

    Hi experts,
               I have one query regarding search help. I have created a elementary search help which is having two fields.Now my requirement is that in the selection screen when I will enter any value in one field and i will press F4 in other field the list should contain only the values corresponding to the first field.
    e.g.two fields comp code and name of company. When I will select the company code and press F4 in the second field the companies corresponding to the particular code should appear. Should I write a particular exit for that.
      Experts please help me.
      I will reward points accordingly.
      Thanks in advance,
        Abir.

    hi abir,
    no neeed for that.
    here i am fetching zones under a country.
    so first user enters a country.
    eg india.
    then on the zone field f4 help, only the zones of india shulod come.
    chk how i did it.
    *&      Form  F_GET_ZONE_DESC
          THIS SUB ROUTINE WILL FETCH THE ZONE DESCRIPTION
    -->  p1        F_GET_ZONE_DESC
    <--  p2        F_GET_ZONE_DESC
    FORM f_get_zone_desc .
      CLEAR int_ret.
      IF wf_country_code IS INITIAL.
    *--MESSAGE IS 'Country Not Selected'.
        MESSAGE s016(zm050).
      ELSE.
    *--THIS WILL FETCH THE ZONE CODES INTO THE INTERNAL TABLE'INT_ZONE_CODE'
    *--WITH RESPECT TO A COUNTRY CODE.
        SELECT zonecode zone_desc
          FROM zmpets_zone
            INTO TABLE int_zone_code
              WHERE land1 = wf_country_code
               AND loekz NE 'X'.
        IF sy-subrc NE 0.
    *MESSAGE IS 'No Zone Available In <COUNTRY_NAME>
          MESSAGE s019(zm050) WITH wf_country_desc.
        ELSE.
          CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
            EXPORTING
      DDIC_STRUCTURE         = ' '
              retfield               = 'WF_ZONE_CODE'
      PVALKEY                = ' '
      DYNPPROG               = ' '
      DYNPNR                 = ' '
      DYNPROFIELD            = ' '
      STEPL                  = 0
      WINDOW_TITLE           =
      VALUE                  = ' '
             value_org              = 'S'
      MULTIPLE_CHOICE        = ' '
      DISPLAY                = ' '
      CALLBACK_PROGRAM       = ' '
      CALLBACK_FORM          = ' '
      MARK_TAB               =
    IMPORTING
      USER_RESET             =
            TABLES
              value_tab              = int_zone_code
      FIELD_TAB              =
             return_tab             = int_ret
      DYNPFLD_MAPPING        =
           EXCEPTIONS
             parameter_error        = 1
             no_values_found        = 2
             OTHERS                 = 3
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
          READ TABLE int_ret INDEX 1." INTO INT_RET.
          wf_zone_code = int_ret-fieldval.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDFORM.                    " F_GET_ZONE_DESC
    rgds
    anver
    if helped mark points

  • When i click on 'Show all in Finder' after searching for anything on spotlight, NOTHING happens! No Finder window opens up and the spotlight dropdown menu just shuts! Please help!

    When i click on 'Show all in Finder' after searching for anything on spotlight, NOTHING happens! NO Finder window opens up and the spotlight dropdown menu just shuts! Please help!

    I'm having the same problem in other places as well, for example when i downloaded Easyfind right now, clicking the small magnifying glass button on the right of the file name (shown below) would usually open up finder highlighting the file, but now nothing happens when i click on that button!
    Is there a solution for this, as this was a very useful feature which i used ALL the time?

  • Nokia music manager-closes just after searching

    Hi there,
    The Nokia music manager suddenly closes, without any error messages after searching foor music on my drives.
    The program is simply shut down. I connected a N91.
    Thanks in advance for support.

    hi
    See the tips
    http://www.ohgizmo.com/2006/10/19/top-19-tips-to-get-the-most-from-your-nokia-n91/
    Nokia music manageris not the greatest
    music

  • Re-Query After Exiting

    Hello,
    I have a form formA where I select an item from the form and based on the item it navigates to another form called formB, corresponding to the item. I make changes in formB and does commit. After commit and it comes back to formA.
    I need to re-query after making changes in formB and it should reflect in formA after exiting.
    Which function I should use to achieve this functionality?

    Hi!
    If you use the call_form build-in to call formB, you can query your block in formA
    direct after calling the formB like:
    declare l_cur_record pls_integer := :system.cursor_record;
    begin
    call_form ( 'formB', hide, no_replace ... );
    go_block ( 'your_block' );
    execute_query;
    go_record ( l_cur_record );
    end;if you use the open_form build-in to call formB, you have to use
    a when-window-actived trigger in formA like:
    declare l_cur_record pls_integer := :system.cursor_record;
    begin
    go_block ( 'your_block' );
    execute_query;
    go_record ( l_cur_record );
    end;Regards
    Edited by: Magoo on 18.10.2009 13:49

  • I just updated my 3gs to iOS5 and it keeps on saying cannot activate iphone.. after searching videos how to activate it.. i can't tap my three fingers because there is no clock showing on my screen. how do i go about it? help please.

    i just updated my 3gs to iOS5 and it keeps on saying cannot activate iphone.. after searching videos how to activate it.. i can't tap my three fingers because there is no clock showing on my screen. how do i go about it? help please.

    i have the exact same problem and im still currently trying to figure out how to activate it

  • SQL Query to search all the tables for a given string

    Hi all,
    This is concerning a query to search each and every table/column for a given string.
    I came across a similar post (Re: question about searching 600 tables and this query seems to be inline with my requirements:
    select table_name,
    column_name,
    :search_string search_string,
    result
    from cols,
    xmltable(('ora:view("'||table_name||'")/ROW/'||column_name||'[ora:contains(text(),"%'|| :search_string || '%") > 0]')
    columns result varchar2(10) path '.'
    where table_name in ('MY_TABLE')
    However, I am getting the following error:
    ORA-24451: OCIKCallPushTrusted, Maximum call depth exceeded
    I am using Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit and could you please let me know the best possible way to accomplish this task?
    Thanks.
    Edited by: itech.quest on Sep 19, 2010 8:30 AM

    Hi Tamir,
    Thanks so far. I am yet to make the crucial breakthrough as far my application goes. Are you talking about the EUL5_QPP_STATS table? I tried retrieving worksheets even from that table also with the following query
    SELECT DISTINCT Eul5QppStats.QS_DOC_NAME,Eul5QppStats.QS_DOC_DETAILS
    FROM EUL5_QPP_STATS Eul5QppStats,EUL5_DOCUMENTS Eul5Documents
    WHERE Eul5QppStats.QS_DOC_NAME = Eul5Documents.DOC_NAME
    However, the worksheet data retrieved by Discoverer Oracle's product is not matching my dataset for every workbook. Please suggest.
    Reg
    Thomas

  • Reg Message Lov Input Field In Query Region Search.

    Hi ,
    I have a issue to implement a Message Lov Input Field in Query Region Search(AutoCustomizationSearch).
    Please Help on this Issue
    Thanks & Regards
    Santhu

    Santhu ,
    Please Let us know the step you have followed to achieve this , and what is the error you are getting .
    Regards ,
    Keerthi

  • To execute the query after getting connected to db from a unix shell script

    How the variable "output" can be used in the sql query after getting connected to database.
    Code:
    #!/bin/bash
    sort shipments | uniq > test1.txt
    sed "s/.*/'TESCO.&',/;$ s/,//" test1.txt | paste -s -d '' > output
    sqlplus glo/glo@tcot
    select * from xx where column_name in ($output)
    In this case, am getting connected to database, but cursor is waiting at sql prompt, with out executing the above select query.
    Please help.

    Try something like:
    #!/bin/bash
    sort shipments | uniq > test1.txt
    sed "s/.*/'TESCO.&',/;$ s/,//" test1.txt | paste -s -d '' > output
    sqlplus glo/glo@tcot << EOF
    WHENEVER SQLERROR EXIT 1;
    WHENEVER OSERROR EXIT 1;
    set serveroutput on
    declare
    v_data varchar2(100) := NULL;
    BEGIN
    select col_name into v_Data from xx where column_name in ('$output')
    and rownum < 2;
    dbms_output.put_line(v_Data);
    end;
    exit
    EOF

Maybe you are looking for