Enhancement reqest: Advanced Search form

I would like to request another form wizard like all the great ones already there. A Advanced Search form wizard.
Basically a form that asks for a bunch of query items like those found on any Advanced Search form and depending on which ones are non-blank, constructs a dynamic query and populates a SQL query region when the Search button is pressed.
Thanks

From what I can tell from each of the examplesthere
is no option to specify any kind of compoundcriteria
syntax for a single field, as I pointed out in my
earlier post, e.g. where id=1 or id=2 and type=6and
type=7. That kind of thing.Right, but (IMHO) your UI is approaching the problem
too "literally" i.e. too much in terms of the
underlying SQL. You are making the user literally
think in terms of a SQL SELECT statement.I agree to some extent - it clearly looks like a query builder - but the UI provides an abstraction layer so the user doesn't have to worry about typing the underlying syntax correctly.
And remember, this is a business application - not Google. In my experience users of business applications are pretty demanding when it comes to getting at their data. Not that I want to perpetuate bad designs on anyone. I just want to make sure the user has the tools they need. And they want field level searching.
>
P.S. I've already implemented a basic searchfunction
at the top of each report page that let's the user
enter a single value that will do an 'OR' againstall
the fields in the view. It's just that the userRight, thats the way most search functions work. You
type a keyword and the system does a full-text
case-insensitive search for that keyword across a
pre-determined set of columns.
doesn't really have any control over which fieldsare
tested against the value.Another way to approach this would be to put up a
single search text field and list all the columns you
want to search across as checkboxes. User can select
the column(s) he wants the keyword to be searched
in.
Your example of multiple predicates on the same
column is a little unusual, but
where id=6 or id=7Unusual, perhaps..., until you get a request from someone that wants to find all the equipment with serial numbers between XYZ123456 and XYZ2345678. ;>)
This can be implemented as a multi select list (or N
separate text fields) where user can select/enter
each value and you go and build the resulting SQL.I've thought of making the values select lists based on valid entries that exist in the table for a couple of cases where it might be appropriate - but I need to get basic function working first.
>
Just some ideas...
ThanksThanks again for your thoughts. I have an example page on OTN that give the beginnings of my idea here: http://htmldb.oracle.com/pls/otn/f?p=36337:14 It's not fully functional yet but if you click the Search button it will throw the where clause in the text box at the bottom of the page. Let me know what you think if you get a chance.
Earl

