Search form and search results page

Hi! I really need some help with my search and search results page. I'm a newbie and am trying to get my site built. My search page will be the most important page and is quite complex. It will have 11 drop down boxes and 8 radio buttons. I have my form set up on the search page. When I try to run it now it returns all results. Because I have so many fields I didn't want to post it all but, here's what my code looks like for my first drop down box:
<select name="area_search[]" multiple="multiple" id="area_search" form="search" >
            <option selected="selected" value="" <?php if (!(strcmp("", $row_rs_searchpropertyinfo['Area']))) {echo "selected=\"selected\"";} ?>>Any</option>
            <option value="Downtown" <?php if (!(strcmp("Downtown", $row_rs_searchpropertyinfo['Area']))) {echo "selected=\"selected\"";} ?>>Downtown</option>
            <option value="Jackson County East" <?php if (!(strcmp("Jackson County East", $row_rs_searchpropertyinfo['Area']))) {echo "selected=\"selected\"";} ?>>Jackson County East</option>
            <option value="Johnson County" <?php if (!(strcmp("Johnson County", $row_rs_searchpropertyinfo['Area']))) {echo "selected=\"selected\"";} ?>>Johnson County</option>
            <option value="Johnson County North" <?php if (!(strcmp("Johnson County North", $row_rs_searchpropertyinfo['Area']))) {echo "selected=\"selected\"";} ?>>Johnson County North</option>
            <option value="Johnson County South" <?php if (!(strcmp("Johnson County South", $row_rs_searchpropertyinfo['Area']))) {echo "selected=\"selected\"";} ?>>Johnson County South</option>
<option value="Midtwon" <?php if (!(strcmp("Midtwon", $row_rs_searchpropertyinfo['Area']))) {echo "selected=\"selected\"";} ?>>Midtown</option>
<option value="North Kansas City" <?php if (!(strcmp("North Kansas City", $row_rs_searchpropertyinfo['Area']))) {echo "selected=\"selected\"";} ?>>North Kansas City</option>
<option value="Northland" <?php if (!(strcmp("Northland", $row_rs_searchpropertyinfo['Area']))) {echo "selected=\"selected\"";} ?>>Northland</option>
            <option value="Plaza" <?php if (!(strcmp("Plaza", $row_rs_searchpropertyinfo['Area']))) {echo "selected=\"selected\"";} ?>>Plaza</option>
            <option value="South Kansas City" <?php if (!(strcmp("South Kansas City", $row_rs_searchpropertyinfo['Area']))) {echo "selected=\"selected\"";} ?>>South Kansas City</option>
