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

Similar Messages

  • 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.

  • 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.

  • 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 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 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 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

  • 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

  • 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.

  • Input Search criteria gets cleared on searching in Search Region

    In a pageA I have a search region, this search region has
    2 date fields.
    I have a return link on pageA that directs to pageB. Another button on pageB directs to pageA. For every page redirection, we have retainAM='Y', due to this the search criterial in pageA still remains if we do a navigation like pageA->pageB->pageA
    to clear the search criteria for every page reload of pageA, I am setting the value of
    datefield to null in the processrequest() of pageA.
    Now the wierd thing that is happening is though the search results are appearing fine,
    the data entered in date fields is getting disappeared on doing a search.
    in processformrequest, when I do a pagecontext.getparameter(datefieldID) this returns a value but
    doing a webBean.findindexchildrecursive(dateBean).getValue returns null.
    any idea what the issue could be.
    Thanks,
    Kalyan.
    Message was edited by:
    Naga Kalyan

    Is it a query region or a custom search region? What is the code written to null the date fields?
    Is there any flow where the values are retained?
    --Shiv                                                                                                                                                                                                                                                                                                                           

  • New search criteria for old (standard) node?

    Is it possible to create script, which adds new search criteria for old (standard) node?
    CustomSearchExtensionHandler.jsx gives example of custom search criteria for custom node. But it is not clear for me, how to add new search criteria over standard XMP fields.

    Hi,
    First you create your own table (with fields like Vendor No and Name), in which you wants to store your Value range for that Vendor and fill this table with all the values for that vendor(your own set of values).
    Using this table create an Elementary search Help from SE11 and you can use that search help for the Vendor field where ever you use.
    This works fine.
    Regards,
    Anji

  • Clear Google search history from Safari Toolbar (v.4.0.3 and up)

    How to clear your search history. TEDIOUS but works.
    *Delete Google results pages from the history*
    In Safari 4.0.3 and up, you may now search your history. Search for the URL string www.google.com/search? and delete the records that match it.
    *Clear the search strings from the toolbar*
    Quit Safari then from the Terminal, run this command:
    defaults delete com.apple.safari RecentSearchStrings
    When you start Safari again, the search history should be empty.
    Somebody could probably build a shell script that searches the History.plist XML file and deletes the <dict> sections AND resets the Safari plist at the same time. I'm not that good with string manipulation, so I'm hoping somebody with experience could pick this up. Then that shell script could be made into an AppleScript or set up with Automator. Wishful thinking?

    How to clear your search history. TEDIOUS but works.
    *Delete Google results pages from the history*
    In Safari 4.0.3 and up, you may now search your history. Search for the URL string www.google.com/search? and delete the records that match it.
    *Clear the search strings from the toolbar*
    Quit Safari then from the Terminal, run this command:
    defaults delete com.apple.safari RecentSearchStrings
    When you start Safari again, the search history should be empty.
    Somebody could probably build a shell script that searches the History.plist XML file and deletes the <dict> sections AND resets the Safari plist at the same time. I'm not that good with string manipulation, so I'm hoping somebody with experience could pick this up. Then that shell script could be made into an AppleScript or set up with Automator. Wishful thinking?

  • Clear Google Searches on the iPhone?

    Hey I'm using the 1st gen iPhone with the newly updated v2.0 firmware. I am trying to figure out how to clear the search history on my google searches in the iPhone safari app. I know how to clear the browser history, but not the actual searches I have done. Does anyone know if this can be done?
    Thanks

    Here's how to do it:
    1. Tap settings (from home page)
    2. Tap safari, then clear the history, cookies, and cache using the buttons near the bottom of the page.
    3. Press the home button.
    4. Press and hold both the home and sleep/wake buttons for 10-12 seconds, until the screen flickers off. This will do a "soft reset" on your iphone, just like turning it on and off, but it also empties recently deleted items.
    Note: You will NOT loose any of your prefs or data when doing a soft reset. Also, keep holding down even after you see the "Slide to Power off" screen, and then your iphone will reset a few seconds later.

Maybe you are looking for

  • Deleting from iTunes Library and Computer

    I have alot of music in my library that I would also like to remove from my computer. I know that when you select a song and press the delete key that i prompt pops up asking you if you want to delete the song from your computer as well as your libra

  • How to configure Mailbox Read-Only access for Mailbox's owner on Exchange Server 2010?

    I have to configure the Exchange Server 2010's mailbox to only grant Read-Only Access on the mailbox's owners.  So they can only allowed to read their messages and cannot modify or remove them.  Are there any references or methods to do?

  • Pavilion dv6-2120 - Digital Audio Output

    Does someone know if the dv6-2120 support digital audio (spdif) via the 3.5mm socket? If not does anyone know a simple solution to get optical audio from the notebook to my receiver? Thnk you very much for your answer. Onno

  • Photos got low resolution after upgrade

    After I upgraded my iPhone, all the photos in my photo library got a very low resolution. They are all fuzzy. Can anyone help?

  • How do you list fully Depreciated Assets in SAP?

    Hi experts: My client has some assets that are fully depreciated in reality. The client has created a fully depreciated asset in newly configured SAP system. She wants the asset to be listed in SAP as fully depreciated and depreciation should not be