How to clear last search criteria in ADF form?

I'm building an ADF form. This form uses JTextField controls. When I switch to Find Mode, I want to clear criteria of the last search that JDev remembered. I've tried to remove ActionListener of FIND button in Navigation Bar, then add a new ActionListener that I created to handle FIND action myself. But the results are not perfect as I expected: JDev still filled the last search criteria.
For example, I searched with these criteria: Code = 'ABC', the next time enter Find Mode, I want this criteria to be cleared. My code is below:
JButton btnFind = navApplication.getButton(navApplication.BUTTON_FIND);
btnFind.removeActionListener(navApplication);
btnFind.addActionListener(new ActionListener(){
       public void actionPerformed(ActionEvent e)
     navApplication.doAction(navApplication.BUTTON_FIND);
     if (navApplication.getModel().isFindMode())
          txtCode.setText("");
          txtName.setText("");
          txtAddress.setText("");
});

Hi,
Could, some body please answer to my question I raised above.
Cheers,
Krishna.

Similar Messages

  • How to Clear QBE Search Criteria?

    We have a taskflow which is invoked as a popup in a jsff page, this popup contains a table where the user can query using QBE. After the popup is closed and reopened, the search criteria in the QBE is retained.
    Any idea how to clear the QBE search criteria?

    You can use the following code to clear the filters:
    ViewCriteria vcDefault = vo.getViewCriteria(ViewCriteriaManager.IMPLICIT_VIEW_CRITERIA_NAME);
    if (vcDefault != null) {
    vcDefault.clear();
    see the following blog:
    http://smconsultants.in/2013/08/clearing-table-filters-when-the-user-comes-back-to-same-page-with-in-a-taskflow.html

  • How to Dynamically add Search Criteria in Advance Search Region.

    Hi All,
    I want to understand how can we add Search Criteria dynamically in the Advance Search Region.
    The Requirement is to add 4 additional search criteria for an org_id in a multi org structure. For other business those fields should not be visible.
    I did try this with the form personalization but could not Show/hide the additional search criteria programatically for the business as we can only see 4 search criteria at the time of page load and other criteria comes in the drop down list to add which can not be show/hide after page load.
    I thought of a solution to add search criterias dynamically for my org through extending controller.
    I found the OAAdvanceSearchBean (advance search Region in controller) object for my Advance Search but could you tell me how can I add the Criteria Row in that Advance Search (createWebBean function) and then add the item in criteria Row dynamically.
    Also please tell me how we can increase the showed criteria from default 4 to more, setDisplayedCriteriaCount(int) is not allowed and it is not working also.
    Thanks.
    Regards,
    Ashish Bansal

    Hi,
    As Lars said The "Search Option Set" and the "Search Component Set" offer you quite some flexibility.
    You can configure both of these component to customize your search.
    Once you did it, you can create a new basic search iview and set these components.
    On the other hand, you also customize the layout use to show result of search.
    Dont'f forget that you need to configure Trex and create an index.
    For instance, I configured the search criteria, the system only asked me some metadatas (created by us,whose value are dependents). Each time that you upload a document you set these attributes.
    Then when you want to search, appear a screen with these values
    Country :
    City:
    search field:
    Patricio.

  • Regarding date ranges in search criteria in oracle forms

    I am using employee number,name, person type, and date ranges as search criteria in custom form.
    when I enter employee number, hit the find button, I am getting the exact info in the result block.
    Result block contains
    employee name,personid,emp numb,org,start_date.
    Similarly when I enter employee number,dept, I am getting correct values.
    My question here is, when I enter date range. Iam unable to filter data.
    When i enter START_DATE between nvl(:BLOCKNAME.START_DATE,'01-JAN-1901') and nvl(:BLOCKNAME.END_DATE,'31-DEC-4712') at where clause in the result block. I got data for the date range also.
    if I give condition in the where clause, results are taking so much time when i search with employee name,number,dept,person type.
    If i query with date, persormance is good.
    Do u any know,how to prevent START_DATE between nvl(:BLOCKNAME.START_DATE,'01-JAN-1901') and nvl(:BLOCKNAME.END_DATE,'31-DEC-4712') when we search with employee name,number,dept,person type.

    Initailly Ididnt given any code in the where clause of the result block. I got data in the result block when i search with employee name,number,person type,dept etc except date range.
    If i give date range, irrespective of the date, getting all the data.
    after that i added code to the where clause of the result block. Now i am getting data for everything.
    like, when i query with employee name,number,even date range also.
    My question here, performance.
    when I query with date range, data is coming in expected time in the result block.
    when i query with dept, taking much time since date range logic exist in the where clause of the result block.
    I need to restrict the where clause only to the data ranges. Where clause should not necessary for employee number,name,person type dept search criteria
    Tahnks for your reply

  • Hi I want to create a search form with drop down search criteria. This form should then search on the same site and display the search results. Is there HTML available for this? Or an oline site that I can use to build this form? I created a form in Jotfo

    Hi I want to create a search form with drop down search criteria. This form should then search on the same site and display the search results. Is there HTML available for this? Or an oline site that I can use to build this form? I created a form in Jotform.com, but this form doesn't search the site, instead it sends me an e-mail. Do you have a solution for me? Thanks.

    Hi I want to create a search form with drop down search criteria. This form should then search on the same site and display the search results. Is there HTML available for this? Or an oline site that I can use to build this form? I created a form in Jotform.com, but this form doesn't search the site, instead it sends me an e-mail. Do you have a solution for me? Thanks.

  • How to get the search criteria value in model

    Hi,
    I've a search page and one of the search item has BETWEEN operator. How can I get the values for this search criteria item in model project ie., inside the VOImpl.java?
    Thanks

    As you gave no jdev version and no use case all I can tell is to look at http://www.oracle.com/technetwork/developer-tools/adf/learnmore/59-table-filter-by-data-range-176653.pdf which might help.
    What do you want to do with the parameter inside the VO?
    Depending on the use case and jdev version there are other possible solutions.
    Timo

  • How to implement "Date searching criteria"

    I have a block contains some textboxes such as project_no, project_name, startdate.
    I would like to search by startdate.
    For example, I have 2 other text items for searching only. the first item is "DATE1" the second item is "DATE2". I want a user to enter a date into the first text item "DATE1" and enter another date into the second text item "DATE2". then click on execute button to get the result.
    The result is supposed to be all StartDates that match the criteria.
    How can i implement this in forms6i???
    Thank you in advance for your help.

    ok, i will explain more in details,
    I have a data block contains some text boxes (sno, empno, projectno, startdate), currently, users can click the "Execute" button and return all records or users can go to Enter query mode and insert a value (search criteria) into any of these textboxes, and then they will get the required record after clicking the "Execute" button.
    I added 2 non database text boxes(date1,date2) for searching purpose, it will return all startdates located between these 2 dates. I used the following code for that and its working fine but "IT DISABLED THE OTHER SEARCHING CRITERIA (sno, empno...)" which is not good because i want a suer to have a choice.
    Declare
    where_dt varchar2(150);
    Begin
         IF :System.Mode = 'NORMAL' THEN
         set_block_property('blk_name', default_where,'');
         Else
    where_dt:='startdate between :blk_name.date1 and :blk_name.date2';
    set_block_property('blk_name', default_where,where_dt);
         End if;
    Execute_query;
    End;
    So, i edited the code to include the other criteria, users can search by one criteria only.
    Declare
    where_dt varchar2(150);
    Begin
    IF :System.Mode = 'NORMAL' THEN
    set_block_property('blk_name', default_where,'');
    Else if :System.Mode = 'Query' Then
    if :blk_name.Date1 and :blk_name.Date2 is not null then
    where_dt:='startdate between :blk_name.date1 and :blk_name.date2';
    end if;
    if :blk_name.sno is not null then
    where_dt:='sno = :blk_name.sno';
    end if;
    if :blk_name.empno is not null then
    where_dt:='empno = :blk_name.empno';
    end if;
    set_block_property('blk_name', default_where,where_dt);
    End if;
    Execute_query;
    End;
    Unfortunately, this code is not working, i am getting error.
    It points to the last "END;" and returns error: "Encountered the symbol ";" when expecting one of the following IF "
    Any help please??

  • How to clear Google search history

    HI,
    Ever since I updated to 2.1 it has been impossible to clear my Google search terms. Clearing the cache, cookies, etc in 'settings' has no effect.
    Does anyone know how to clear them?

    I'd try a reboot just to see if it fixes the issue.
    Try a reboot (described below).
    Think of it this way, the iPhone is more of a computer than a phone. It suffers from being a new OS and nobody can deny there are not bugs and memory leaks. The longer left running, the more things start to fail or slow down (I have had the iPhone since day one of original phone and I am just speaking from my experience). Thus I equate it to like when Windows95 came out...not sure of your age or if you remember those days...but back then it was a running joke of how many days you can keep Windows 95 running before you had to reboot. I am sorry to say but the iPhone is the same way right now (but getting better with a few hiccups back during the 2.0 release). So for me, I reboot daily when I leave in the morning and take it off the charger. By doing so I rarely see any lag or problems.
    A reset/reboot is:
    Go to Home Screen
    Press and Hold Home Button
    Keep holding and press and hold Lock Button
    Keep holding Both
    You will see Slide to Turn Off (Don't let go to slide, just keep holding)
    The phone will turn off (in time, but screen will look like it has some white lines)
    Keep Holding
    When you see the Apple Logo, you can let go.
    Turning off via the Slide to Turn off while good and fine to turn off, is more like the Sleep Mode on a computer. Thus any locked up issues in memory remain when you turn back on. A reboot as described is like doing a real Turn off and Turn On on a computer.
    You may also wish to read this tread about reboots and odd application behavior.
    http://discussions.apple.com/message.jspa?messageID=5851978#5851978

  • How to edit Existing Search Criteria

    Hi Experts,
    In my ADF application already I have Search Criteria, for this existing I have to add two more fields say 'LOB' and 'CustomerName' as a Dropdown.
    The following LOB values should be available in dropdown and these LOB values should be accessed from DB Table.
    Upon selection of LOB value as ‘SNI’ ,customer name dropdown is displayed and the customer names related to that LOB are populated in the dropdown.
    View Object is created on Read only access through SQL_Query.
    please can anyone suggest me for the same??
    thanks
    Santosh
    Edited by: Santosh M E on Jan 4, 2012 10:16 PM

    For this, you need to create LOV for LOB and a dependent LOV for customer names.
    Ex. you create a new VO for LOB - select LOB from ...... and another VO for customers - select cust_name from ..... where lob = :lob (this is fed by the LOB lov)
    Once you do this in the model, your query component will behave as you want.
    You can watch the video of the Shay's cascaded lov building tutorial here - http://www.youtube.com/watch?v=nXwL2_RP7AQ
    Make sure that you set dependency of customer name on LOB in the properties
    Edited by: asatyana on Jan 4, 2012 11:32 PM

  • How can we find search criteria for Mask and Namedsearch

    Hi Gurus,
      I got a doubt while working with the concept of mask and namedsearch. I defined a search criteria and stored the result under a mask or namedsearch. After some time if i call the mask/namedsearch where can we see the search criteria. Can anybody make me clear about this.
    Thanks
    Ravi

    Hi Ravi,
    You can see the search criteria for Named Search. Suppose you search for a field in free form search and then include all these records in your Named Search. Now in order to see the search criteria and enhance it. You need to go to>Menu bar>Search>Restore Named Search>Press Named Search(Name Given By you). Now you will able to see in free form search or any other search criteria which you included in for your Named Search.
    Regards,
    Mandeep Saini

  • WEB-UI  -  How can we add search criteria "Activity ID" to archive search?

    Hi,
    When searching for an activity via the WEB-UI (Component BT126S_APPT / View ApptSQ) , it is not possible to search by activity ID (Search criteria is not available). Moreover, activity ID is not shown in the result list .
    Is there any way to add the activity ID to the search criteria / result list of the WEB-UI?
    Thank you in advance for your assistance.
    Melanie

    Hi Stephen,
    I am faced with the same situation in Territory Management, where in I need to add an additional Search Criteria for the Product Search.
    What are the steps one would need to follow in order to do such a custom development.
    Any pointers would be helpful.
    Thanks and Regards,
    Puja.

  • How to restrict the Search Criteria in Search Screen

    Hi Frds,
    I need to restrict the user to search with the set of value for a particular group.
    Example: group G1 link to 5 users which will be '10'  '30'   '60'   '80'  '110'.
    I am able to detect the G1 group at run time and also get all users link into it. but i dont know how can i make a setup so that resultant show only those order created by these user only.
    Thanks
    Imran .  

    Thanks Smod,
    I think u dont understand my ques.
    Anyways some how i achieve my req.
    Below are the steps i used.
    Loop at lt_name. 
    lv_index = 8.
    lr_query_service->insert_selection_param( iv_index = lv_index
    iv_attr_name = 'CREATED_BY'
    iv_sign = 'I'
    iv_option = 'EQ'
    iv_low = Lt_UNAME
    iv_high = Lt_UNAME ).
    lv_index = lv_index + 1.
    endloop.

  • How to include the search criteria in "Form on a Table with Report" form.

    Hi,
    I am struggling hard to get to this point can any body help me...
    I had created a page type form and in that I selected Form on a Table with Report..so the hirerachy is Form >> Form on a Table with Report. In that I managed to give one column of data hyperlink so that once we click on that column data it will takes to next form to display all other information.
    But, the problem is there is not serach criteria available on this type of page.Could any body give me a solution how to get on to this.
    Cheers,
    krishna.

    Hi,
    Could, some body please answer to my question I raised above.
    Cheers,
    Krishna.

  • Firefox shows windows from last time, how to clear last open tab?

    I have Firefox set to restore my previous session when starting.
    The last tab open doesn't have an 'x' to close it. When pressing ctrl+w it will close the window in such a way that next time I open firefox it'll restore the previous tab.
    Is there a way to make it close the last tab then exit when ctrl+w is pressed? This so that I can have a fresh session by clearing the last one on exit.

    Try doing this:
    # Goto Tools>>Options and open the General Tab.
    # Look beneath the Startup Section and check the "When Firefox Starts:" Field. If it is "Show My Windows and Tabs from Last Time", change it to "Show my Homepage" to display your home page or "Show a Blank Page" to display a blank page.
    That should sort out your problem. If it doesn't let us know and we'll see what else can be done.
    Cheers!

  • How to clear all session data in adf through coding?

    Hi Everyone,
    i have created many pages in an application.I want to clear all session data when i get back to my first page.
    how to do that?
    such that my application should run as i am running for the first time.
    Thanks.

    Hi Jabr,
    i have used this code in initMethod() (Before phase) of my page.
    ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext();
    HttpServletResponse response = (HttpServletResponse)ectx.getResponse();
    HttpSession session = (HttpSession)ectx.getSession(false);
    session.invalidate();
    this code got executed but the page has 2 lovs.
    im getting error null pointer exception that EmpLovVO not found.
    if i remove the above code then the page is running correctly.
    What to do now?
    Thanks.

Maybe you are looking for

  • Desktop Software version 6 wont start??

    Never had a prolem with the Blackberry software until I downloaded V6. Now when I try to open it i get "BlackBerry Desktop Software has encountered a problem and needs to close.  We are sorry for the inconvenience." Uninstalled and tried 3 times now

  • Problem with wired computers on a WRT54G wireless router

    I have a WRT54G wireless router that has been working flawlessly up until now.  On Sunday, my son informed me that his computer, which is wired wasn't connecting to the internet.  Upon further investigating, we found out that our wired computer in ou

  • Initialization error: Loading jdbc driver

    Hi , In a file-XI-JDBC scenario, i am getting this error. "Initialization error: Loading jdbc driver 'com.microsoft.jdbc.sqlserver.SQLServerDriver' failed: java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver". but i have installed/deployed

  • Photoshop trial download problems

    everytime i try to download photoshop trial i cannot get past adobe AIR? i click accept an the download doesnt continue can anyone help?

  • Websites think my iPad is out of the UK

    Recently when I try to visit the national lottery site I get a message saying I'm not in the UK. Itv player says the same. I've checked my location services and UK is selected. Does anyone have any ideas please. Mary