Want to develop search form

hi everybody!
another problem was coming over me...
I want to develop a search form like a normal search site in internet, which search for an entered character in much tables in my database.
after the search want to display my results in a report style.
How does it works or where can i find example apps where i'm able to see the functionallity of such search apps????
thanks to everybody who writes back!!!! :)

Thomas,
That's a very interesting problem you have!
Let me understand what your requirements are:- you want to have a field where the user enters in a string value, and then presses the 'Search' button, and you want the form to search through several tables and find records where a certain column in these tables has this string value in it.
Am I right? If so, then try this...
Lets say you have five tables, A, B, C, D, E, and they all have a column called COL1, and you to search this column.
Create a view called, lets cay VIEW1 as
CREATE VIEW VIEW1 AS
SELECT COL1 FROM A
UNION
SELECT COL1 FROM B
UNION
SELECT COL1 FROM C
UNION
SELECT COL1 FROM D
UNION
SELECT COL1 FROM E;
Create a block (call it C1) with your 'search' field (with the 'search')and a button. Create a second multiple row block called BLK_VIEW1, and make sure this block has a base table of VIEW1. In the 'default where' clause of this block, say something like 'where col1 like :C1.search'.
In the When-button-presses trigger go to the BLK_VIEW1 block and do an 'execute quuery'.
This should display all the rows that match the user entered search criteria.
Hope that helps.
Harry
null

