Re-initializing search form

I have a page that consists of several regions. One region is a form that is used as a search form. You can type in an order number, hit submit, and it takes you to a new page displaying the details for that order. When the back button is pressed, the user wants that search form cleared out, but I can't seem to get it to work. Can someone help me figure out how to clear out the search form when returning from another page.
Thanks much in advance.

This question should be posted on the Products > Portal > Search forum.
When you say hit the back button, do you mean the back button on your browser? If so, its the browser that causes this behaviour not the search form in particular.

Similar Messages

  • Stopping initial webservice call on load: search form

    I found this issue in the archived forums: Stopping auto execute in search
    It is an old post but apparently still an issue, because I am running into it right now. I am now trying to workaround it with a backing bean but that's not quite how it should be (and it doesn't even work).
    I also can't find the bug number mentioned in the thread (bug # 6469864) .
    What I have is a methoditerator corresponding with a call to a webservice, and 2 accessorIterators because I want to show detail-information. So the pageDefinition looks like this:
    <methodIterator Binds="findObjecten.result" DataControl="WozGegevens" RangeSize="500"
                        BeanClass="dbga.taxatieverslagbalie.view.WozGegevens.findObjecten" id="findObjectenIterator"
                        Refresh="ifNeeded" RefreshCondition="#{DataBean.refresh} "/>
    <accessorIterator MasterBinding="findObjectenIterator" Binds="WozObjecten" RangeSize="500" DataControl="WozGegevens"
                          BeanClass="dbga.taxatieverslagbalie.view.WozGegevens.findObjecten.WozObjecten"
                          id="WozObjectenIterator" Refresh="ifNeeded" RefreshCondition="#{DataBean.refresh}"
                          />
    <accessorIterator MasterBinding="WozObjectenIterator" Binds="WozObject" RangeSize="500" DataControl="WozGegevens"
                          BeanClass="dbga.taxatieverslagbalie.view.WozGegevens.findObjecten.WozObjecten.WozObject"
                          id="WozObjectIterator" Refresh="ifNeeded" RefreshCondition="#{DataBean.refresh}"
                          />I set the af:table settings to contentDelivery="immediate" and autoHeightRows="500", simply because I don't want to scroll through the table, but instead scroll on the page.
    The method in the backing bean checks a boolean which is set to false by default (to prevent initial search, this part is the only part that is working) and the value of the inputText, but even when the refresh method returns false the search is still done with an empty parameter when I press the search button, and I cannot seem to stop it.
    This is JDeveloper 11.1.1.2
    Who can help?

    This is the action
    <methodAction id="findObjecten" RequiresUpdateModel="true" Action="invokeMethod" MethodName="findObjecten"
                      IsViewObjectMethod="false" DataControl="WozGegevens" InstanceName="WozGegevens"
                      ReturnName="WozGegevens.methodResults.findObjecten_WozGegevens_findObjecten_result">
          <NamedData NDName="bsn" NDType="java.lang.String" NDValue="${bindings.findObjecten_bsn}"/>
    </methodAction>and this is the button I press to execute it.
    <af:commandButton actionListener="#{bindings.findObjecten.execute}"
                                text="#{viewcontrollerBundle['objectenoverzicht.zoeken']}" id="zoekbutton">
      <af:setActionListener from="#{true}" to="#{HelperBean.refresh}"/>
    </af:commandButton>I fiddled a bit with it and I decided to remove the methodAction and just let the button set the boolean HelperBean.refresh to true. That way the iterator is calling the webservice only once, hurray!
    I also tried NOT setting the boolean to true, but then the methodAction was performed but the iterator wasn't updated. So that didn't work.
    so my button is now this:
              <af:commandButton
                                text="#{viewcontrollerBundle['objectenoverzicht.zoeken']}" id="zoekbutton"
                                >
                <af:setActionListener from="#{true}" to="#{HelperBean.refresh}"/>
              </af:commandButton>I have never before had a button not do anything but submit and set a variable to make data appear on a site. But then again I have never used a webservice data control before. And I will think twice before doing it again
    Is this the way it is supposed to work or did I miss something?
    The call to the next page is fixed now too by the way, apparently navigation depends on the ability of the iterators to refresh (?).
    Edited by: Wendy Tromp on Jan 12, 2012 3:48 PM

  • UIX Search Form "difficult" question

    OK,
    Say you dragged and dropped UIX search form onto the page. When you start the page it will render the result table without specific where criteria set, ie SELECT * FROM TABLE;
    Questions:
    1) How to add default WHERE clause for the first time when the page opens ie I want to have result page something like SELECT * FROM TABLE WHERE PARAM='bla';
    2) Similar question but this time how to pass PARAM from some previous page?
    Please help

    1. Try setting an initial where clause on the viewObject that you used to construct the search form. You can do this in the BC4J editor (wizard) for your viewObject.
    2. you would have to write an event handler and programmatically set the where clause on your viewObject.

  • Can I specifiy initial search for Popup LOV?

    I have a popup LOV in an updateable table that works great (thanks to help from this forum!).
    When the popup LOV first opens, I would like to have a default search pre-executed since I can predict the search the user will want to see initially. The search will narrow the records down to a handful of results which the user will need to pick from.
    Is it possible to popup an LOV with a search already executed?

    Hi Albowicz,
    I tried to adapt the popup template to do this, but there's more work then I thought.
    I would have thought that if I put into "Filter Text Attributes" of Search Field a value="<your initial search>" it would have taken that, but no. APEX doesn't see I entered that and will create an empty value="" nevertheless.
    But you can still use my idea, by adapting the popup template, by using javascript in the "Page Body Attributes", where you call a function that set the field to some value ( document.forms[0].p_filter.value="Dimi";).
    Alternative you may have a look how to create a custom popup page: Re: how to create popup LOVs with multiple columns and filters ?
    Hope that helps,
    Dimitri

  • Not Able to put LOV in search form fields

    Hi
    I created the search form using Bindvariables.In my application i am using only JSF,ADF BC,trindad components(In Mobile apps,we have to use only trinidad comp's).
    I want search fields as LOv's .
    In AppModule,under view,ExecuteWithParams i have bindvariables.while dragging them i selected the selectonechoice ,in Edit List Binding Window,for base datasource i am giving one VO,and for list Data Source i am giving different VO .
    everithing is fine.but when i click 'ok' Button,it is giving th efollowing error.
    The selected target attribute has read-only access.please select an updateable attribute
    what is the Wrong i am doing?
    PLease anyone help me in figuring out my problem?
    I want to make the search fields as LOV in search form.so that user no need to enter the data in to them.simply can select the value from LOVand find out the results .
    Sailaja.

    what actulay is the problem.. i triied it , this is working fine.
    I guess just in the lov you have made make both the fields updatable
    Edited by: Rohit Hoon on Apr 23, 2009 2:13 AM

  • Looking for help to develop data search form

    I have built a SQL Query that produces a data set of
    approximately 60,000 records which includes last_names,
    First_names, ID_numbers, Office_Names, Association_Names, and
    Member_Type fields. I have created a table that displays ten
    records at a time (in alphabetical order by last, first name). I
    want to (1) be able to search for a specific person in the dataset,
    and then once I find him/her, (2) be able to click on their
    ID_Number to select it and then go to another page with their
    ID_Number.
    I have not been able to find documentation on conducting
    searches of datasets. I am using classic ASP for server side
    scripting (though I am brand new at this).
    Any assistance you might be able to provide will be most
    gratefully appreciated.
    Thanks very much,
    Austin

    > Thank you Murray for your kind response. I am not
    entirely sure how to do
    > this. I suspect if I create a simple form with First and
    Last Name Fields
    > and
    > a Submit button and then POST the content of that form
    to a 'processor'
    > page
    > this is a good place to start???????
    That would surely work.
    > But I am not entirely sure how to insert those two items
    into the query on
    > the
    > processor page. Can you point me to any documentation or
    tutorial that
    > might
    > help me along with this?
    The search form posts its results to the processor page. The
    processor page
    retrieves those form values from the $_POST array, and uses
    them to
    formulate a new SQL SELECT statement, identical to the old
    one, except with
    the inclusion of the first and last name values from the
    $_POST array in the
    WHERE statement.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "AustinMoran" <[email protected]> wrote in
    message
    news:g914dr$rig$[email protected]..
    > Thank you Murray for your kind response. I am not
    entirely sure how to do
    > this. I suspect if I create a simple form with First and
    Last Name Fields
    > and
    > a Submit button and then POST the content of that form
    to a 'processor'
    > page
    > this is a good place to start???????
    >
    > But I am not entirely sure how to insert those two items
    into the query on
    > the
    > processor page. Can you point me to any documentation or
    tutorial that
    > might
    > help me along with this?
    >
    > I am sorry to be such a bother with this. I have a
    handful of books, but
    > none
    > of them touch on this and I am at a loss.
    >
    > Thanks again for your kind helpfulness.
    >
    > Austin
    >

  • How to get the SQL Query statement of a Search Form ?

    Hi all,
    We have a requirement to send the query result of an ADF Search Form into report application (Crystal rpt).
    Crystal can accept data source as query statement. SO I think of getting the exact query statement "generated" by the ADF Search form and send it to crystal.
    Is this possible ?
    Thank you very much,
    xtanto

    Try the various get methods of the viewObject such as getQuery:
    http://www.oracle.com/webapps/online-help/jdeveloper/10.1.2/state/content/navId.4/navSetId._/vtAnchor.getQuery%28%29/vtTopicFile.bc4jjavadoc%7Crt%7Coracle%7Cjbo%7CViewObject%7Ehtml/

  • How to use Multiple Keywords in a Search Form?

    I'm currently using a bind variable on the view object to generate a search form where the user enters one keyword that is applied to the WHERE cause of the SQL query.
    The problem is I'm trying to implement a Google-type search, where the user can enter multiple keywords in a single text input area. I then want to parse out those keywords and search the database on each keyword (similar to a Google search.) Can someone please help me point me in the right direction as to where / how to code in the appropriate hooks to accomplish this?
    Example:
    (user input) Enter Search Keywords: keyword1 keyword2 keyword3.. keywordn
    database query:
    Select item from table where (desc like '%keyword1%') or .. (desc like '%keywordn%') or
    (category like '%keyword1%') or .. (category like '%keywordn%')

    Can't you parse what was entered and create a number of view criteria rows, then apply them? At that point, they would be 'OR'd together'.

  • Creating a search form based on a table.

    Hello,
    I'm currently trying to create a search form which performs a searchquery in values stored in a table in my database.
    The table is filled peoples names,lastnames ,telephonenumbers and departments.
    I can use the sample application to make a form based on the tableview but this returns a search textfield for every column in the table. I just want 1 searchfield/textfield to search on ALL columns at the same time and display the other fields as labels when returning the queryresults.
    I tried searching the forums for an explanation on how to build said form and I checked Metalink but I have yet to find one. Anyone out there willing to help me out?
    thanks in advance,
    Melvin K.

    Why not use an instr with your data in a bind variable in your where clause for the select?? Page 1 sets an item called P2_Parameter with your value string slightly modified ('12345','345632','645534534','3434344')
    Select a,b,c,d,e from some_table where INSTR(TO_CHAR(Lookup_column,'099999999'),:P2_Parameter)
    Maybe that will work? Its off the top of my head, but should get you what you want.. (But to agree with one of the other posters, it is a BAD Design..) I would try like an interactive report to allow them to enter in acct #'s or whatever these are and let them access the rows that way..
    Thank you,
    Tony Miller
    Webster, TX

  • How to create a search form? - Jdev TP4 11.1.1.0.0

    Hi,
    I am using Jdev TP4 11.1.1.0.0.
    I have a af:table which is based on a view. I want to have a search form on top of this af:table to query based on the selection in the search form. I have 15 columns in the view. When I drag and drop the "All queriable attributes" from the named criteria I get all these columns in the search form. I need only 3 of the columns in the search form and the af:table should query based on the selection. How can I achieve this? Any help. Thanks in advance.

    You can create a new named query with only these three columns in the where clause and use that.
    Or you can drag the VO as a search form and remove the columns you don't need.

  • SelectInputDate component in a search form - JDev 10.1.3.0.4

    Cheers to all of you buddies in this valley of tears, have a good day
    I have a table that contains a date column, and a search form to do "query by example" and its date field is a "selectInputDate" with its date chooser.
    The date column in the table is formatted as yyyy-MM-dd (assigned in the underlying BO).
    I assigned a "convertDateTime" with a pattern yyyy-MM-dd to the selectInputDate component.
    At this point, the page works correctly. I select a date and get the appropiate results.
    The problem rised when adding a validator to the "selectInputDate" component.
    I added a "validateDatatimeRange" validator and binded the Maximum and Minimum values to two java.util.Date fields (minDate and maxDate) defined in a session managed bean named depSessionBean. The binding was done using EL as #{depSessionBean.minDate} and #{depSessionBean.maxDate}. The effect is that the date chooser only enables dates within the range (good).
    The problem arises when I click on the "Execute" action button. All I get is a lovely error complaining about date conversions.
    The attached converter returns a String that is correctly used to query the data but the validator expects a java.util.Date (it does not accept String values).
    So, am I missing something? How can I get the converter and validator to work together?
    Thanks a heap for any help.
    A.Gurisatti
    This is the error I get when executing the query (2006-08-14 is the chosen date):
    500 Internal Server Error
    oracle.adfinternal.view.faces.convert.ConvertException: Could not convert instance:2006-08-14 of type:class java.lang.String into type:class java.util.Date
         at oracle.adfinternal.view.faces.convert.GenericConverterFactory.convert(GenericConverterFactory.java:189)
         at oracle.adfinternal.view.faces.validator.DateTimeRangeValidator.validate(DateTimeRangeValidator.java:27)
         at oracle.adf.view.faces.component.UIXEditableValue.validateValue(UIXEditableValue.java:378)
         at oracle.adf.view.faces.component.UIXEditableValue.validate(UIXEditableValue.java:206)
         at oracle.adf.view.faces.component.UIXEditableValue._executeValidate(UIXEditableValue.java:522)
         at oracle.adf.view.faces.component.UIXEditableValue.processValidators(UIXEditableValue.java:302)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
         at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
         at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
         at javax.faces.component.UIForm.processValidators(UIForm.java:170)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
         at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
         at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
         at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
         at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:912)
         at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:342)
         at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:78)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)

    Frank,
    Thanks for your reply and yes I'm using BC (I allways forget that important piece of information).
    Unfortunatelly I still have a few doubts:
    - I suppose that assigning a pattern to a date column in a BO is for display purposes and in some cases to have the right conversions in where clauses. In this case, choosing yyyy-MM-dd (that is the default) is a coincidence and in this case, you are right it is superfluous. But suppose we use dd/MM/yyyy. In this case, the date will be rendered with this new pattern. Even more, I suppose that in a query by example, when building the where clause, JDev expects the given date to be a string with that same pattern (dd/MM/yyyy). So, we have the first conclusion: The selected date must be a String with the given pattern. That is why I assigned a converter to the selectInputDate component.
    I did some tests and concluded: The patterns in the BO and in the converter assigned to the selectInputDate component must match or the query won't work.
    The second step is to narrow the date range. The way I found to do it is by assigning a datetime validator to the selectInputDate component. This validator expects java.util.Date values for its min and max dates, and the date chooser works well (by enabling only dates between the given range).
    The problem rises when you submit the form. At validation time you have: a date expressed as a formatted String (needed for the query) and a validator expecting a java.util.Date to perform the validation. So, you get a casting error.
    All this is what I understood and concluded about the situation and, of course I could be completelly wrong.
    If my steps for configuring the search parameters are correct, there must be a way to do the String - Date casting and avoid the error.
    If my approach is wrong then there must be a correct approach for this kind of situation.
    Thanks a lot for your help,
    A. Gurisatti

  • Error while initiating travel form (Messge No.: 56568)

    Hi,
    Am facing the below error while simulating in T-Code: PR05:
    Error while initiating travel form (Messge No.: 56568)
    Kinldy guide me to come out of this error:
    Regards
    JS

    Hi Ray,
    Could you please let me know the config for this feature TRVFO as Abode form is not showing up in PR05 it gives the HTML format....
    I have done the basic config of the position 24 to Abode form active also checked the Table TA20SWITCH with the entry  'HTMLFORM_R_P', value 'X'
    Kindly assist.
    Thanks,
    FF

  • How To create ADF Search form in JDeveloper 11g 11.1.1.0.1

    Hi,
    I am using JDeveloper 11g 11.1.1.0.1 , in which i tried creating an ADF search form that has Find and Execute Buttons.
    I created the same ADF search form using JDeveloper 11g TP3 and TP4 wherein it works fine but not in JDeveloper 11g 11.1.1.0.1.
    Scenario....
    I dragged a read only view object on to the jspx page as ADF Search Form and dragged the same as Read only table.
    After doing this if i run the application the search functionality does not happen .
    ( I click on the find button and enter the condition and then click on the execute button. records does not get filtered based on that condition specified.)
    But when the same steps is done in 11g TP3 and TP4 the search functionalty works fine.
    Can someone suggest me what is the issue.
    Is this a bug in the new release.
    regards
    vinitha

    reply is in this id
    ADF Searchform with find and execute buttons in JDev 11.1.1.0.1 studio edi.

  • List Of Value in search forms

    Hello,
    I am using ADF 11g
    I am trying to prepare a custom search form (not af:query component). I dragged and dropped a view object in data control to create a select one choice component. It is working good.
    But i am not able to have the LOV to have an empty item in the beginning.
    I already tried to edit the View definition, and selected "Include no selection item" in List UI Hints section, but in the page, select one choice still does not have an empty item in the beginning.
    What is missing here or what am i doing wrong ?
    Thanks

    List of values in 11 does not work as in 10.
    They need to be binded in model in specific view attribute.
    You can create a transient view object (i.e. select null as list_attr from dual)
    then you need to add to the attribute the list of value,
    then drag and drop ListAttr to the page

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

Maybe you are looking for

  • Fields not getting updated in VA01.

    I am writting code in exit EXIT_SAPLVEDA_001.I am passing billing block as ZM from the IDOC,according to the following condition Edited by: smriti singh on Apr 30, 2008 11:28 AM

  • OCCI Only for MS Visual C++ 6.0 ?

    I found that the oraocci9.dll is linked with MSVCPR60.DLL. So that when I use MS Visual Studio .NET (7.0), it conflic with MSVCPR70.DLL because there are some differents between two version of that library. Have you have any version of OCCI that inde

  • How to get Mac Address of Remote Computer

    Hi All, I tried to find out a solution for finding Mac Address of a remote system, then first i tried with finding it with local address using the following code it works fine for me. public class MacAddressFinder {      public static void main(Strin

  • On demand process: addtional params

    Hello, I'm calling a on demand process just with the url. http://localhost:8080/apex/f?p=200:0:0:APPLICATION_PROCESS=test how is it possible to add additional GET parameters without writting them into a page-item/application-item? thank you Damien

  • I already bought pages, but when i sign into icloud it is asking me to get page

    what do i do. I bought pages, its installed on my computer, but everytime I sign into icloud, it keeps asking me get pages?????