Advanced Search-Clearing search criteria

Hi,
I am developing apps using JDev 10.1.2. and JHS build 32.
My problem is with using the Advanced Search on page with table layout.
The Advanced Search contains one lookup field (a lamp).
When I enter something in the lamp field and press Find button I get proper result.
Then I run Clear. All field from Advanced Search region are cleared.
Then I run Find and I get question similar to "You are about to leave page without commiting changes...". I choose OK and the lamp field get the old value and the result is incorrect.
What is wrong?
regards,
Cezary

Cezary,
This is indeed a bug in JHeadstart, thanks for pointing this out. The fix will be present in the next release, but for now you and anyone running into it will have to apply a workaround: in the UIX page, locate the "FindXXX" field that has this problem. It will be easy to find because its name is suffixed with "_No_Update". This is incorrect (for the find field, it is OK for the actual form and/or table field!!). Remove the suffix NoUpdate and all should be well again.
Hope this helps,
Peter Ebell
JHeadstart Team

Similar Messages

  • ADF BC : "clear search" using executeEmptyRowSet()

    hi
    Consider a search page, similar to what you can see in this screen cast by Steve Muench:
    "Part 3: Search Form Using View Object with Named Bind Parameters"
    On such a page I would like to have a button that clears the search criteria and the search result.
    I have implemented such a search page and "clear search" button in this example application:
    http://www.consideringred.com/files/oracle/ClearSearchStuff-v0.01.zip
    To implement the button I also used the executeEmptyRowSet() method in my Application Module on the "EmpWithParamsVOVI" View Object instance.
    The "clear search" button uses this code in the backing bean:
    public class SearchOnViewObjectParameters
         public String clearSearchCButtonAction()
              executeEmptyRowSetOnEmpWithParamsVOVI();
              ELHelper.set("#{bindings.EmployeeName.inputValue}",
                   "#{bindings.EmployeeName.attributeDef.defaultValue}");
              ELHelper.set("#{bindings.LowSal.inputValue}",
                   "#{bindings.LowSal.attributeDef.defaultValue}");
              ELHelper.set("#{bindings.HighSal.inputValue}",
                   "#{bindings.HighSal.attributeDef.defaultValue}");
              return null;
         public String executeEmptyRowSetOnEmpWithParamsVOVI()
              BindingContainer bindings = getBindings();
              OperationBinding operationBinding =
                         bindings.getOperationBinding("executeEmptyRowSetOnEmpWithParamsVOVI");
              Object result = operationBinding.execute();
              if (!operationBinding.getErrors().isEmpty())
                   return null;
              return null;
    }The ADF Model binding calls this Application Module method:
    public class ScottServiceImpl
         extends ApplicationModuleImpl
         implements ScottService
         public void executeEmptyRowSetOnEmpWithParamsVOVI()
              EmpWithParamsVOImpl vEmpWithParamsVOVI = getEmpWithParamsVOVI();
              vEmpWithParamsVOVI.executeEmptyRowSet();
    }But it seems that the executeEmptyRowSet() method has not been documented:
    http://download.oracle.com/docs/cd/B25221_04/web.1013/b16005/oracle/jbo/server/ViewObjectImpl.html#executeEmptyRowSet__
    questions :
    (1) Should I use the executeEmptyRowSet() to implement part of this "clear search" feature, or how exactly does this method behave (some documentation would be nice)?
    (2) If not, what alternative should I use?
    (using JDeveloper 10.1.3.3.0)
    many thanks
    Jan Vervecken
    edit 20090925 : updated link to ClearSearchStuff-v0.01.zip

    Hi,
    This is regarding the clear search issue, I am trying to clear the search criteria filed and view object's result by using your code.
    ==============
    public String clearSearchCButtonAction() {
    System.out.println ("Entered clearSearchCButtonAction 1");
    executeEmptyRowSetOnCustomerViewObj();
    System.out.println ("Entered clearSearchCButtonAction 2");
    ELHelper.set("#{bindings.CustomerId.inputValue}",
    "#{bindings.CustomerId.attributeDef.defaultValue}");
    return null;
    public String executeEmptyRowSetOnCustomerViewObj()
    System.out.println("1");
    BindingContainer bindings = getBindings();
    System.out.println("2");
    OperationBinding operationBinding = bindings.getOperationBinding("executeEmptyRowSetOnCustomerViewObj");
    System.out.println("3");
    Object result = operationBinding.execute();
    System.out.println("4");
    if (!operationBinding.getErrors().isEmpty())
    System.out.println("5");
    return null;
    return null;
    =============
    When I click the Clear button I am getting the following error.
    [Starting OC4J using the following ports: HTTP=9012, RMI=23954, JMS=9258.]
    C:\Jdeveloper\jdevstudio10133\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config>
    C:\Jdeveloper\jdevstudio10133\jdk\bin\javaw.exe -client -classpath C:\Jdeveloper\jdevstudio10133\j2ee\home\oc4j.jar;C:\Jdeveloper\jdevstudio10133\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -XX:MaxPermSize=256m -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\Jdeveloper\jdevstudio10133\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    May 19, 2008 1:33:39 AM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    May 19, 2008 1:33:39 AM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 12156 ms.
    Target URL -- http://192.168.2.3:9012/Testing%20Clear-ViewController-context-root/faces/Clear.jspx
    08/05/19 01:33:47 Oracle Containers for J2EE 10g (10.1.3.3.0) initialized
    May 19, 2008 1:33:49 AM oracle.wireless.its.ra.TelnetResourceAdapter run
    INFO: Industrial Telnet Server version: Version 10.1.3.0.0 started-up successfully.
    May 19, 2008 1:33:53 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Short,null)
    May 19, 2008 1:33:53 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Short)
    May 19, 2008 1:33:53 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Byte,null)
    May 19, 2008 1:33:53 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Byte)
    May 19, 2008 1:33:53 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Integer,null)
    May 19, 2008 1:33:53 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Integer)
    May 19, 2008 1:33:53 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Long,null)
    May 19, 2008 1:33:53 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Long)
    May 19, 2008 1:33:53 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Float,null)
    May 19, 2008 1:33:53 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Float)
    May 19, 2008 1:33:53 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Double,null)
    May 19, 2008 1:33:53 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Double)
    May 19, 2008 1:33:53 AM com.sun.faces.config.rules.ValidatorRule end
    WARNING: [ValidatorRule]{faces-config/validator} Merge(javax.faces.LongRange)
    May 19, 2008 1:33:53 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.DateTime,null)
    May 19, 2008 1:33:53 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Number,null)
    May 19, 2008 1:33:54 AM oracle.adf.share.config.ADFConfigFactory findOrCreateADFConfig
    INFO: oracle.adf.share.config.ADFConfigFactory No META-INF/adf-config.xml found
    May 19, 2008 1:33:57 AM oracle.adfinternal.view.faces.application.ViewHandlerImpl _checkTimestamp
    INFO: ADF Faces is running with time-stamp checking enabled. This should not be used in a production environment. See the oracle.adf.view.faces.CHECK_FILE_MODIFICATION property in WEB-INF/web.xml
    08/05/19 01:34:06 Entered clearSearchCButtonAction 1
    08/05/19 01:34:06 1
    08/05/19 01:34:06 2
    May 19, 2008 1:34:06 AM com.sun.faces.lifecycle.InvokeApplicationPhase execute
    SEVERE: #{backing_Clear.clearSearchCButtonAction}: javax.faces.el.EvaluationException: java.lang.NullPointerException
    javax.faces.FacesException: #{backing_Clear.clearSearchCButtonAction}: javax.faces.el.EvaluationException: java.lang.NullPointerException
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:98)
         at oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:211)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:287)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:401)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:150)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:92)
         ... 24 more
    Caused by: java.lang.NullPointerException
         at tc.view.backing.ClearSearch.executeEmptyRowSetOnCustomerViewObj(ClearSearch.java:57)
         at tc.view.backing.ClearSearch.clearSearchCButtonAction(ClearSearch.java:46)
         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:585)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)
         ... 25 more
    ===========================================
    Would you please help me on this.

  • The "Clear Search History" feature in the upper right drop-down menu no longer works in Firefox 4.

    The "Clear Search History" feature in the upper right drop-down menu that shows search terms no longer seems to work in Firefox 4.

    It is possible that there is a problem with the file that stores the "Saved Form" data.<br />
    Rename or delete formhistory.sqlite (plus formhistory.sqlite-journal and formhistory.sqlite.corrupt and formhistory.dat, if they exist) in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder] in case there is a problem with the file that stores the "Saved Form" data.<br />
    This will remove all saved form data, so you may want to rename formhistory.sqlite to formhistory.sqlite.sav or move the file to another folder in case you need to recover some saved data.
    You may also need to delete search.sqlite and search.json in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder]

  • Advanced and Quick Search on UIX Pages

    Hi all,
    I have run into a situation on pages where I have the advanced and quick search enabled. Here's what is happening. You click on advanced search and search for a particular attribute. This works fine. Then you click on the button for quick search so that the advanced search view collapses. If you go to another page within the application and come back to the original page, the page is displayed with the advanced search view, even though when we left the page it was set to quick search. Any one have any ideas why this occuring or a workaround so that it doesn't happen? Thanks in advance.
    Susan

    Susan,
    Switching between advanced search view and quick search view is done at the client using javascript. Only once a search is issued by pressing the Go or Find button, a request is sent to the server, and we are able to save the "search mode" state.
    In 10.1.3 we have solved this by using Partial Page rendering rather then javascript.
    Steven Davelaar,
    JHeadstart Team.

  • How can I fix the disabled -Clear Search History- in the Tools section?

    I have a MacBook Pro and have just noticed that, as of today 2/15/13, the Form & Search History in the Tools, Clear Search History, section is often lightened/blurred over and its tiny box no longer able to be checked. More importantly, the Clear Search History -itself- is completely disabled and not working. I used it yesterday and it appeared to work fine. I've noticed that there are quite a few reports of this problem occurring with other users, but any and all those who have responded to these reports, with suggestions, are of no help whatsoever, to me, as I cannot understand them. Can someone who is able to give the proper effective advice do s in layman's terms so I can comprehend their instructions, please. :-) Thank you.

    The problem recurred and after verifying I have no add-ons or extensions, since I don't even know what they are, much less know how to use them the "Safe Mode" process wouldn't solve the problem. But at least now i know that the "Clear Recent History," in the Tools tab, works intermittently, but just not consistently. And the "Form & Search History" with tiny box next to it is unchecked and inaccessible (blurred over) sometimes, then appears accessible and check marked on other occasions. A very strange phenomenon...
    I have a Mac OS X 10.7.5 system and have no idea where to find the "Profile" to implement the other possible fixes. I am not well enough versed in the technical aspects of this computer to even attempt the frustrating and tricky task of deleting files I haven't a clue where to find unless someone can take me through the process step by step in layman's terms.
    There is either a bug in Firefox 19.0, which is very possible considering there are quite a few people who have reported this problem, or perhaps my last update somehow didn't download properly. Is it necessary to trash my current 19.0 version in order to download Firefox, again, or would another download of the same version override the current one?
    I'd like to see if that works to resolve the problem, but the first time I tried, a file that I couldn't open ended up on my desktop and I had to move it into the trash, not knowing what else to do with it. It didn't even show up in the trash when I did that???!!! Please provide easy to follow instructions on how to perform the downloading of another 19.0 version to replace my current one. Perhaps that will work. Thanks! :-)

  • Any way to clear search history in maps ?

    I'm new to IOS but wondering how can I clear search history in the new IOS maps application. 
    Thanks@

    if you use internet shoping it generally needs 3D cell phone password messages for personal security. But it is saving and storing in map application search box and can not be deleted.

  • I have 3 computers and one has the "clear search history" line greyed out. I can't get this to work.

    # Question
    I have 3 computers and one has the "clear search history" line greyed out. I can't get this to work.

    Is Tools > Options > Privacy > History: "Remember search and form history" enabled?
    If that is disabled then there is nothing saved and nothing to delete.<br />
    You still see suggestions in the drop down list if showing suggestions is enabled.
    *http://kb.mozillazine.org/Search_Bar

  • HT204266 How do you clear search feature in apps store?

    How do I clear search history in apps store.  I clear the search box, type in what I am looking for and it always goes back to the last app I downloaded.

    If you tap on the X in the search field that should clear the search. When you type in the new app name and hit search on the keyboard it takes you to the last app that you downloaded?
    Quit the app store completely and restart the iPad. Go to the home screen first by tapping the home button. Double tap the home button and the task bar will appear with all of your recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap the home button or anywhere above the task bar. Restart the iPad.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Or ....Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • How to clear search history AppStore

    How to clear search history in AppStore

    What do you mean exactly. Just tax the X in the search field. If you tap the empty search field and it still takes you back to the last search that you performed, close the App Store completely, and then come back and tap the X and that should clear the search history.
    Double tap the home button and look for the App Store in the multitasking screen, then drag the app thumbnail preview up off the top of the screen to close the app.

  • How to automatically clear search-bar history?

    Hello,
    Is there a FF built-in feature or an addon to periodically clear the location bar history (which seems to be separate from the location bar history)?.
    As above, is there a way to erase only certain searches from the search-bar history, for example those which match a pre-defined pattern?
    Thanks.

    Don't right-click on the icon, right-click on the search box, this way you can "Clear Search History".

  • Problems with Advanced Address Book Search

    Recently was running TB 24.2 under Ubuntu 12.4. All ran great, except could not search the Notes field in my address book. Got help from this forum and installed MoreFunctionsForAddressBook. This made the Notes field available for searching in the Quick Search window and in the Advanced Address Book Search dialog box (Edit > Search Addresses). Problem solved!
    Now have upgraded to TB 31.2.0. Quick Search window still works fine, including searching the Notes field. However, the Notes field is no longer listed in the Advanced Address Book Search, AND the Advanced Address Book Search does not work at all. I get zero results for any search on any field.
    Is the Advanced Address Book Search broken in TB 31.2.0? If not, any ideas on what I might have set up wrong to keep it from functioning? Any diagnostic I could run?
    Also, does MoreFunctionsForAddressBook no longer add fields to the Advanced search?
    I have worked on this for hours, with no luck. Suggestions are welcomed.

    Toad-Hall ---- Thanks very much!!! I completely missed the new version of the plug-in. I upgraded TB to v 31 and wasn't bright enough to think about the add-on compatibility.
    With MoreFunctions 0.7.1, my Advanced Search (Edit > Search Addresses) now has a lengthy list of search-field choices, including the Notes field. This is a life saver for me, since that's where all my keywords are.
    You really bailed me out on this one! Many thanks.

  • OSX 10.9.2 Mail: search clears automatically

    I can't find anyone else with this problem: OSX 10.9.2 Mail: About 10-15 seconds after a search, the search-box clears automatically and resets to a "non-searched" mailbox...  Very strange... and frustrating...
    So my question is: is this an obscure OSX Mail setting I've somehow acquired or a bug in the program?

    Also - the update to 10.9.3 does not solve this problem.

  • Clear search history

    Is there a way to clear search history in ML without clearing your browsing history in Safari?

    I don't think so. It uses your browser history.

  • Home Button will not clear search screen

    When I press the home button to bring up search, the search screen will not go away when home button is pressed again. The icons for the apps come back but the search screen blocks half the page. I have just recently restored my iphone for another issue.

    It could be failed and is registering one click as a double-click. Try a Restart and, if needed, a Reset to see if either will help.
    Restart: Press and hold the Sleep/Wake button for a few seconds until a red slider appears, and then drag the slider. Then press and hold the Sleep/Wake button until the Apple logo appears.
    Reset: Press and hold both the Sleep/Wake button and the Home button for at least ten seconds, until the Apple logo appears.

  • Every search I search the results are in Chinese/Japanese (Charaters). Why?

    When I search an item it comes up in Asian Characters instead of English, I have reset my computer and deleted and reinstalled Firefox but it still happening. Can you fix it?

    You can check the connection settings.
    *Firefox > Preferences > Advanced > Network : Connection > Settings
    *https://support.mozilla.org/kb/Options+window+-+Advanced+panel
    Clear the cache and remove cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox > Preferences > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox > Preferences > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"
    You can check for corrupted and duplicate fonts and other font issues:
    *http://www.thexlab.com/faqs/multipleappsquit.html - Font Book 2.0 Help: Checking for damaged fonts
    *http://www.creativetechs.com/iq/garbled_fonts_troubleshooting_guide.html

