Result of the search page is incorrect, the results page is empty

Hello

I'm designing a website for my job. IAM not very familiar with coding and don't know exactly, what is lacking in the code.

The search page filter search criteria and clicking the button submit, redirects to the page of result which should display only the rows that contain the search criteria. However, it is the empty display in the result page with only the names of columns in the table (in the Recordset)

The code of the search page is:

<? php require_once('Connections/connect.php');? >

<? PHP

If (! function_exists ("GetSQLValueString")) {}

function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

{

If (via 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 "set":

$theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

break;

}

Return $theValue;

}

}

$colname_Recordset1 = "-1";

If (isset($_GET['Class'])) {}

$colname_Recordset1 = $_GET ['class'];

}

@mysql_select_db ($database_connect, $connect);

$query_Recordset1 = sprintf ("SELECT * FROM time_table WHERE"Class"= %s", GetSQLValueString ($colname_Recordset1, "text") ");

$Recordset1 = mysql_query ($query_Recordset1, $connect) or die (mysql_error ());

$row_Recordset1 = mysql_fetch_assoc ($Recordset1);

$colname_Recordset1 = "-1";

@mysql_select_db ($database_connect, $connect);

$query_Recordset1 = sprintf ("SELECT * FROM time_table WHERE"Class"= %s", GetSQLValueString ($colname_Recordset1, "text") ");

$Recordset1 = mysql_query ($query_Recordset1, $connect) or die (mysql_error ());

$row_Recordset1 = mysql_fetch_assoc ($Recordset1);

$totalRows_Recordset1 = "-1";

If (isset($_GET['Class'])) {}

$totalRows_Recordset1 = $_GET ['class'];

}

$colname_Recordset1 = "-1";

@mysql_select_db ($database_connect, $connect);

$query_Recordset1 = sprintf ("SELECT * FROM time_table WHERE"Class"= %s", GetSQLValueString ($colname_Recordset1, "text") ");

$Recordset1 = mysql_query ($query_Recordset1, $connect) or die (mysql_error ());

$row_Recordset1 = mysql_fetch_assoc ($Recordset1);

$totalRows_Recordset1 = "-1";

If (isset($_GET['Class'])) {}

$totalRows_Recordset1 = $_GET ['class'];

}

$colname_Recordset1 = "-1";

@mysql_select_db ($database_connect, $connect);

$query_Recordset1 = sprintf ("SELECT * FROM time_table WHERE"Class"= %s", GetSQLValueString ($colname_Recordset1, "text") ");

$Recordset1 = mysql_query ($query_Recordset1, $connect) or die (mysql_error ());

$row_Recordset1 = mysql_fetch_assoc ($Recordset1);

@mysql_select_db ($database_connect, $connect);

$query_Recordset1 = "SELECT * FROM time_table";

$Recordset1 = mysql_query ($query_Recordset1, $connect) or die (mysql_error ());

$row_Recordset1 = mysql_fetch_assoc ($Recordset1);

$totalRows_Recordset1 = "-1";

If (isset($_GET['Class'])) {}

$totalRows_Recordset1 = $_GET ['class'];

}

$colname_Recordset1 = "-1";

If (isset($_GET['Class'])) {}

$colname_Recordset1 = $_GET ['class'];

}

@mysql_select_db ($database_connect, $connect);

$query_Recordset1 = sprintf ("SELECT * FROM time_table WHERE"Class"= %s", GetSQLValueString ($colname_Recordset1, "text") ");

$Recordset1 = mysql_query ($query_Recordset1, $connect) or die (mysql_error ());

$row_Recordset1 = mysql_fetch_assoc ($Recordset1);

$totalRows_Recordset1 = mysql_num_rows ($Recordset1); $colname_Recordset1 = "-1";

If (isset($_GET['Class'])) {}

$colname_Recordset1 = $_GET ['class'];

}

@mysql_select_db ($database_connect, $connect);