Similar Messages

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

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

  • Want to develop form with field not in Database table.

    Hi.
    I am developing one form for leave request.
    Now i have created two tables..
    1. Employee detail
    2.Leave detail
    Now i am creating form based on leave detail right now.
    This table is taking reference of Employee Detail table as reference table.(employee no is foreign key in Leave detail table).
    Now in form based on Leave detail table,i have taken employee name as combo field,now when i select any employee name,based on employee name other realated detail from employee detail table also i can populate in form based on Leave detail table.
    Is it possible.?As i am not able to add any field or button other than which is already there in table(Leave Detail table)
    I hope i have clearly mentioned my requirement,
    Need help.
    Thank you.

    You can in fact add another field which is not connected to any column to in the Leave table. Give it any name. Make sure that the checkboxes "updatable" and "insertable" are NOT checked, otherwise the form will try and include it in its SQL statements to update/insert data.
    You then have to use the "Additional PL/SQL" tab - "before form is displayed" section on the form to fill in the value of the field. Use code like
    p_session.set_value(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_<your field name>',
    p_value => <your value>);
    p_session.save_session;
    where
    - p_session is available in most custom PL/SQL blocks - It refers to a portal stored session that is used to store all the internal variables.
    - block_name is either DEFAULT for simple forms or MASTER or DETAIL for master/detail forms
    - p_attribute_name is the name of the field you want to set BUT (very important) prefixed with A_
    - p_value is the actual value - here you will use your pl/sql variable.

  • Develop Search Functionality

    Hi All,
    I need help for developing Search Functionality for web base product using JSP - Servlet and SQL Server 2005.
    like please open http://www.sun.com/, After opening the web page - at right top side there is a one text field "Search" and beside of there is a one ">" search button. Now
    If I am giving the search keyword "Java" then it will comes with search results.
    Same thing I want to develop my web base product. If I am giving any keyword - like medicine name and hit on the search button then result comes.
    Please give me the concept or guide me How to Start for coding on this part?
    Thanks
    Amit Pandya

    Read on how to do a search in a database using SQL. Then invoke that with JDBC API (make use of PreparedStatement!!). Then create a plain HTML form textfield and a button to enter the search keywords.
    If performance is important and you have a lot of text (e.g. messages of a forum), I'd to introduce a 3rd party database search engine library such as Xapian which indexes the database for search.

  • URL for search form

    Someone wrote a CF file - .cfm. I read his source code. His
    CF page has a search form.
    For example - example1.cfm has a code -
    <form action ="serachdata.cfm" method="post">
    <b>Quick Search:</b>
    <input type="text" name="keyword" >
    <input type="image" src="go3.gif" alt="GO" border="0" >
    </form>
    I don't want to go to the example1.cfm then search for
    something. ( two steps).
    I wonder if there is any way for me to create a link from my
    page to the example.cfm? with search. ?
    I tried to create a link in my page test -
    https://www.example.com/example1.cfm?keyword=103 but it doesn't
    work that way.
    Is there any way to do that?
    Thanks,
    Krae

    Is there another way? or no way there?
    Thanks again,
    Krae
    There is noway there using URL values. The original form has
    a
    method="post" parameter. The means the values are being
    passed in the
    HTTP headers not the URL query string.
    If you wanted, and the original developer isn't preventing
    this, you can
    create your own form.
    <form action ="
    http://www.example.com/serachdata.cfm"
    method="post">
    Quick Search:
    <input type="text" name="keyword" >
    <input type="image" src="go3.gif" alt="GO" border="0"
    >
    </form>
    You then put this form page on an web-server and fill out and
    send. You
    will get the results.

  • Clob objects in search form

    Hello.
    I am trying to build a search form for my DB following the instructions of the "Developing Rich Web Applications with Oracle ADF" tutorial.
    One of the attributes I want to search (which is a field of a table in the DB) is of the type CLOB, but it is marked as non-queryable, and the checkbox is disabled so I cannot make it queryable.
    Is there any way to query CLOBs using the built-in search form? I know CLOBs can be queryed in Oracle.
    Thank you very much.

    Timo,
    You're confusing Oracle Text (or whatever it's called now) with CLOB datatype , although a text index on a clob column would be ok.
    You can use LIKE on clob columns, but not direct comparison with a string:
    SQL*Plus: Release 11.2.0.3.0 Production on Fri May 11 14:44:32 2012         
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.                     
    Connected to:                                                               
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> create table john(x clob);                                             
    Table created.                                                              
    SQL> select * from john where x like 'foo%';                                
    no rows selected                                                            
    SQL> select * from john where x = 'xx';                                     
    select * from john where x = 'xx'                                           
    ERROR at line 1:                                                            
    ORA-00932: inconsistent datatypes: expected - got CLOB                      
                                                                                 John

  • 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

  • My safari is blocked. When I press a window comes up sasking Are you sure you want to submit this form again and it will not let me cancel or submit

    My safari is blocked. When I press a window comes up sasking Are you sure you want to submit this form again? and it will not allow me to cancel or submit

    These are your options:
    1. Restore the iPhoto library from the most recent backup that predates the issue.
              Advantages: Always works, if library damage is causing the problem and the backup is intact.
              Disadvantages: Impossible if you don't have a backup. All changes made since the backup are lost.
    2. Repair or rebuild the library. Be sure to back it up first.
              Advantages: May solve the problem with no loss of data.
              Disadvantages: May fail. May take a long time if the library is large.
    3. Scavenge the library with a third-party application called "iPhoto Library Manager," which you can find in a web search. From the application's menu bar (not the iPhoto menu bar), select Library ▹ Rebuild.
              Advantages: All images should be preserved.
              Disadvantages: All books, calendars, and slideshows will be lost.

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

  • How can I show Search Form parameter values in URI of Results page?

    I have searched through these pages for posts relating to caching but haven't seen any that relate to my issue.
    We run a website that accesses data through search forms and returns matching data to the requester in a results page. The search criteria are entered in a form and the results page is generated by a servlet that gets the search parameter values that the user entered using the GET method.
    I would like rewrite this Search page using JDeveloper to bring our old code up to date and take advantage of new features that should help performance. In particular, I want to utilise the WebCache.
    To use the WebCache effectively, the cache needs to know what the search criteria were when it delivers a page so that repeated requests using the same criteria can be served directly from the cache.
    The data retrieved by a query may change from one search to to the next so I can't use time-based caching. But, I can use the WebCache Invalidation interface from the back-end DB server to flush old data out of the WebCache when it is changed, but to flush out the correct pages I need to know the parameter values passed.
    If I just follow the demos, it seems like the search parameters are all hidden in beans or something which means that the Web Cache can't be used for what I want. The parameter values are important.
    So my question is: is there a way of showing the search parameters used in the URI to the Results page? Can the old GET method of parameter passing be used (or can I somehow just put the old style parameters onto the URI?)
    Alternatively, is there a simple How To or Demo on how to use the Web Caching facility with JSF?
    (ADF Caching and Java Object caching do not seem appropriate for my needs. ADF caching seems to be limited to having fragments cached for fixed periods of time and Java Object caching is orders of magnitude slower and involves the Application Server.)
    Thanks for any advice,
    Andy

    Sorry - should have said I'm using JDev 10.1.3.0.4 with JSF & ADF BC.

  • How to implement autocomplete in a search form?

    Hi all,
    I´m trying to implement the autocomplete in a search form but I think I'm missing something in content server...
    Is there a simple away to do it in content server?
    With PHP it doesn´t work in content server, right?
    Where can I find a good tutorial about that?
    Thank you in advance,
    RRS

    Here's a really good one and I know it works on UCM:
    http://developer.yahoo.com/yui/autocomplete/
    cheers

  • HOW TO CREATE A KEYWORD SEARCH FORM

    Hi, I'm creating a image gallery and I'm about 90% complete. One of my  final objectives is to create a keyword search for my image gallery. I  have 4 fields in my DB, (id,image,description,keywords) I want to be  able to enter keywords into the text field  and the images with there  descriptions show up. I already have the  keywords in my mysql, I already know how to use mysql, I just need to learn how to add a search form that pulls keywords from my mysql. THIS DOES NOT REQUIRE ANY CODE so please do not respond with code. I just need a step by step on what type of form to insert, (dynamic text field or text field) what paramaters to pass etc. NO CODE, this whole thing can be done in design veiw.
    For this project I'm using Dreamweaver Cs5, I'm not really an  experienced coder I rely heavily on dreamweaver for my code, I just make  minor tweaks. So if anyone has an answer to my problem please break  down and simplify your answer I'm still a beginner. Thanks in advance.
    ps
    If anyone knows of any other video tutorials of this process please inform me, it would be greatly appreciated, thank you.(not php acedemies)

    This is helpfull but I'm still running in to some problems. I believe everything on my search page is correct, I think it's my results page thats giving me issues.  When I view my search page in firefox and type in a keyword in the text field, when the results page loads all I get is the field names of DB table (id,layouts,desription,key_words) instead of the actual data...??
    On my search page in the action box I have my results page "search_results.php". In the method box I have "GET".  On my "search_ruselts.php" page I created a recordset, selected all columns, and filtered "key_words". (im not sure if I filtered correctly) I placed this in a dynamic table. Where did I go wrong?
    this is my code if it helps any
    search page:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <form id="form1" name="form1" method="get" action="search_results.php">
      <label for="textfield"></label>
      <input type="text" name="textfield" id="textfield" />
      <input type="submit" name="button" id="button" value="Submit" />
    </form>
    </body>
    </html>
    results page:
    <?php require_once('Connections/test_db.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;
    $maxRows_Recordset1 = 10;
    $pageNum_Recordset1 = 0;
    if (isset($_GET['pageNum_Recordset1'])) {
      $pageNum_Recordset1 = $_GET['pageNum_Recordset1'];
    $startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;
    $colname_Recordset1 = "-1";
    if (isset($_GET['key_words'])) {
      $colname_Recordset1 = $_GET['key_words'];
    mysql_select_db($database_test_db, $test_db);
    $query_Recordset1 = sprintf("SELECT * FROM images2 WHERE key_words = %s ORDER BY id DESC", GetSQLValueString($colname_Recordset1, "text"));
    $query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
    $Recordset1 = mysql_query($query_limit_Recordset1, $test_db) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    if (isset($_GET['totalRows_Recordset1'])) {
      $totalRows_Recordset1 = $_GET['totalRows_Recordset1'];
    } else {
      $all_Recordset1 = mysql_query($query_Recordset1);
      $totalRows_Recordset1 = mysql_num_rows($all_Recordset1);
    $totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;
    $colname_Recordset2 = "-1";
    if (isset($_GET['id'])) {
      $colname_Recordset2 = $_GET['id'];
    mysql_select_db($database_test_db, $test_db);
    $query_Recordset2 = sprintf("SELECT * FROM images2 WHERE id = %s ORDER BY id DESC", GetSQLValueString($colname_Recordset2, "int"));
    $Recordset2 = mysql_query($query_Recordset2, $test_db) or die(mysql_error());
    $row_Recordset2 = mysql_fetch_assoc($Recordset2);
    $totalRows_Recordset2 = mysql_num_rows($Recordset2);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <table cellpadding="4" cellspacing="4">
      <tr>
        <td>id</td>
        <td>Layouts</td>
        <td>Descriptions</td>
        <td>key_words</td>
      </tr>
      <?php do { ?>
        <tr>
          <td><?php echo $row_Recordset1['id']; ?></td>
          <td><?php echo $row_Recordset1['Layouts']; ?></td>
          <td><?php echo $row_Recordset1['Descriptions']; ?></td>
          <td><?php echo $row_Recordset1['key_words']; ?></td>
        </tr>
        <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
    </table>
    </body>
    </html>
    <?php
    mysql_free_result($Recordset1);
    mysql_free_result($Recordset2);
    ?>

Maybe you are looking for

  • Insert privileges

    Hi I want to insert into a log table, but I always get an error message: JBO-26041: Failed to post data to database during "Insert": SQL Statement " INSERT INTO COMIS_DR.CDR_OPT_LOG(LEKERDEZES) VALUES (:1)". ORA-01031: insufficient privileges Of cour

  • IMac G5 (iSight) 20" fails to start.

    My wife's now out of warranty iMac G5 (3rd generation with built in iSight) is in trouble. I'm unsure what went wrong, but it won't stay powered on for longer than a minute or two. The OS doesn't even have time to boot up before power is cut off. It

  • "The file destination provided is not valid. Enter a valid location."

    I'm running Acrobat 9, with all updates installed, on Win XP. I have used shared review before, and it worked. I click Comments, Send for Shared Review. When I try to initiate a shared review, I browse to select my pdf, click on the filename, and I i

  • Default Environment layer ?

    Hey, does anyone know how I can specify which Environment layer gets new objects if/when they're created by Track->Create Multiple... ? I've played around with inserting and deleting layers, and I haven't yet found a reliable way to control where the

  • 2008 iMac won't turn on after Mountain Lion installation

    I have a 2008 iMac with 6GB of RAM that was running on OS X 10.6.8 perfectly. Tonight I upgraded it to Mountain Lion. After the installation, my machine was running slower and a little choppy, especially when first opening programs, even though it me