Maybe you are looking for

  • Questions on Drivers & printing to networked Windows computer (CANON)

    I'm trying to print over a network, to a CANON printer connected to a Windows PC. My initial attempts resulted in the document being printed 75% smaller on the upper left corner of the page only. (Margins etc. are all fine). Sounded to me like a driv

  • Embedded weblogic admin console will not start

    Hi Forum members, I'm using JDeveloper Studio Edition Version 11.1.1.0.2 and trying to start the WebLogic admin console for JDeveloper's embedded WebLogic Server. The admin login screen appears, but after entering userid and password, the admin conso

  • Problem conecting to Oracle_BI_DW_Server in DAC

    Hi all, we've just configured DAC and Informatica to use Oracle BI APPS 7.9.5.1. I'm testing all the connections in DAC (INFORMATICA_REP_SERVER, Datawarehouse, ORA_11_5_10 and Oracle_BI_DW_Server),all tests are passed but Oracle_BI_DW_Server, it get

  • HR ABAP function module

    Hi, What is the difference between RP_PROVIDE_FROM_LAST and RP_PROVIDE_FROM_FIRST ? Regards, Nimisha

  • One_Session in form 6.0 ? Help !!!

    Hello, I want to restrict user that user can not open two session for the Forms Application. For the same I am using Forms 6.0 And I have written the following code in WHEN-NEW-FORM-INSTANCE Trigger but it is not working properly. So How can I restri