Last display first record

Hello

Could someone tell me where in the form designer, you can configure the form so the last disk is displayed first in the request.

For example, I have question someones name in the application and I would like to see the last disc recorded to this person (there is a join between the people and my new table). Right now my custom form returns the first record entered against them.

Thank you

Steve

You will need to identify this record somehow, for example by a growing number of primary key or column date_created. Then you must order by that column descending on your form.

Tags: Oracle Development

Similar Questions

  • Master page link to a details page displays only the first record

    Hello

    Could someone tell me please how to fix this problem:

    I have a master page that lists all users of my, and I have links next to them to take them to the specific user details. However, the links of all other records only show details for the first record.

    This is the link that is supposed to brings me to the details page:

    < a href = "patientlist2.php? Patient_id = <? PHP echo $row_rsPatients ["Patient_id"];? > "> <?" PHP echo $row_rsPatientlist ["Patient_id"];? > < / a >

    I have the same problem when you try to update the files, only the first record will appear.

    I'd appreciate any help.

    Thank you

    There is probably something wrong with your recordset. Test the query in the window of recordset for the generation of game records to ensure that you get the results desired of the recordset before placing and repeat on the page.

  • PHP code takes the first record in the database regardless of the selected one

    I struggled for hours with this trying to see why no matter what file is selected, the record displayed is always the first. It must be a stupid mistake on my part, but I can't see it.

    I use DW CC 2015 with WebAssist server for server code additions. I looked at the database itself, and it's OK.

    Test data

    Capture.JPG

    Copy the following code enumerates the various documents in the database. (I removed my HTML that works well for brevity).

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

    <? php require_once('.. /.. /.. / webassist/mysqli/rsobj.php');? >

    <? PHP

    $rsDocuments = new WA_MySQLi_RS ("rsDocuments", $Terrier, 1);

    $rsDocuments-> setQuery ("" SELECT * FROM documents ' ");

    $rsDocuments-> execute();

    ? >

    <! doctype html > < html >

    "' Snip...

    < p align = "left" > < a href = "add_terrier_document.php" > add new record of Documents < /a > < /p >

    < table width = "100%" border = "1" cellspacing = "2" cellpadding = "2" >

    < tbody >

    < b >

    < td width = "26%" align = "left" > < strong title > < / strong > < table >

    < td width = "52%" align = "left" > < strong text > < / strong > < table >

    < td width = "6%" align = "center" > < table >

    < td width = "6%" align = "center" > < table >

    < td width = "6%" align = "center" > < table >

    < /tr >

    <? PHP

    {While (! $rsDocuments-> {atEnd())}

    ? >

    < b >

    < td > <? PHP echo ($rsDocuments-> getColumnVal ("dc_title"));? > < table >

    < td > <? PHP echo ($rsDocuments-> getColumnVal ("dc_text"));? > < table >

    < td width = "6%" align = "center" > < a href = "view_terrier_document.php? dc_index = <?" PHP echo ($rsDocuments-> getColumnVal ("dc_index"));? > "> view < /a > < table >"

    < td width = "6%" align = "center" > < a href = "edit_terrier_document.php? dc_index = <?" PHP echo ($rsDocuments-> getColumnVal ("dc_index"));? > "> edit < /a > < table >"

    < td width = "6%" align = "center" > < a href = "confirm_terrier_document_delete.php? dc_index = <?" PHP echo ($rsDocuments-> getColumnVal ("dc_index"));? > "> delete < /a > < table >"

    < /tr >

    <? PHP

    $rsDocuments-> moveNext();

    }

    $rsDocuments-> moveFirst(); return the RS to the first record

    ? >

    < / tbody >

    < /table >

    < a href = "<?" PHP echo $rsDocuments-> getFirstPageLink();? > "> first < /a > - < a href =" <? PHP echo $rsDocuments-> getNextPageLink();? > "> Next < /a > - < a href =" <? PHP echo $rsDocuments-> getPrevPageLink();? > "> previous < /a > - < a href =" <? PHP echo $rsDocuments-> getLastPageLink();? > "> last < /a >"

    < p >

    .... SNIP

    The table shows the different records in the database. I can go through the files back and forth and pick any one to edit - say one-third.

    The PHP code creates the URL of http:// localhost/priory_database_2/gateway/Terrier/documentation/edit_terrier_document.php?dc_in dex = 3

    However, the record that is displayed is always record 1, regardless of the currently selected folder.

    The edition code (less HTML) is.

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

    <? php require_once('.. /.. /.. / webassist/mysqli/rsobj.php');? >

    <? php require_once('.. /.. /.. / webassist/mysqli/queryobj.php');? >

    <? PHP

    $rsDocuments = new WA_MySQLi_RS ("rsDocuments", $Terrier, 1);

    $rsDocuments-> setQuery ("SELECT * FROM documents ORDER BY dc_index ASC");

    $rsDocuments-> execute();

    ? >

    <? PHP

    If (isset($_POST["submit"]): isset($_POST["submit_x"])) {}

    $UpdateQuery = new WA_MySQLi_Query ($Terrier);

    $UpdateQuery-> action = 'put up-to-date. "

    $UpdateQuery-> table = 'documents '.

    $UpdateQuery-> bindColumn ("dc_index", "s", "".) "((isset($_POST["dc_index"])))? $_POST ["dc_index"]:" ")". "" (', 'WA_DEFAULT');

    $UpdateQuery-> bindColumn ("dc_title", "s", "".) "((isset($_POST["dc_title"])))? $_POST ["dc_title"]:" ")". "" (', 'WA_DEFAULT');

    $UpdateQuery-> bindColumn ("dc_text", "s", "".) "((isset($_POST["dc_text"])))? $_POST ["dc_text"]:" ")". "" (', 'WA_DEFAULT');

    $UpdateQuery-> bindColumn ('date_recorded', "s", "".) "((isset($_POST["date_recorded"])))? $_POST ["date_recorded"]:" ")". "" (', 'WA_DEFAULT');

    $UpdateQuery-> bindColumn ("date_update", "s", "".) "((isset($_POST["date_update"])))? $_POST ["date_update"]:" ")". "" (', 'WA_DEFAULT');

    $UpdateQuery-> addFilter ('dc_index', '=', 'i', ' ".) () $_GET ['dc_index']). » ») ;

    $UpdateQuery-> execute();

    $UpdateGoTo = 'index.php ';

    "If (function_exists("rel2abs")) $UpdateGoTo = $UpdateGoTo? rel2abs ($UpdateGoTo, dirname (__FILE__)):" ";" "

    $UpdateQuery-> redirect ($UpdateGoTo);

    }

    ? >

    ..... Snip


    < /table >

    < h3 align = "center" > change the document details < / h3 >

    < form id = "AddDocumentRecord" name = "AddDocumentRecord" method = "post" >

    < label for = "dc_title" > title

    < name textarea = "dc_title" cols = "150" lines = "3" maxlength = "300" id = "title" > <? PHP echo ($rsDocuments-> getColumnVal ("dc_title"));? > < / textarea >

    < / label >

    < label for = "dc_text" > Description

    < name textarea = "dc_text" cols = "150" lines = "20" maxlength = "60000" id = "text" > <? PHP echo ($rsDocuments-> getColumnVal ("dc_text"));? > < / textarea >

    < label for 'date_recorded' = > registration Date:

    < name textarea = 'date_recorded' cols = "50" rows = "1" maxlength = "20" id = 'date' > <? PHP echo ($rsDocuments-> getColumnVal ("date_recorded"));? > < / textarea >

    < / label >

    < label for = "date_update" > Date of last update:

    < name textarea = "date_update" cols = "50" rows = "1" maxlength = "20" id = "Refresh" > <? PHP echo ($rsDocuments-> getColumnVal ("date_update"));? > < / textarea >

    < / label >

    < input type = "submit" name = "submit" id = "submit" value = "Submit" >

    < input name = "dc_index" type = "hidden" id = "dc_index" value = "<?" PHP echo ((isset($_POST["dc_index"]))? $_POST ["dc_index"] ":" "")? > ">"

    < / make >

    ... Snip

    The query for the edit page should look like

    $rsDocuments = new WA_MySQLi_RS ("rsDocuments", $Terrier, 1);

    $rsDocuments-> setQuery ("SELECT * FROM documents WHERE dc_index =?");

    $rsDocuments-> bindParam ('i', ' ".) "(isset($_GET['dc_index']))? $_GET ['dc_index']:" ")". "" », «-1 ») ;

    $rsDocuments-> execute();

    What this did that select a recording with a value of dc_index.

  • First record of the block

    Hi all

    Understand that this is the last recording of the block shapes provide the: SYSTEM. LAST_RECORD.

    But if I want to know if the block is the first record of the block that I use.

    Does not include forms: SYSTEM. PREMIER_ENREGISTREMENT.

    Help, please.

    Concerning

    Rajat

    You can use: SYSTEM. CURSOR_RECORD = 1

  • Alert to be fired only for the first record, when there are duplicate entries

    Hello

    This is related to the fact of Oracle 10 g.
    I have a block record multi in which I entered and save some codes, something like below

    Code Description
    =====================
    AAAAAAAAAAAA ABCD
    BBBBBBBBBBBBB PQRS
    GENEVIEVE DAVIS
    ABCD DHGFKSDHKSHG
    PQRS DFJHHGS
    EEEE SDT85604ET
    =====================

    Now I need to post a warning/msg to go when-validate-the field Code. So now if I'm on the first record, the alert/msg will appear for code ABCD which is Ok. Now, on the next album, I get a different code PQRS as indicated above, the new alert appears which is Ok. If I enter a code that has been previously entered into the record block multi and alert/msg had been exposed to the only first alert/msg need is not displayed now know if I enter ABCD again the fourth record, the alert should not be displayed.
    Note that this must be done at the time of data entry itself. I guess that maybe it can be done by using groups Records / table plsql.

    Help with a way to solve this matter will be highly appreciated...

    Thank you and best regards...

    As you have already guessed, you must be able to keep track of how many times a value has been entered. If you know what all the possible values of 'CODE' at design time, you can create a counter for each value variable, but it would be a total pain. A better solution would be to permanently keep a total dynamics you can quickly check against. For this I recommend you use a group of registration of forms. Take a look at the demo of Forms - record group treatment (duplicate values check) I wrote. Using the packet of forms Rec_Group condition in this demo, you can easily change the process listed in the working document in your scenario. Follow all the steps in the demo. For your situation, you must change the when-validate-Item trigger so that instead of checking the dupicates and omitting the form if a duplicate is found, you check the number of entries to a value in the record group and display a message if the number is 0 or not to display a message if the number is greater than 0. Your modified WVI trigger might look like this:

    DECLARE
       ignore     NUMBER := 0;
       bignore   BOOLEAN := FALSE;
    BEGIN
       IF ( :YOUR_BLOCK.CODE IS NOT NULL ) THEN
          ignore := Rec_Group.Get_Number(Rec_Group.rg_name, :YOUR_BLOCK.CODE);
          IF ( ignore = 0 ) THEN
              -- Display your message
          ELSE
              -- Don't display any message
          END IF;
          /* add the code to the record group */
          bIgnore := Rec_Group.Add_Value(rec_group.rg_name, :YOUR_BLOCK.CODE, :system.trigger_record);
       END IF;
    END;
    

    Hope this helps,
    Craig B-)

    If someone useful or appropriate, please mark accordingly.

    Published by: Silvere March 30, 2011 15:07

  • First record in a repeat region

    I have a repeat region on my page showing all records in a Recordset. My recordset containing a SORT by Date DESC, so that the most recent recording is displayed first on the page.

    I would like to add a static text next to the first record only.

    In other words, let's say I have a list of name:

    Joe

    Frank

    Mark

    Laura

    Linda

    I want to display "Winner" next to the first record only, in this case Joe:

    Joe [winner]

    Frank

    Mark

    Laura

    Linda

    You have an already defined recordcounter so use:

    <%=(rsShippingAddress.Fields.Item("Address   1").Value)%> <%=(rsShippingAddress.Fields.Item("Address2").Value)%>

    <% If recordcounter = 1 Then %>

    [Winner]

    <% End If %>

    or alternatively

    <>

    If recordcounter = 1 Then

    response.write "[winner]".

    End If

    %>

  • How to get the id or the name of the first record

    Hello world



    I created a custom menu and I just want to know how I disabled it a buton when I navigate to the first record... I use: system.last_record for the last record; but I can't find that build all ins forms (6i) for my problem...

    THX,

    IF: System.Cursor_Record = '1'

  • Satellite 2450-101: need last display driver

    Satellite 2450-101 with geforce4 420go - last display driver? Posted the: 7 May 06 18:12

    My laptop does not work the games 'Fear' or 'Call of cthulhu.
    The errors seem to relate to the display (fear gives an empty window, even if the sound is running, then crashes. Cthulhu says that it cannot find a suitable resolution).

    The latest display driver I can find is dated 36,48 Date 02/12/2003 version.
    It looks pretty old. Is no later versions available?

    I also see that there is an update of the BIOS for my laptop - is - this may have an impact on the problem of game?

    Anyone who manages to run these games on a similar specification?

    Thank you
    Jan

    Hello

    The problem is that the graphics drivers from Toshiba are distinguished as the graphics of origin for example nVidia drivers.
    Original graphics drivers are designed for desktop use and you may not use these drivers, as they can damage the graphics chip for laptop. Graphics drivers from Toshiba support thermal protection and control the performance of the graphics card.

    As far as I know that this unit has been delivered with a NVidia GeForce4 420Go 32 MB graphics card. You can try to check out the other laptops with the same graphics card and try to use this driver.
    I also found a few topics on the omega drivers. It seems that this could be a good solution, but if you use other drivers, so you can do it at your own risk!

    Here is the link:
    http://www.OmegaDrivers.NET/NVIDIA.php

  • How do I configure to print last page first on a 5531

    I have a new 533 hp printer and I can't find the settings to print last page first when you print multiple pages, can anyone help?

    Hello tsmith777 & Jman1972,.

    In fact, I went and installed the printer myself on a computer that is running Windows 7, and you're right, that option is not listed.

    I was able to install another pilot who was in fact the option.

    Here are the steps on how to install another driver:

    1. Make sure that the USB cable is not connected to the product. If the USB cable is connected to the product, unplug it.

    2. In the Windows taskbar, click the Windows icon ( ), and then click devices and printers.

    3. Click Add a printer. The Add Printer window.

    4. Click Add a local printer.

    5. Click use an existing port.

    6. Click the drop-down list use an existing port , select LPT1: (Printer Port), and then click Next.

    7. Under manufacturer , in the installation of the printer driver window, click HP .

    8. Under Printers, select the appropriate driver to spare for the product (Deskjet 990c), and then click Next.

      NOTE: The other pilot of HP of your product might not be currently installed on your computer, but it is available via Windows Update. Click the Windows Update button to select additional printer drivers. Select the driver replacement for your product and then click Next. You must connect to the Internet before using Windows Update.

    9. In the printer name text box, type the name of the product, and then click Next. The printer driver starts the installation process.

      NOTE: The substitute driver name appears in the window as the default name. If you prefer, you can change the name of your product. This step is optional.

      Once installation is complete, a message appears on the computer indicating that the product has been successfully added.

    10. In the message window, click done.

    11. Plug the USB cable into the product and connect the USB cable to the computer. An software device driver is not properly installed window opens.

    12. Click close ( ) to close the window.

    ------------------------------------------------

    Since the Deskjet 990c driver is installed, follow these steps to configure the installed driver.

    1. In the devices and printers window, right-click the name of the product and then click on printer properties. The printer properties window opens.

    2. Click the Ports tab.

    3. Click the menu drop down and then replace the LPT1 to USB or DOT4port.

      NOTE: If there is more than one available USB/DOT4 port, select the USB/DOT4 port with the largest number of port. To see the full port name, expand the line of ports in the Properties dialog box by placing the cursor on the vertical line between the Port and the Description, then click and hold down the mouse button. Move the mouse to the right until the name of the port is visible.

    4. Click OK.

    Let me know if it works for you!

    Thank you

  • How to print first page first, not last page first? HP Office jet 6700 Permium

    I have this "HP Officejet 6700 Premium and I want to know I can get it to print the first page first instead of print last page first or even to print two pages on a short note paragraph only.?"

    Hi Majeski,

    Thank you for your answer!

    On your desktop, you will have an icon HP. Must say HP solutions Center, or it could be the name of the printer. Double-click on it, then select Preferences defined, make sure you are on the tab layout, you can change the order of Page from front to back or back to the front. Please see the pictures below as examples:

    Hope this clears things up for you and have a great day!

  • HP Deskjet 2541: HP 2541 prints last page first

    The printer prints the last page first, and I need to print the first page first.  I looked in the settings and can't find where to change it.

    Thanks RnRMusicMan

    I actually just finished with HP technical support.  The person I was dealing with was in fact installed the driver of HP 6980 because 2541 driver does not back to front / front rear option.  Thank you for taking the time to answer

  • Force another tab at index zero to display first

    Hi waterfall - Devs

    How can I force the TabbedPane to view another tab outside one to display first once the application has been opened? I am aware that the trigger for the event is given below:

    onCreationCompleted: {}


    }

    but he does not seem to accept the setActiveTab method. Good way how to call another tab? Thank you.

    peter_betos, in which case that said simon_hain was not clear, means that it does not use the setActiveTab() method, but just set the property directly with activeTab = yourTabId.

    It should work. If it isn't can you expand on "works do not"? It gives an error message? Quietly running this line, but to no effect, or what?

    Make sure you only take advantage of the ability to log message to resolve this. Put a line like print ("' adjusted activeTab") which follows this line and check that it appears in the output.

  • When I burn CD for my use on the computer, sometimes the order of the songs are returned, starting with the last song first.

    * Original title: Windows Media player

    When I burn CD for my use on the computer, sometimes the order of the songs are returned, starting with the last song first.  This is the CD, or I do something wrong?  This isn't an ongoing problem... most of the time it's ok.  Can I change the order manually. If Yes, where and how.

    Thank you

    Lee

    Lee - there are a number of possibilities. First of all, it depends whether you burn audio disks or data - if they are audio discs, you can check and rearrange the order of songs in the burn list - if necessary - before you start burning. If you drag multiple files to the burn list quite often the last track you clicked on will go upward, so I wonder if it is what can happen. Back with a little more detail if I not quite correctly interpreted the problem. Best regards, Ric.

  • My PC starts and displays first, not my office discovered my Start menu

    My PC starts and displays first, not my office discovered my Start menu. Where in my settings can I change this? I give so that it starts and redisplay my splash screen. Thank you very much.

    Original title: help

    In toolbar properties are highlighted the elements 'unchecked ' and then 'OK'

  • How to display specific records on the form of the ADF

    Dear experts,

    I need to create a form of adf Wizard.

    -If the user is new, this form will show action createInsert.

    -If the user is not new (already have saved data), then this screen displays data based on the user login id.

    I can do the application module class createInsert part but not the specific data display part.

    You have a suggestion how to display specific records based on user login id, and how to filter the old and the new user?

    Kind regards

    Ricky

    You can use a router in a workflow as I've shown here https://tompeez.wordpress.com/2012/12/01/jdeveloper-11-1-1-5-0-use-router-to-create-new-row-or-edit-existing/

    Timo

Maybe you are looking for