Similar Messages

  • Customizing the advanced search form (showing less parameters)

    Hi,
    can I customize the advanced search form in Portal, for
    instance, to hide some parameters like "item attributes"
    or "item types"?
    I've read the thread at http://forums.oracle.com/forums/message.jsp?
    id=562712 where it shows how to write a custom advanced search,
    but that requires some programming efort. are there any easier
    alternative?
    many thanks.

    You could try to cpoy the HTML source of the advanced search
    page, copy it in a HTML-portlet or dynamic page, and remove the
    fields you don't want to show.
    I had succes this way with the search portlet and add_groups
    portlet, didn't try the advanced search page though.
    Ton

  • Advanced Search Form - PART II

    In the insert page: People introduce the birth date of the
    dog.
    In the search page:
    I have a pulldown menu with the values "Baby"; "Young";
    "Adult" and finally, "Oldies".
    For each of this values I will need to have a range:
    Baby - until 6 months.
    Young - From 6 Months until 3 years.
    Adult - From more then 3 until 8 years.
    Oldies - more then 8 years.
    I have a SQL script that gives me the Age in years:
    SELECT CURDATE(), (YEAR(CURDATE())-YEAR(data_nasc_an)) -
    (RIGHT(CURDATE(),5)<RIGHT(data_nasc_an,5)) AS Age
    The problem is that if the little dog as less then 12 months
    he will return 0. This will be not a big issue, but dogs grow a lot
    in the first year, so we cannot put a dog with 2 months and a dog
    with 11 months like being the same.
    1) How can we show the age in a way that the first year can
    be show in months?
    2) How can we, for this case of Age, get a range of values
    associated with the combo box?
    Any feedback on this please?
    Thanks in advance

    I'm getting the following error:
    Notice: Undefined index: idade in
    /home/cantinho/www/www/admin/cantinho/encontrar_animal.php on line
    86
    And this line have:
    switch($_POST['idade']) {
    I have tried to use if (isset($_POST['idade'])) to try to
    avoid this error, like this:
    <?php
    if (isset($_POST['idade'])) {
    switch($_POST['idade']) {
    case 'bebe':
    $sql = 'SELECT * FROM dogs WHERE data_nasc_an <
    SUBDATE(NOW(),
    INTERVAL 6 MONTH)';
    break;
    case 'jovem':
    $sql = 'SELECT * FROM dogs WHERE data_nasc_an >
    SUBDATE(NOW(),
    INTERVAL 6 MONTH) AND data_nasc_an < SUBDATE(NOW(),
    INTERVAL 3 YEAR)';
    break;
    case 'adulto':
    $sql = 'SELECT * FROM dogs WHERE data_nasc_an >
    SUBDATE(NOW(),
    INTERVAL 3 YEAR) AND data_nasc_an < SUBDATE(NOW(),
    INTERVAL 8 YEAR)';
    break;
    case 'velhotes':
    $sql = 'SELECT * FROM dogs WHERE data_nasc_an >
    SUBDATE(NOW(),
    INTERVAL 8 YEAR)';
    else {
    echo '$_POST[idade] not valid or something the point is, I
    have no idea what to put here :(';
    but no luck either.
    My drop-down menu are defined like this:
    <select name="idade" id="idade">
    <option value="%" <?php if(isset($_POST['idade'])
    && $_POST['idade'] == "%") echo 'selected="selected"';
    ?>>Qualquer</option>
    <option value="bebe" <?php if(isset($_POST['idade'])
    && $_POST['idade'] == "bebe") echo 'selected="selected"';
    ?>>Bebé</option>
    <option value="jovem" <?php if(isset($_POST['idade'])
    && $_POST['idade'] == "jovem") echo 'selected="selected"';
    ?>>Jovem</option>
    <option value="adulto"<?php if(isset($_POST['idade'])
    && $_POST['idade'] == "adulto") echo 'selected="selected"';
    ?>>Adulto</option>
    <option value="velhote" <?php
    if(isset($_POST['idade']) && $_POST['idade'] == "velhote")
    echo 'selected="selected"'; ?>>Velhote</option>
    So it should not give this error.
    This will not be a big issue since its only a notice, but the
    query does not work either - When I press Submit he gives me all
    always all ages - so maybe its related somehow?
    Thanks again.
    ADD-ONS to this post :
    I have test the querys in a new f"aketest" recordset but they
    are not accurate.
    I have change the querys for this:
    Select CURDATE(), (YEAR(CURDATE())-YEAR(data_nasc_an)) -
    (RIGHT(CURDATE(),5)<RIGHT(data_nasc_an,5)) as Idade FROM animal
    HAVING Idade < 3
    It does not solve the months problem, but It was only for
    testing proposes, and this query worked ok in the fakerecorset BUT
    the form stills ignore the value of the drop-down because no filter
    was made.
    So, before que mysql querys, the drop-down in the form must
    be connected with the values of the database, and that's not the
    case right now.
    Anyone please?...

  • PC UI Advanced Search - Enhancement by standard fields of transaction table

    Hello,
    we are using CRM 5.0 SP13.
    We are familiar to enhance PC UI applications (BP+transactions) by EEW customer fields and how to use/hide them in the search functionalities etc.
    But now we need to enhance the advanced search for leads by the POSTING_DATE date of table CRMD_ORDERADM_H. Unfortunytely in PC UI advanced search structure for leads CRMT_BSP_LEA_SEARCH_ME the POSTING_DATE is not included like it is in the opportunity advanced search structure CRMT_BSP_OPP_SEARCH, where we were able to enhance the search easily by CRMC_BLUEPRINT_C customizing.
    The idea is to solve the problem to create EEW fields POSTING_DATE_FROM and POSTING_DATE_TO like they are existing in CRMT_BSP_OPP_SEARCH and use them in advanced search. So far no problem in creating and displaying the EEW fileds by CRMC_BLUEPRINT_C.
    But the part we are missing is to link the new EEW fields to the standard database-field POSTING_DATE and implement the search functionality "Searching by select option POSTING_DATE_FROM and POSTING_DATE_TO".
    Anybody any experience to link EEW-fields to standard fields of database tables for advanced search functionality in PC UI.
    Thank you for your help in advance.
    Best regards
    Marco

    Hi Marco,
    The best option here is to create redefination of the query method of the leads search class. Here you can first ensure that the call to the query method of super class takes place and the next would be do mapping between custom fields to local structure and then call the relevant API's to fetch the data.
    Best Regards, Adil

  • Advance search not working with gender check

    Hi all,
    I am not sure if this is something you can help me with or if I am missing something totally obvious.
    I have a "advanced search form" which has a few options to check through such as age, city, nationality etc and I have two recordsets, one for the logged in user who's gender is stored in $SameGenderCheck
    And I have an SQL statement for the search form's search criteria.
    Below is the SQL statement:
    $query_search_res = "SELECT * FROM profiles LEFT JOIN profile_details ON profiles.profile_id = profile_details.profile_id WHERE (city = '$location') OR (ethnicity = '$ethnicity' OR nationality = '$nationality' OR marital_history = '$marital_history' OR height = '$height') AND (Age BETWEEN '$age_from' AND '$age_to') AND (gender != '$SameGenderCheck') AND (approved = 'Yes')";
    Thanks.

    I see.
    I will do my best.
    I have two tables "profile" and "profile_details" (there is a left join here)
    The name and contact details are in the table called "profile" and personal details such as height, nationality,marital status etc
    All fields are filled in.
    "Profile" also stores the gender of the user.
    So the idea of the form is to allow the visitor to type/select any and all of the search criteria and adv_search_results.php should display the matched criteria.
    The user must not be the same gender as the people in the results. So if user is male the person they are searching for should only be female. And vise versa.
    Here are my code snippets.
    Logged in visitor:
    mysql_select_db($database_db, $db);
    $query_loadProfile = "SELECT * FROM profiles LEFT JOIN profile_details ON profiles.profile_id = profile_details.profile_id WHERE email_address ='".$_SESSION['MM_Username']."' AND approved = 'Yes'";
    $loadProfile = mysql_query($query_loadProfile, $db) or die(mysql_error());
    $row_loadProfile = mysql_fetch_assoc($loadProfile);
    $totalRows_loadProfile = mysql_num_rows($loadProfile);
    $SameGenderCheck = $row_loadProfile['gender']; <--- THIS TAKES THE CURRENT LOGGED IN USER's GENDER
    This is the recordset for the search criteria:
    mysql_select_db($database_db, $db);
    $query_search_res = "SELECT * FROM profiles LEFT JOIN profile_details ON profiles.profile_id = profile_details.profile_id WHERE (city = '$location') OR (ethnicity = '$ethnicity' OR nationality = '$nationality' OR marital_history = '$marital_history' OR height = '$height') AND (Age BETWEEN '$age_from' AND '$age_to') AND (gender != '$SameGenderCheck') AND (approved = 'Yes')";
    This is the results page output:
    <table width="100%" border="0" cellspacing="2" cellpadding="2">
                                <tr>
                                  <td valign="top"><div align="left">User ID</div></td>
                                  <td valign="top"><div align="left">100<?php echo $row_search_res['profile_id']; ?></div></td>
                                </tr>
                                <tr>
                                  <td valign="top"><div align="left">City</div></td>
                                  <td valign="top"><div align="left"><?php echo $row_search_res['city']; ?></div></td>
                                </tr>
                              <tr>
                                <td valign="top">Ethnicity</td>
                                  <td valign="top"><?php echo $row_search_res['ethnicity']; ?></td>
                                </tr>
                              <tr>
                                <td valign="top">Nationality</td>
                                  <td valign="top"><?php echo $row_search_res['nationality']; ?></td>
                                </tr>
                              <tr>
                                <td valign="top"> </td>
                                  <td valign="top"><div align="right"><a href="profile.php?id=<?php echo $row_search_res['profile_id']; ?>" target="_blank">View Profile</a></div></td>
                                </tr>
                              </table>
    Please note I have not put the whole code of the results page as it loads other non critical things.
    I hope this is enough

  • Advanced search based on term set

    I have a picture library where I use a term set to tag photos. The managed property is called owstaxIdCuisine.
    When I perform a keyword search using one term from the term set (e.g. "vegetarian"), I would expect the pictures tagged with this term to be on top of the results. However it is not the case.
    I have tried to include my managed property under "Add property restrictions" and enter the keyword there, but it doesn't seem to make any difference.
    When I use refiners on the search results, it works fine: if I click the "vegetarian" checkbox, then I get only the vegetarian pictures. However I'd like my users to get the correct results directly from the advanced search form.
    What am I missing?
    Christophe Humbert Path to SharePoint http://blog.PathToSharePoint.com User Managed Solutions http://UserManagedSolutions.com

    Hi Christophe,
    Have you checked if you could add the custom managed property in the advanced search form per the following article?
    http://waelmohamed.wordpress.com/2011/05/31/add-custom-search-properties-in-your-advanced-search-sharepoint-2010/
    Thanks
    Daniel Yang
    TechNet Community Support

  • Managing Blank Fields in Search Form

    I am trying to create an advanced search form to filter a recordset of events, so that I can search through these events based on parameters such as category, time, date, place, etc. Right now, because I'm new at this, I have been trying to create a filter with only two parameters, category and price. 'Category' is the first field in the form and 'price' is the second field in the form, followed by fields for time and location. When I search by category, the search works fine. When I search by category and price, only the category parameter works, and it doesn't filter by price. When I search only by price, the recordset comes up as blank. Does this have something to do with fields in the form being left empty or do empty fields have no effect on the search. When I test my query statement on my SQL query browser, it works fine, so I don't think that's the problem. Any help would be appreciated.

    Not an ADDT-specific question so I never responded. However the OP re-posted here in the Dreamweaver Application Development forum which produced a very interesting thread.

  • Search Form Validation Message Customization

    Hi -
    In the Advanced Search form when the user enters 'non-numeric' value in a numeric field the application throws a message like "asdasd in MyNumField is not a number" when the Find button is clicked.
    Is it possible to display the field's Label value instead of the name?
    Say I have set "Req Quantity" as MyNumField's label how can I display
    "asdasd in Req Quantity is not a number"
    Thanks in advance for your time,
    Saran

    Saran,
    You can do this by using a custom property on the ViewObject attribute:
    - open the ViewObject editor
    - select the attribute
    - click the "Custom Properties" tab
    - enter "PROMPT" as the name and the desired prompt as the value
    - click Add button
    - click OK
    Steven Davelaar,
    JHeadstart Team.

  • Custom search form and custom results

    Hi, everyone!
    My problem is that I have to search for custom items with custom fields (attributes). So I have to create my own search form with necessary fields. Than the solution may be to call the portal30.wwsbr_search_api.submit_search procedure, but it renders it's own HTML result with advanced search form. That doesn't suit me. Searching for alternative API, I found portal30.wwv_searchdb.search function. I tried to use it, but in any case it fails with exception and error message "ORA-01403: no data found". From the previous messages I've discovered that there is custom search portlet in 9.0.2. But is it possible to solve my problem without these new features?
    Thank you for your answers ;)
    yk
    P.S. Sorry for my English...

    Yuriy,
    I'm sorry but the portal30.wwv_searchdb.search api is not one of the public apis. There is no simple out of the box way to address your issue with release 1 of Oracle9iAS Portal (you'll have to wait for release 2 for that), but you could do some post processing of the HTML that gets returned from the search results screen and present that to your users. While it would take a little work it would probably give you the functionality you desire.
    You would create a custom search screen, and have the submission call our api with the users values. Then process the results of that call (an HTML page) inside a procedure to finally present your own view of the data.
    Good luck,
    Rich

  • CANNOT USE "Advanced Custom Search Form For ADF"

    Hi,
    I have tried the application on this old post but it doesnt work on jdev 11g even after migrating.
    Can some body tell me whats wrong and / or post a working application here.
    Need to use this functionality urgently.
    the original post is here.
    http://my.opera.com/dominionspy/blog/2007/02/26/an-advanced-custom-search-form-for-adf
    Any help is really appreciated.

    Thanks for your reply.
    Could you tell me where can i find example implementations of the query model classes.
    they have mentioned it to be found in "For an example implementations of the different model classes for a query, see the classes located in the oracle.adfdemo.view.query.rich package of the ADF Faces sample application."
    Also where can i get the source code for this http://jdevadf.oracle.com/adf-richclient-demo/faces/components/query.jspx
    thanks in advance

  • Maverick   XI 11.0.06, quit unexpectedly when try to fill form. Installed patch and use advanced search same problem

    Maverick   XI 11.0.06, quit unexpectedly when try to fill form. Installed patch and use advanced search same problem

    You may want to install the 11.0.07 Update to see if there is an improvement in the behavior.
    Adobe - Acrobat : For Macintosh : Adobe Acrobat 11.0.07 Pro update - All languages

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

  • How to enhance the standard search with custom field?

    Hi all,
    I would like to know the general optimal procedure to enhance the standard searches like Opportunity search or Lead search.
    I've gone through some of the threads here. Some suggest, to add the new field using AET and copy the IMPL class of the search and then code the custom logic. Some say, append the new field to the structure of the search object and then implement the BADI.
    I'm actually a bit confused to understand the correct procedure.
    Can someone please help me with a generic procedure to enhance the standard search with a custom field?
    Thanks in advance.

    Hi Maren,
    Once I have got the same development. I have followed the below steps, please check with this. Let me know for further inputs.
      Add new field using Append structure of type ‘XXX’ in search
      Create BADI implementation for Enhancement spot ‘ES_CRM_RF_Q1O_SEARCH’ and include filter ‘BTQOPP’
      Put your logic in BADI implementation – SEARCH method
      Add it in WebUI configuration
      Remove the operator if required
    Regards,
    Swadini Sujanaranjan

  • Issue while enabling Advanced Search functionality in Agent Inbox

    Hi Experts,
    We have enhanced the Agent inbox search to include few EEWB fields. The basic search is functioning smoothly and search is working on both standard and EEWB fields.
    But after configuring the Advanced Search for agent inbox, we are not able to find the EEWB fields in the Advance search dropdowns to be searched upon.
    We checked the ICCMP_INBOX/InboxAdvancedSearch view configuration and the EEWB fields are also not available in the list of available fields, but are present in the Context node 'SEARCH'.
    Are we missing on some configuration?
    Any pointers towards the solution would be highly appreciated.
    Regards,
    Saumya

    Closing this thread due to lack of replies

Maybe you are looking for

  • MacBook speakers and headphones are not working! Please help.

    MacBook OS X 10.6.8 2009 model I was watching a movie and my MacBook randomly shutdown by itself. I turned it back on and had no more problems, so I restarted the movie. The audio was not working in my headphones. So I tried the internal speakers and

  • Custom fault message from OSB is not throw in BPEL

    Hi, I have created a custom fault error in OSB which is sent to BPEL. <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> <env:Header/> <env:Body> <env:Fault> </env:Fault> </env:Body> </env:Envelope> If my namespace in FAULT tag is "

  • Account Identification thru Account no instead of telephone number

    My Client has a CTI solution which is already in use by the call center agents. As of now, the call center agents are using Desktop Manager through which they are using the accept, reject or other functions. Now they want to replace the Desktop Manag

  • Airport Express with Front Row

    Why in the world would Apple make the remote with my iMac Core Duo control the local volume, not the iTunes volume, when in Front Row? Does that make any sense? Not to me. Kind of defeats the purpose to have to walk to my iMac to adjust the volume wi

  • Session management in session bean calling session bean

    Hi,           I've got another question on transaction.           I have following stateless session beans :           session1 with trans-attribute Required.           session2 with trans-attribute Required.           session1 calls session2 and ses