$query_Recordset1 = sprintf ("SELECT * FROM time_table WHERE"Class"= %s", GetSQLValueString ($colname_Recordset1, "text") ");

$Recordset1 = mysql_query ($query_Recordset1, $connect) or die (mysql_error ());

$row_Recordset1 = mysql_fetch_assoc ($Recordset1);

$totalRows_Recordset1 = mysql_num_rows ($Recordset1);

$query_Recordset1 = "SELECT distinct 'class' OF time_table ';

$Recordset1 = mysql_query ($query_Recordset1, $connect) or die (mysql_error ());

$row_Recordset1 = mysql_fetch_assoc ($Recordset1);

? >

<? PHP

Validate request to connect to this site.

If (! isset {})

session_start();

}

$loginFormAction = $_SERVER ['PHP_SELF'];

If (isset($_GET['accesscheck'])) {}

$_SESSION ['PrevUrl'] = $_GET ['accesscheck"];

}

If (isset($_POST['Rid'])) {}

$loginUsername = $_POST ['Rid'];

$password = $_POST ["textfield"];

$MM_fldUserAuthorization = "";

$MM_redirectLoginSuccess = "index_1 - Copy.php";

$MM_redirectLoginFailed = "login_2.php";

$MM_redirecttoReferrer = false;

@mysql_select_db ($database_connect, $connect);

$LoginRS__query = sprintf ("SELECT reg_no, password FROM login_table WHERE reg_no = %s AND password is %s",

GetSQLValueString ($loginUsername, "int"), GetSQLValueString ($password, "text"));

$LoginRS = mysql_query ($LoginRS__query, $connect) or die (mysql_error ());

$loginFoundUser = mysql_num_rows ($LoginRS);

If {($loginFoundUser)

$loginStrGroup = "";

If (via PHP_VERSION > = 5.1) {session_regenerate_id (true) ;} else {session_regenerate_id() ;}

Declare two session variables and assign them

$_SESSION ['MM_Username"] = $loginUsername;

$_SESSION ["MM_UserGroup"] = $loginStrGroup;

If (isset($_SESSION['PrevUrl']) & & false) {}

$MM_redirectLoginSuccess = $_SESSION ["PrevUrl"];

}

Header ("Location:".) $MM_redirectLoginSuccess);

}

else {}

Header ("Location:".) $MM_redirectLoginFailed);

}

}

? >

<! doctype html >

< html >

< head >

< meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"

< title > CALENDAR < /title >

< link rel = "stylesheet" href = "styles.css" type = "text/css" / > "

< / head >

< body onsubmit = "registerEvents()" >

< name of the form = "form1" method = "POST" action = "<?" PHP echo $loginFormAction;? > ">"

< / make >

"< img class ="header image"src ="images/logowhite.jpg"style =" float: left "/ >

< header >

< h1 > < a href = "/" > CHRIST PRE-UNIVERSITY < span > E-SCHOOL </span > < /a > < / h1 >

EXCELLENCE IS ALL THAT ISSUES of < h2 > < / h2 >

< / header >

< div id = "body" >

< name of the form = "form2" method = "get" action = "time.php" >

< p align = "center" >

< strong >

< label for 'Rid' = >

< br >

< / label >

< label for = "Rid" > < br >

< / label >

< label for "sid" = > class < / label >

< select name = "sid" id = "sid" >

<? PHP

{}

? >

< option value = "<?" PHP echo $row_Recordset1 ['Class']? > "<?" PHP if (!) () strcmp ($row_Recordset1 ['Class'], ucwords ($row_Recordset1 ['Class']))) {echo "selected = \"selected\"" ;}? "} > > <? PHP echo $row_Recordset1 ['Class']? > < / option >

<? PHP

} While ($row_Recordset1 = mysql_fetch_assoc ($Recordset1));

$rows = mysql_num_rows ($Recordset1);

If ($rows > 0) {}

mysql_data_seek ($Recordset1, 0);

$row_Recordset1 = mysql_fetch_assoc ($Recordset1);

}