</select>
This is the code for a radio button:
<input <?php if (!(strcmp($row_rs_searchpropertyinfo['Washer_dryer_in_unit'],"yes"))) {echo "checked=\"checked\"";} ?> name="radio_washerdryerinunit" type="radio" id="radio" form="search" value="yes"/>
The searchresults.php page:
<?php require_once('/Connections/Property_Info.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;   
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  return $theValue;
$var_area_search_rs_searchpropertyinfo = "%";
if (isset($_POST['area_search'])) {
  $var_area_search_rs_searchpropertyinfo = $_POST['area_search'];
mysql_select_db($database_Property_Info, $Property_Info);
$query_rs_searchpropertyinfo = sprintf("SELECT property_info.Area FROM property_info WHERE property_info.Area LIKE %var_area_search%", GetSQLValueString($var_area_search_rs_searchpropertyinfo, "text"));
$rs_searchpropertyinfo = mysql_query($query_rs_searchpropertyinfo, $Property_Info) or die(mysql_error());
$row_rs_searchpropertyinfo = mysql_fetch_assoc($rs_searchpropertyinfo);
$totalRows_rs_searchpropertyinfo = mysql_num_rows($rs_searchpropertyinfo);
?>
                  <?php
$rs_searchpropertyinfo_endRow = 0;
$rs_searchpropertyinfo_columns = 5; // number of columns
$rs_searchpropertyinfo_hloopRow1 = 0; // first row flag
do {
    if($rs_searchpropertyinfo_endRow == 0  && $rs_searchpropertyinfo_hloopRow1++ != 0) echo "<tr>";
   ?>
                  <td><table width="330px" border="0" cellspacing="7" cellpadding="2">
                    <tr>
                      <td width="300" height="275" bgcolor="#000000"><p><img src="../Properties/Thumbnail_image/<?php echo $row_rs_searchpropertyinfo['Images']; ?>" alt="" width="290" height="290" /></p></td>
                    </tr>
                    <tr style="text-align: center; font-size: 22px; color: #940000;">
                      <td width="300" height="75" bgcolor="#000000"><?php echo $row_rs_searchpropertyinfo['Area']; ?>
                        <p> </p>
                        <p><?php echo $row_rs_searchpropertyinfo['Property_Name']; ?></p>
                        </td>
                    </tr>
                    <tr bgcolor="#F7080C" style="text-align: center; font-size: 18px; color: #050505;">
                      <td height="45" bgcolor="#940000" style="font-size: 14px"><img src="/images/Detail button.jpg" alt="Property Details" onClick="MM_openBrWindow('<?php echo $row_rs_searchpropertyinfo['KCRC_detail_page']; ?>','detail','width=600,height=600')"/></td>
                    </tr>
                    <tr bgcolor="#F7080C" style="text-align: center; font-size: 18px; color: #FFFFFF;">
                      <td height="29" bgcolor="#940000" style="font-size: 14px"><a href="/checkavailability.php" target="new"><img src="/images/Check availability button.jpg" alt="Check availability" onClick="MM_openBrWindow('./checkavailability.php','availability','width=600,height=600') "/></a></td>
                    </tr>
                    <tr bgcolor="#F7080C" style="text-align: center; font-size: 18px; color: #FFFFFF;">
                      <td height="29" bgcolor="#940000" style="font-size: 14px"><a href="/scheduletour.php" target="new"><img src="/images/Schedule tour button.jpg" alt="Schedule tour" onClick="MM_openBrWindow('./scheduletour.php','schedule','width=600,height=600')"/></a></ td>
                    </tr>
                    <tr bgcolor="#F7080C" style="text-align: center; font-size: 18px; color: #FFFFFF;">
                      <td height="29" bgcolor="#940000" style="font-size: 14px"><a href="/contactus.php" target="new"><img src="http://www.kcrentalcentral.com/images/Contact agent button.jpg" alt="Contact a Rental Agent to answer any of your questions" onClick="MM_openBrWindow('./contactus.php','contact','width=600,height=600')"/></a></td>
                    </tr>
                  </table></td>
                  <?php  $rs_searchpropertyinfo_endRow++;
if($rs_searchpropertyinfo_endRow >= $rs_searchpropertyinfo_columns) {
  ?>
                </tr>
                <?php
$rs_searchpropertyinfo_endRow = 0;
} while ($row_rs_searchpropertyinfo = mysql_fetch_assoc($rs_searchpropertyinfo));
if($rs_searchpropertyinfo_endRow != 0) {
while ($rs_searchpropertyinfo_endRow < $rs_browsepages_columns) {
    echo("<td> </td>");
    $rs_searchpropertyinfo_endRow++;
echo("</tr>");
}?>
As I said, I'm a newbie. Any help or guidance would be very much appreciated. THanks in advance!

Thanks for that example, but that is the design based on different technology than mine (ADF BC, and I am using ADF, EJB3/JPA). The link I provided above nowhere presents <methodIterator> nor <methodAction> and these are generated automatically in the page definition file by JDev when you drag-drop collections onto the page. So obviously that manual (online help) does not reflect the internals of current JDev 10.1.3.2 operation. As the matter of fact complete XML schema format seems to be different (although similar to certain extent) than the schema format created by JDev 10.1.3.2

Similar Messages

  • 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

  • How to create URL link for telephone number ,open to account search page and account result page ?

    Hi Experts,
    Bussines role - ZCC_ICAGENT 
    If user open this bussiness role and open Account page ,user enter telephone number and enter search account ,then result will be displayed.Instead of 3 clicks ,user click direct URL link ,telephone number is parameter,account Search and account result  page will be opened direct link.
    So how to do it..could you please provide me step by step...what are the steps wee need to follow for creating URL ..how to do it..Please help..
    Thanks
    Kalpana

    Hi kalpana,
    You dont need to do any setting for this.
    Following URL will be used as per your requirement.
    http://rrnewcrm.ril.com:8000/sap(bD1lbiZjPTI0MiZkPW1pbg==)/bc/bsp/sap/crm_ui_start/default.htm
    ?sap-system-login-basic_auth=X&sap-system-login=onSessionQuery&saprole=ZCC_ICAGENT&
    sap-phoneno=9999999999
    Here parameter sap-phoneno will contain the number you want to search for.
    In component ICCMP_BP_SEARCH, go to view BuPaSearchB2B. write below code in its inbound plug IP_INBOUNDPLUG-
    DATA: lt_ivr_url_param TYPE tihttpnvp,
             ls_ivr_url_param TYPE ihttpnvp,
             lr_searchcustomer TYPE REF TO if_bol_bo_property_access,
             ls_searchcustomer TYPE crmt_bupa_il_header_search.
    CALL METHOD cl_crm_ui_session_manager=>get_initial_form_fields
           CHANGING
             cv_fields = lt_ivr_url_param.
    lr_searchcustomer ?= me->typed_context->searchcustomer->collection_wrapper->get_current( ).
         CHECK lr_searchcustomer IS BOUND.
    READ TABLE lt_ivr_url_param INTO ls_ivr_url_param WITH KEY name = 'sap-phoneno'.
    IF ls_ivr_url_param-value IS NOT INITIAL.
             ls_searchcustomer-telephone = ls_ivr_url_param-value.
       CALL METHOD lr_searchcustomer->set_properties( EXPORTING is_attributes = ls_searchcustomer ).
             eh_onsearch( ).
        ENDIF.
    Thanks & Regards
    Richa

  • ADF Search form inside a jsp page's panel page container

    I am going through the Oracle JDeveloper 10g for Forms & PL/SQL book and I got to page 391 where I need to drop a search form onto a jsp page set up with a panelpage. The form show up but when I go to delete the extra fields JDeveloper completely locks up. I am running JDeveloper version 10.1.3.3.0.4157. I tried reinstalling it and it still locks up. I tried going back a few steps and recreate the search form and it still locks up.
    Can anyone explain why it is locking up or how to delete the extra fields without locking up?

    I also tried selecting a field in the source file code window. Just selecting a field in any form or window locks up JDeveloper. My program worked find until I created a search form from a data set. I think it is a bug in the version of JDeveloper I have. I did a similar task in a previous version and it worked fine. I could select and delete fields with no problem.

  • Had a Search Criteria and the result as table in header.Wanted to bind the result table to bean for the key value access

      Had Search Criteria and the result is displayed in the table in a panel header .  I want to get the selected  row value and parse the value to next Vo in next page for a bind variable . So i need to handle the  tbale value by biniding to the bean , but there was no option to bind the table for a bean.So how can i get the value selected .
    Regards,
    K M Krishna.

    First of all tell us your jdev version, please.
    to get to the selected row you don't need to bind the table to a managed bean. You can e.g. drag the needed attributes from the VO onto the page and drop them as inputText components. the Framework then generated the attribute bindings and sets the values of the current row to them. As you don't really need the inputText components switch to source mode (!this is essential!) and remove them. This will remove the visual component but the attribute bindings are kept.
    Know you can access the values via their EL or like you get the value from an attribute via it's binding.
    Timo

  • Deleting Forms and Search History is Dictating my freedom

    Is this a trick? I used to be able to freely delete my forms and search history. Now the checkbox on the delete everything dialog box is disabled, and unchecked! When I ask to delete everything, I mean everything, please. I should be able to make the decision myself, not have it made for me by Google, the government, or some script kiddie. Please give our freedom back, and make the delete forms and search history accessible.
    Furthermore, please, please, delete everything and shred it, if that is what the user wants (Unlike Microsoft with Pending Deletes, and Google with its Autocratic Internet takeover policies. And what is with all the google and chrome junk in the about:config anyway?)
    I used to love Firefox because it seemed like a Freedom Fighter, but now I have deleted it from all Windows systems and all but one Linux system, because it seems like it is selling out. On the sales pitch page, Firefox purports to be working for greater Internet freedom, but the closer you look, it seems two-faced.
    I will watch the status of Firefox on that one system, and if it improves, I might allow it back on the other systems. Otherwise, I might just fork it like IceWeasel or even find something else, eventually.

    No it's not a trick. You should be able to check-mark Form and Search History in Clear Recent History. Any chance that "Remember search and form" history is not selected in the Privacy tab of Options?
    I have also seen reports from some users that their security suite on Windows PC "took over" many of the Clear Recent History items and locked out users from changing the status of any item in Clear Recent History, but I can't see something occurring with Linux versions of Firefox.

  • I'm unable to clear my search history after many attempts with the firefox instructions as I'm unable to check the "Form and Search History" box for some reason

    I've tried several times to clear my search history without any success. I've been able to do so in the past, but this is the first time I've tried in a while and for some reason it will not let me check the box for "Form and Search History." Then sometimes it will let me check that box, but when I click "ok" to apply the clearing of the search history, nothing happens and it still remembers all my sites. At that point I try to clear it again and its back to not letting me check the "Form and Search history" box (I've gone through this cycle a few times). I tried looking through some of suggested articles that Firefox sent me too, but I don't know much about computers and just doing the things they seem talking about isn't working either. Please help, thanks!

    It seems to have worked itself out. Thanks anyway!

  • Form and search history is disabled- can you tell me why this is and give me some simple steps to fixing it?I've tried reading forums and support to no avail :(

    For some reason, when I try and click on form and search history under the clear history tab it's greyed out (all of the other options for clearing history are available)
    I don't seem to be able to find any answers to WHY this is (which I would like to know) and also I've tried to follow instructions (factory reset firefox, restart computer etc) but for some reason it doesn't make any difference and I really don't know what to do. I'm not particularly tech savvy so any help would be really really appreciated

    This happens if there is no form history to clear (you probably already cleared it).
    Is saving form history enabled?
    *Firefox > Preferences > Privacy > Firefox will: "Use custom settings for history": "Remember search and form history"
    *https://support.mozilla.org/kb/Form+autocomplete
    Firefox won't save new form data if you are in Private Browsing mode.
    *https://support.mozilla.org/kb/Private+Browsing

  • When trying to clear the history (Browsing and download history, cookies, form and search history, and cache) firefox freezes and sometimes Ill get a warning for an unresponsive script.

    When trying to clear the history (Browsing and download history, cookies, form and search history, and cache) firefox freezes and sometimes Ill get a warning for an unresponsive script.
    Using MacOSX 10.6.8 on Macbook Pro
    Using Firefox 10.0.2

    Try to exclude the cookies from the clear history settings and let the cookies expire at the end of the session instead.

  • How to make a 3 fields search box and display results below it

    Hello there I am trying to make a module for joomla cms that facilates visitor to find a particular list of packages for the search he makes by selecting the choices in three radio buttons
    , the result must be shown the search form in attractive way
    I am familier with some PHP, MySQL, CSS and little Java script
    now what do you think where should i begin to start

    Have a look here http://labs.adobe.com/technologies/spry/samples/data_region/MultipleFiltersSample.html
    Gramps

  • Viewing PDF files in IPM Search form and Package Search

    I recently released a PDF file into the Oracle IPM software, but can't view the document in either Search Form or Package Search. It shows a blank page, no document. Can someone point me to some documentation which might explain how to configure the IPM system to be able to view a stored PDF file rather than a Tiff file?

    I wish I could say it helped, but it did not.  I do not have Acrobat 6 or Acrobat 7. I have Adobe Reader 10.1.3.
    I did a "find" for acrobat and found a preference that i moved to the trash it case it was a holdover for when I had acrobat, then I did a restart and the problem is still there.

  • SSXA - search field and display results

    I have a site written in SSXA and I would like to
    a) add a search field to the pages' templates (having the functionality of Quick Search in UCM for site files)
    b) display the result page when a search is performed
    Thanks in advance!

    Have a look here http://labs.adobe.com/technologies/spry/samples/data_region/MultipleFiltersSample.html
    Gramps

  • Custom Search Form and custom attribute picklist?

    I have a custom item type which has a custom attribute NAICS_Code. The NAICS codes are stored in a database table and the attribute is set to a list of values that is a query on that table. The attribute is associated with a custom item type as a text attribute.
    Now, when I add the custom item type to a page, the NAICS Code field is a popup selector, as expected.
    On a Portal page, I have the Custom Search Portlet that searches another page that contains the custom item type.
    On the Custom Search Portlet, I can add the NAICS Code as an additional attribute, but the search field is a plain text box and NOT a pick list of any kind.
    Can I configure the Custom Search Portlet to use associated LOVs with filter by attributes?

    I'm afraid that in the version of portal you are using we don't render LOVs for LOV attributes on the search portlet.
    In 10.1.2 attributes are added to the search form using a More Attributes button which simply render an empty row for the attribute details to be filled in.
    In 10.1.4 this was improved considerably. Now attributes are added to the search form like they are added in the edit defaults, with a Choose Attributes link which opens a popup to select the attributes. On closing the popup the search form is re-rendered and any LOV attributes will be rendered with a combo box of available values to select from.

  • Search difference between Search Folders and search on OWA

    Sometimes when I Search the Inbox folder on OWA, the search will not return all the emails with a subject line value.  However, I also have a Search Folder set up to look for the same subject line value and it does return all the emails. 
    After a few days it usually fixes itself.   
    What is the difference between the search using OWA and the search using a Search Folder? 
    For the OWA search I specify to only search the Inbox and to only search the Subject line.  

    Hi,
    Yes, there are some different results when searching items in OWA and Outlook Cached mode.
    When users are using Outlook Cached mode, Outlook uses
    Windows Search, a component built-in in Windows 7 and Windows Vista. Windows Search performs content indexing and provides search functionality to Outlook. Interfacing with a local content indexing and search service provides Outlook users running
    in Cached Exchange Mode a more efficient way to search their mailbox. For details about Windows Search, see
    Windows Search.
    When using OWA, the Exchange Search is used. Generally, Search results are limited to the first 100 matches found in OWA. For more information about Exchange search, we can refer to Exchange Search Client part in :
    http://technet.microsoft.com/en-us/library/bb232132(v=exchg.141).aspx#ESC
    If you have any feedback for TechNet Subscriber Support, contact
    [email protected]
    Thanks,
    Winnie Liang
    TechNet Community Support

  • Having trouble having both an interactive form and an interactive page curl in a pdf?

    Okay, so I need an interactive pdf with a page curl AND an interactive form. I exported my Indesign file as a swf file with the interactive page curl, (which the interactive form doesn't work on), then I imported the swf file back into Indesign, opened the media tab and chose the option to 'open file on current page' so that when I open the pdf it doesn't ask me to activate the file before use, and then export as an interactive pdf. the interactive page curl works perfectly, but the form doesn't work. How do I put an Indesign form into my interactive pdf?

    Hi Enrico,
    If I understand correctly, you are calling the addInstance() on click of the button that you placed in your form and when you add more pages using this button and save the fikle and open it again, the newly added instances are not displayed in the form. Am I right?
    If this is the scenario, the you need to store the value of the forms created using this button and call the same addInstance() method in the initialize event of your form. I.e place the same code that is there in click event of the button inside the Initialize event of the form with the number that we have saved in some hidden field.
    Hope this resolves your issue.
    Cheers,
    Arafat

Maybe you are looking for

  • Can you please help me figure out this repeat crash in safari

    this crash occurs when i click a reply button on an ajax form ...the little reply text window expands and then safari disappears happens sporadically ... are the addons i have installed the culprit because it happens to my friend in same exact place

  • LG Ally text message and gps problems

    hello. ive been with verizon for about 10 years maybe. ive been overall happy with the service and customer service. but the prices should be alot lower.lol. i started out with the motorolas then switched to the lg phones. only problem with the motor

  • Automatic Goods Issue in Outbound delivery scenario with Shipment

    Hi, Could you please explain me how to Automatic Goods Issue happens in Outbound delivery scenario and in shipment process. Is there any transaction for this? Can we use VL23 for Automatic Goods Issue in Shipment process? or is it only for Outbound d

  • SAP ERP Installation

    Hi i would like to install SAP ERP 6 Could you help me which files i need to download from market place? I have dowloaded SAP ERP 6.0 SR3 Installation Export 1 of 6 to 6 of 6 ; ERP 6.0 SR3 Upgrade Master Windows Server on x64 64bit  ; SAP ERP 6.0 SR3

  • Snow Leopard + Aperture 2.1.4 (problem)

    I´ve just installed Snow Leopard in my MacBook Pro. When I opened Aperture 2.1.4 that I use, i saw in the export window a fixed grey bar, wich is sometimes a problem to see folders. I made a clean reinstall of Aperture but the problem is still there.