? >

< / select >

< label for = "Rid" > < br >

< / label >

< facilities > < / p >

< p align = "center" >

< input name = "Submit" type = 'submit' class = "formbutton" id = "Submit" value = "Submit" >

< /p >

< / make >

< id article 'content' = >

< item > < / item >

< / section >

< / div >

< / body >

< / html >

<? PHP

mysql_free_result ($Recordset1);

? >

The result page code is:

<? php require_once('Connections/connect.php');? >

<? PHP

If (! function_exists ("GetSQLValueString")) {}

function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

{

If (via 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 "set":

$theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

break;

}

Return $theValue;

}

} If (! function_exists ("GetSQLValueString")) {}

function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

{

If (via 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 "set":

$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['Class'])) {}

$colname_Recordset1 = $_GET ['class'];

}

@mysql_select_db ($database_connect, $connect);

$query_Recordset1 = sprintf ("SELECT * FROM time_table WHERE"Class"= %s", GetSQLValueString ($colname_Recordset1, "text") ");

$query_limit_Recordset1 = sprintf ("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);

$Recordset1 = mysql_query ($query_limit_Recordset1, $connect) 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_Recordset1 = "-1";

If (isset($_GET['Class'])) {}

$colname_Recordset1 = $_GET ['class'];

}

@mysql_select_db ($database_connect, $connect);

$query_Recordset1 = sprintf ("SELECT * FROM time_table WHERE"Class"= %s", GetSQLValueString ($colname_Recordset1, "text") ");

$Recordset1 = mysql_query ($query_Recordset1, $connect) or die (mysql_error ());

$row_Recordset1 = mysql_fetch_assoc ($Recordset1);

$totalRows_Recordset1 = mysql_num_rows ($Recordset1);

? >

<! doctype html >

< html >

< head >

< meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"

< title > < /title > CLASS TIMES TABLE

< link rel = "stylesheet" href = "styles.css" type = "text/css" / > "

< / head >

< body bgcolor = "#CCFF99" >

< div >

"< img src =" images/logowhite.jpg"width ="274"height ="103"class ="header image"style =" float: left "/ >

< / div >

< header >

< h1 align = "left" > < a href = "/" > SCHOOL CALENDAR for < span > THE CLASS </span > < /a > < / h1 >

< / header >

< / div >

< div align = "center" >

< / div >

< p align = "center" > < / p >

< p align = "center" > < / p >

< div align = "center" >

< p align = "center" > < / p >

< table border = "5" cellpadding = "15" cellspacing = "15" >

< b >

Class < td > < table >

Day < td > < table >

< td > 1 < table >

< td > 2nd < table >

< td > 3 < table >

< td > 4th < table >

< td > room no < table >

< /tr >

<? PHP {? >}

< b >

< td > <? PHP echo $row_Recordset1 ['Class'];? > < table >

< td > <? PHP echo $row_Recordset1 ['day'];? > < table >

< td > <? PHP echo $row_Recordset1 ["1"];? > < table >

< td > <? PHP echo $row_Recordset1 ['2nd'];? > < table >

< td > <? PHP echo $row_Recordset1 ['3'];? > < table >

< td > <? PHP echo $row_Recordset1 ['4'];? > < table >

< td > <? PHP echo $row_Recordset1 ['No room'];? > < table >

< /tr >

<? PHP} while ($row_Recordset1 = mysql_fetch_assoc ($Recordset1));? >

< /table >

< / body >

< / html >

<? PHP

mysql_free_result ($Recordset1);

? >

Please help me.

Thank you

Change your name input field of the form ClassName (without space)

In the results.php also page change ClassName

If (isset($_GET['ClassName'])) {}

$colname_Recordset1 = $_GET ['ClassName'];

Does make a difference in what concerns if the results show or not?

Tags: Dreamweaver

Similar Questions

  • Since Firefox v34, after Zoom text on a Google search page took me, the Google search page is empty after you click 'Back' to it. What is a v34 glitch?

    Since Firefox v34, search results page is empty, 1) by clicking a link in a Google search results page and loading of the linked page, 2) Zoom on the text on the page that Google took me and then without resetting the zoom text, 3) by clicking on the arrow of Firefox 'Back' to return to Google search results. If at that time I reload the page of Google results, or click back one page and will transmit then again, the full search results will be displayed then again.

    This happens on my Windows 7 PC as well as my Vista laptop. Is it a glitch with text zoom and Google in Firefox version 34?

    Sorry, this seems to be a problem with the cache in memory of Firefox: when you use a high Google zoom level the (the default setting) with "instant prediction results" then Firefox pips showing again after going back page (you can see the results for a fraction of a second before they white).

    Assuming you like your zoom level and enjoy using the instant prediction results, then the solution is to disable the part of the Firefox cached in memory by changing a setting under the covers.

    (1) in a new tab, type or paste Subject: config in the address bar and press ENTER. Click on the button promising to be careful.

    (2) in the search above the list box, type or paste sess and make a pause so that the list is filtered

    (3) double-click the preference browser.sessionhistory.max_total_viewers and change the value from-1 to 0 (that's a zero).

    (Please change not all other parameters similar to 0-sounding or you can disable the ability of Firefox to save/restore your tabs and windows open).

    Then reload the page of Google results and the test.

    Fixed? (Or should I say, worked around?)

  • Enable wot, google search does not display wot ratings on pages if using next or when I search box on the search page (not firefox toolbar). How to fix

    I have true WOT 2013 0515 {a0d7ccb3-214d-498b-b4aa-0e8fda9a7bf7} activated on my system. When I use google finds only the first page of research shows full throttle at side.

    When I use the following icon of the page based on the search results, the sides do not show on the next page. I have to go back to the toolbar and click on search, go to the first page and then use the page number at the bottom of the search page to go to the next page, and sometimes even that does not work.

    In addition, if I use the search box on the google search page to change my search, wot ratings do not show. Then I have to perform the above to get the sides to show.

    Is there something I can do to solve this problem, or if this bug has been fixed in a new version of the module additional wot?

    Hello, please contact directly the extension developers WOT via means provided to their home page - they can probably give you more detailed advice and are the only ones who can fix bugs or make necessary adjustments in the addon. Thank you...

  • Options button on the standard google search page disappeared

    Firefox 12.0
    on the google search page, I had two buttons:
    SafeSearch on/off button
    Options (gear) button
    the last button still appears on the screen, but now is empty: the gear is not displayed. When ipush result are incompatible: in some screens (search results), I get 4 options to choose, in other screens nothin happens at all.

    I really don't like this, because FF seems to have become unstable on my machine.

    As a fix as I complete reinstalled FF, without change, the problem persisted.

    IE is not this problem

    Hi madperson, thanks for the quick response. Indeed I cleaned all the cookies and cache, but in fact most websites like webmail seemed odd as well. To cut things short, I decided to reinstall an earlier version, which solved the problem. This isn't really a favorite firefox solution, but alas.

  • Problem with the following link in the Search Page

    Hello

    I have a search page and lead the table base, where the user can search for employees and update information. Now my question is

    (1) when the user did some research, say the search result contains 40 records and every hour 10 records is displayed (1-10, 11-20, 21-30, 31-40).

    (2) user clicked on the link following (11-20) and selected to date button for an employee.

    (3) when you click Update, users can access the update page (I used pageContext.setForwardURL)

    (4) from there when the user clicks on the BACK button to update the page, I'm browsing back to the search results page. But here it's page is redirect to the first (1-10) records again.

    How can I keep search results when browsing page update?

    If I update some employees of 20-21 records and navigate back, my search results should appear again from 20-21 No 1 to 10.

    How can I achieve this?

    Please help me.

    Problem solved. Problem is due to am.getTransaction () .rollback (); prior to re - run page.

  • The Questions search page

    Hello world

    I have a few questions related to a search page.

    (1) how the buttons in a panel request can be ordered again? I have my Panel query value 'compact' and for some reason, the "Advanced" button comes first. I'd like reorganize so that the button 'Search' is the first.

    (2) I have a context menu on the table of results and I want to hide the standard contextual menu items - Expand/Collapse, expand all collapse, below below, see all as above. How is that possible?

    I use JDeveloper 12.1.3

    Thank you

    Bill

    Just checked on my playground app and I cannot see any additional questions:

    
        
            
                
            
        
        
            
        
        
            
                
                    
                    
                        
                        
                    
                    
                        
                    
                
            
        
        
            
        
    
    

    Dario

  • Don't forget the last entries in form af:query after navigating to the search page

    12.1.3 JDev

    Let's say I have a BTF with search page jsff with an af:query and result table. The user can navigate on this page after executing the search and do something else in the application. What I want to achieve is if the user navigates to this search page, that the previous entries of the form af:query will be pre-filled.

    Does make sense?

    corresponding AF liaison component: Query has an InitialQueryOverriden property defaults to false.

    You must set to true.

    More details here:

    http://www.jobinesh.com/2009/11/displaying-pre-executed-query-result-in.html

  • LOV returns not correctly row attribute on the search page

    I use Jdev version 11.1.1.6.0. The issue I'm having is that I have a LOV on an attribute of a display that I use when I created a 'panel of ADF query with table' which does not work properly. When I click the mirror icon I get the pop for the LOV very well. I navigate to the line I need and double click, or select it and click ok. The problem is the field on the page of research always gets automatically to the first line that was displayed on the pop-up LOV, not that I have selected. If I change the LOV in a drop-down list and select an item from the list, it works fine. I really don't want to use a drop-down list because the list is based on a query and the results list is very long. Can you help me get the pop up LOV to return the correct value? Here is something else interesting. If I use this same point of view that I used for the search page to create a new form of the ADF, the LOV works very well. It does everything just for the search page.

    Hello

    Can you check on LOV Vo if you checked the Key attribute to one or more of the attributes.

    Thank you

    Jeet

  • Application in the ADF 11 g search page

    Hello

    I'm new to ADF 11 g. I created the search page by dragging named criteria (all searchable attributes) datacontrol and its create table Panel and the results of the query.
    I am able to delete the fields from the table of search results which is not necessary.
    The page displays all of the fields that are available in the original Version as a search criterion. I want to remove some fields that is not required in the criteria of search, but unable to do.
    Please, help me in the present.


    Thank you and best regards,
    Sunita

    Hi Sunita,

    Do not use the "attributes all searchable" instead, you must create your own criteria of serach.

    To create a search criteria go to your view on the tab object query to the query terms, you'll find "View criteria" simply click on the '+' to add a new and add all requires them only attributes in it.

    After you have created the view criteria now back again to datacontrol you can find new criteria to view after "all the attributes of a.
    Now drag and drop this new criteria again for a new page to create the search page of desire :)

    For more details you can check out this blog

    https://blogs.Oracle.com/prajkumar/entry/create_simple_search_form_in

    If you want you can skip the part creation of variable binding in the blog search just create view criteria as shown in the blog ang create a page using the :)

    concerning
    Siva

    Published by: Minion on 15 March 2013 13:24

  • Search page based on the procedure

    Hello

    It is a case-change to my post Re: not refreshing page

    I have 2 pages, a search page and a page of the single record built on CustomerVO1.
    each VO is based on a dedicated procedure wrapped up like a point of view, so I can't use the same VO as an easy decision.
    (my client is in need of two dedicated procedures: selection by customer id and a procedure for research by various parameters such as name, birth date etc.)
    Research page I have provided consultation, then push the button to open the selected customer page
    in the bean of backup of my search page that I use:
    RKS RowKeySet = t1.getSelectedRowKeys (); read the current key of result of lookup table
    The list of selectedRowKey = (List) rks.iterator () .next (); get a selected
    DCIteratorBinding dciter;
    DCBindingContainer dcBindings = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
    dciter = (DCIteratorBinding) dcBindings.get ("CustomerVO1Iterator"); Download
    dciter.setCurrentRowWithKeyValue (selectedRowKey.get (0) m:System.NET.SocketAddress.ToString ());
    dciter.setCurrentRowWithKey (selectedRowKey.get (0) m:System.NET.SocketAddress.ToString ());
    dciter.executeQuery ();
    FacesContext fc = FacesContext.getCurrentInstance ();
    fc.getApplication () .getNavigationHandler () .handleNavigation (CF, null, "backtocustomer");

    Accordingly, at the opening of the simple display page I see no data refresh on it
    Please indicate on what an i did wrong or not done right?
    How to synchronize the data between the two pages?

    What kind of relationship exists between the original Version and its iterator?

    If you have two build VO for this, you can make this declarative (like the other use cases). I create an example here http://tompeez.wordpress.com/2011/07/31/using-diferent-vos-for-master-detail-navigation/

    Timo

  • Change the features of the search page to view the selected record

    Hello
    I have a search page that shows the results of the query at the bottom in a table. The user right click and select 'change '. The user is taken to an edit page. The edit page is a view of AllEmployees object, and it shows the first record. I want the edit page to display the row of data that the user has selected on the search page. How can I do.

    Thank you

    What version of jdev you use?
    In the version one (or more) were a mistake where right-clicking does not trigger the selection of the line.
    The next question is are you using the VO even to the (results table) and the edit form? If this isn't the case, you must configure the VO, the edit form is based on the game in row, power to the key of the selected row in the table of search results. The basic work flow is described herehttp://tompeez.wordpress.com/2011/07/31/using-diferent-vos-for-master-detail-navigation/

    Timo

  • Remove a field on the search page

    I'm creating a tool of reporting for the teachers at my college. I use a record inherited the SQL Table to store the results of student course evaluations (previously created). The existing table definition uses a key of 4 parts consisting of OPRID and the course, subject and article IDs. To retrieve the results, I use a component whose record search is the SQL Table. I find that I can recover only if the OPRID is defined as a field of research.

    The problem is that, for the sake of anonymity, the Department prefers that I do not have the field visible OPRID on search results. However, I found no way to do some research for display anything without this field defind a search key. So now, I'll have to find a way to remove his display on the search page.

    Is there an event that I can plug PeopleCode in time to scramble the contents of the field until they are displayed? Or that I'd be better ditched forced to component approach and try to use something like an IScript instead?

    Why don't uncheck you the list box item and he always leaves a search key. Otherwise, you can work with peoplecode searchinit/searchsave...

    Let me know if you have any questions...
    Kind regards
    RK

  • Hide the "No data found" msg in the region to report when you 1st click Search page

    Hello

    (Sorry if it's confusing but my APEX is in FRENCH and I tried to translate)

    I created a search page in my application.

    1. I have an HTML region, with a search box and I have the search button

    2 - I have a region (PL/SQL source) report, which sometimes does not return any data, giving a message 'No Data Found.'.


    When I click on the search page for the 1st time (on my navigation bar), I like to HIDE the region report so that I do not have the message "no data found".

    Only once we click the search button and there is no result, I want to have the message "no data found".

    How can I achieve this?

    Thank you

    Roseline

    1. create an item hidden on your page (P1_HIDDEN_ELEMENT)

    2. place your message no data found in a span tag

    No Data Found
    

    3 create a load calculation to set your P1_HIDDEN_ELEMENT to 'no_data_found' if it is NULL and put it to ' ' if it is NOT NULL - body of the type PL/SQL function

    BEGIN
       IF :p1_hidden_element IS NULL
       THEN
          RETURN '';
       ELSIF :p1_hidden_element IS NOT NULL
       THEN
          RETURN ' ';
       END IF;
    END;
    

    4 put this in the footer:

    &P1_HIDDEN_ELEMENT.
    

    The alternative would be to create a display area – pure HTML and display only the first. Once the search has begun this region would remain hidden and only the report themselves.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • The select query-based search page...

    I want to create a basic search page at the base on a select query.

    The select query will not be based on Table.Its based on functions.

    I created a view like this object

    Select xx_test_accruals(:p_date) of ACCUMULATION: p_date double DT

    I created a search page

    In the area of provision of Home Page, I added a region of the query. In this region of request I created a result based research Table.

    When I run the page opens with the field

    DT

    When I get back the date and click go, I get the error message like this...

    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: 27122 Houston: SQL error in the preparation of the statement. Statement: SELECT * FROM (select xx_test_accruals(:p_date) of ACCUMULATION: p_date double DT) QRSLT WHERE ((UPPER (DT) like: 1 AND (DT as: 2 OR DT as: 3 OR DT as: 4 OR DT as: 5)))



    Help, please

    Published by: [email protected] on October 4, 2009 14:04

    Hello

    I tried it on my machine... There is a little change on the approach.

    See we have a display object: XxAccrualsSummaryVO

    the query is

    Select xx_test_accruals (to_date (: 1, 'YYYY-MM-DD')) DT ACCRUAL, double to_date(:2,'YYYY-MM-DD')

    Create a view property object: say DateTestPVO and create a transitional DATE type attribute say dated. MinValue. How to create the View Object(read in dev guide) property.

    Link the date to DateTestPVO text entry and the date attribute. MinValue.

    Now that the page will load in process request initialize the PVO not XxAccrualsSummaryVO.

    Public Sub initialisePVO()
    {

    OAViewObject vo = (OAViewObject) getDatePVO1 ();
    If (! vo.isPreparedForExecution ())
    {
    vo.setMaxFetchSize (0);
    }
    Line = vo.createRow ();
    vo.insertRow (row);
    row.setNewRowState (Row.STATUS_INITIALIZED);

    }

    And when you press the Go button and then enter the date entered and set the location where the XxAccrualsSummaryVO clause.

    If (PageContext.GetParameter ("Go")! = null)
    {
    Get the value entered by the user in the date field.

    DateField OAMessageDateFieldBean = (OAMessageDateFieldBean) webBean.findIndexedChildRecursive ("text");
    String datetest = (String) dateField.getValue (pageContext) m:System.NET.SocketAddress.ToString ();
    Now set the where clause VO settings.
    OAViewObject vodate = (OAViewObject) am.findViewObject ("invoicetestVO1");
    vodate.setWhereClauseParams (null);
    vodate.setWhereClauseParam(0,datetest);
    vodate.setWhereClauseParam(1,datetest);
    vodate.executeQuery ();
    }

    It works perfectly... I tested it.

    Thank you
    Gerard

  • How to stay with a clear new tab and not the search page of Yahoo every time?

    Years, I used Firefox with claire of new tabs and achieved this in the menu Options, general tab, display an empty Page - and the next line, remains empty. This has always worked, so far. Today, each new tab navigation takes me directly to the Yahoo Search page, which I certainly don't want.

    So, still today, I then passed to the 'Search' tab (in the Options menu) and removed all search engines from the list, including the option checked "Yahoo." However, each new tab again takes me to a "Yahoo" search page

    How can I stop this now and forever?

    I look forward to your solution.

    Thanks a lot for your help, Mark.

    You can watch the pref browser.newtab.url the topic: config page and set this pref to the URL of your preferred the new tab page.

    • the new default tab with the tiles page is on: newtab
    • the default homepage is Subject: Home
    • to a blank page, you can use Subject: vacuum

    The pref browser.newtabpage.enabled must be set to true to use the page defined through browser.newtab.url like the new tab page.

    You can open the topic: config page via the address bar.
    You can accept the warning and click on "I'll be careful" to continue.

    See also;

Maybe you are looking for