Next button on detail page

Hi,
I have:
PAGE 1
containing a recordset, showing a list down the page by way of a repeat region. Each entry has a link to PAGE2?detail=the row ID
PAGE 2
containg the detail record set (filter by ID = URL parameter 'detail'
Can someone advise how to place a link "Next Article", on the detail page (PAGE 2) to PAGE 2 to show the next record in the list from PAGE 1
I would like to create this funtionality so the user doesn't have to keep going back to the main list to choose the next record, they could for instance select the 4th record on the list, go to the details page and from there either go backwards or forwards to the previous or next record.
any help appreciated.

Hello Lazlo
What you will need to do is execute a sql statement to retrive the next record ID in the database. Now since you would not know exactly what record the user is going to click on to view the detials of that record you need two variables
1. The ID of the record that use is viewing the details of
2. The next record ID in the database.
To retirve the next record ID you need to put the current ID into a variable. The example below assumes your are passing the record id in the url to the details page
$currentID=$_GET['ID'];
Then execute the follwing mySQL statement on the details page. Replace the field names and table name with the your table names and fields.
$sql="SELECT MIN(ID) AS nextID FROM tablename WHERE ID > "$currentID'";
$result=mysql_query($sql)or die(mysql_error() . " - $sql");
$row=mysql_fetch_assoc($result);
$nextID=$row['nextID'];
Now all you need to do is to create a link to the next record as follows;
http://www.yourdetailspage.php?ID=<?php echo $nextID; ?>
Hope this helps
Stan Forrest

Similar Messages

  • How to add a button on detail page

    Hey
    I know it is not standard function to add a button on detail page, but I would like to know if we can use javascripts to add a button on the detail page. for instances add it behind "Edit" button?
    Thanks for your input.

    Hi,
    Yes you can add a custom button through JavaScript. Below is the link of the document for adding or deleting a button.
    http://www.box.net/shared/3brq569ybg
    Thanks & Regards
    Sablok

  • Removing of unused buttons on detail page.

    Hello,
    I know the answer is NO for this question -:) but any suggestions . My requirement is in the details page I don't required NEW,ADD buttons in the details page and when in the opportunity Product revenue detail page i don't required Update Opportunity Product Totals . Could you please suggest how to do this, or can i raise a enhancement request to Oracle.
    Regards
    Subbu

    Hai,
    This is possible by writing a javascript functions. Storing those functions in Objects Web Applet and pushing that web applet into the page layout.
    Thanks
    Edited by: Raghu on Aug 4, 2010 4:17 AM
    Edited by: Raghu on Sep 21, 2010 3:29 AM

  • Flash button to detail-page

    I made a button in. This button is part of a repeated region
    in a master-page and should "onClick" go to the detail-page.
    I don't know if it is possible to make a detail-page link to
    a flash-button in Dreamweaver? Or is there a possibility to give
    the detail-link already in Flash?
    This is the detail-link in Dreamweaver:

    Ulitasch wrote:
    > I don't know what is " FlashVars and level0 scope"?
    FlashVars is one way to pass variables to a Flash movie from
    HTML very
    similar to query strings in the URL. if you pass a var named
    foto, it
    can be accessed with: _level0.foto
    take a look at Flash help for FlashVars and levels
    > What do I have to put in: var_to_flash=<?php echo
    ...; ?>',
    > Do I replace <?php echo ...; ?> with the link to
    the detail page?
    > "../portfolio/index.php?foto=<?php echo
    $row_rsPORTFOLIO2['foto_order']; ?>"
    just the var name and its dynamic value:
    foto=<?php echo $row_rsPORTFOLIO2['foto_order']; ?>
    as the path and page name seems to be static it doesn't make
    sense to
    include them in the var; put them in the Flash movie:
    getURL("../portfolio/index.php?"+_level0.foto);
    > And what do I put in the places after:
    AC_FL_RunContent('...','...','
    > Sorry, this is very new for me..
    Dreamweaver 8.0.2 generates that code when you insert a Flash
    movie and
    Code Rewriting > Active content option in Preferences is
    selected:
    AC_FL_RunContent('codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0',...
    and don't worry. everybody learn new things each day!

  • Next and Previous button on detail page

    I am new to Apex development and have a need to develop an application that has 2 pages. The first page displays a list of employees for instance and allows the user to sort the list on difference columns e.g., first name, last name, salary etc. The user then clicks on a employee and navigates to a second page which shows the details of the employee that the user can update and save. The second page should also include Next and Previous buttons which show the details of the next or previous employee from the SORTED list on the first page so that the user can avoid constantly switching between the two pages. How do I implement this? I thought of using collections but I don't know how to populate the collection when the user navigates out of the first page and how to reference the collection on the second page. Note that in the real application there could be a large number of rows on the first page (a few thousand) and response time is critical. Any help would be much appreciated. I am using Apex 2.2.
    Thanks
    Sadanand

    Thanks Anton. And apologies for the delay in responding to your message. I will give it a try soon.
    On a related note and as alternate implementation (i.e. not using collections), is it possible to have a tabular form (showing only one row) on the second page using the same query and filter/sort conditions as the first page with an additional feature that the first time the page is displayed, the record selected on the first page is the one shown in the tabular form? I can then use the default Next and Prev buttons of tabular forms to navigate through the records in exactly same order as the first page (assuming ofcourse that new rows have not been added by an external process in the meantime). I hope I am clear in my description.
    Thanks for your help.
    Regards
    Sadanand

  • Have to click Next button on results page twice

    Help!
    My first Captivate module is all ready to go, with one small
    problem. When users get through a quiz and go to the results page,
    they have to click the Next question twice. I'm not sure why this
    is, and I can't seem to fix it.
    For the rest of the slides, instead of automatic advancement,
    users have to click a Next or Back button to go forward or back,
    and I have quiz questions where the user can't go back, and no quiz
    review, but I don't see how those would impact that one single
    button on the results page, which of course I can't edit because it
    only appears when a quiz is completed, and not actually during
    design.
    I hope this makes sense! Please help. You're my only
    hope.

    Help!
    My first Captivate module is all ready to go, with one small
    problem. When users get through a quiz and go to the results page,
    they have to click the Next question twice. I'm not sure why this
    is, and I can't seem to fix it.
    For the rest of the slides, instead of automatic advancement,
    users have to click a Next or Back button to go forward or back,
    and I have quiz questions where the user can't go back, and no quiz
    review, but I don't see how those would impact that one single
    button on the results page, which of course I can't edit because it
    only appears when a quiz is completed, and not actually during
    design.
    I hope this makes sense! Please help. You're my only
    hope.

  • Next button not working properly?

    Hi,
    I'm new to the user groups, and only an occasional user of Captivate.  I'm building an e-learning course, and I have inserted next buttons on each page to let the user control navigation.  However, the slides still auto play without clicking next.  I've checked the slide properties to make sure that "On slide exit" is set to No Action, already, and have verified that the buttons appear at .1 second, and are active for the duration of the slide.
    Any thoughts on why this might be happening?
    Thanks!
    Jen

    Hi Jen
    When you look at the properties of the button, is the pause enabled? (it's possible to turn it off and not allow it to pause the slide)
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • How to code a NEXT button

    Hello everyone,
    I am developing an web application in jsp.As a part of this application i need to get a list of records from the database.As per my code all the records are being listed in the same page. But i want to display some 50-100 records per page and keep a NEXT button on each page so that when the user clicks on this button he can go to the next set of records.But i am not getting an idea abt how to code this.So can anyone help me in this regard or just give me an idea of how to print a certain no. of records per page and the NEXT button coding.

    Is your application only jsp or struts or jsp/Helper java classes?
    In any case, assuming that the number of records are not very large, it is better to avoid repeated DB calls. The common way to implement this is to fetch all the records and store it in a data structure(an ArrayList for eg:) in the session. You would also have to maintain another variable for the current last record number. On click of the next button, fetch the records from current last record to current last record + 50 (or 100 or infact, you can make this as a variable too) from the session ArrayList and show it in the same jsp. Also, update the current last record number.
    The other way around (if at all you have session considerations) is to make a new call to the DB everytime you click on Next.

  • Previous&Next button not appearing in Master/Detail form

    Hi,
    I have a master/detail form.I published it as a portlet .
    When I run it as a portlet or in a page..I am NOT seeing PREVIOUS and NEXT button
    I see the two buttons in edit mode for both Master & Detail Block.
    Even I changed the number of detail rows to display from 5 to 10..still don't
    see the buttons.
    Any help is greatly appreciated
    Thanks
    Babu

    Hi Shiladitya ,
    What you said is correct.I am displaying just 5 Detail Rows.I entered 5 rows...after
    that I changed the to changed to display only 2 rows.Now I see Previous and Next button after I queried.
    If the user wants to enter more 5 lines for the same Master record...you know how do I that ?
    Is there anyway to get more lines. ?
    Thanks in Advance
    Babu

  • NEXT button on report portlet shows 10 rows-maximum rows per page=9999

    I created a report with the DB Provider portlet. I set the maximum rows per page to 9999 when displayed as a portlet and as a full page. I put the portlet on a page and it only shows 10 rows and then the next button.
    If there are exactly 10 rows I get the next button. If I click it the next page loads with no data. If there are less than 10 rows there is no button.
    If I create a new portlet it does not do this. I'm only having the problem with one portlet now but I've seen it in the past. I usually just build the portlet again but I would like to know how to fix it.
    I can't customize the portlet because of bug #3467032.

    Select customize and set the number of rows to 9999. I'm guessing that it's currently set to 10.

  • How can I conect a male and female image to a next button but so they both lead to different pages?

    I am trying to create a drag and drop game using Adobe Flash, AS3. I have a 'select gender' page where I have both a male a female model. I want users to be able to select either the male or female image but then a next button in order to take to the following page; however the following page varies depending on what gender is selected.
    Am I able to do this or would I need to change the images to radio buttons or just remove the next button so the images are buttons?
    Please help with my dilema?!

    You need to ask in the Flash Pro forum. because you CAN'T edit FLA, or SWF files with Flash Player , and you certainly can't edit ActionScript with it.

  • How to add custom link or button to task details page to open a different t

    Dear All
    In HumanTasks Workflow, On task details page, I want to add a custom link or button. Clicking on this link or button, should load a different task details page.
    The exact business usecase is like this:
    1. We have some human tasks with very detailed payload like about 100 attributes. When the task is submitted for Approval, we send notification emails. These emails shows the Task Details with all these 100 attributes along with standard Approve, Reject buttons etc. NOW in addition to this, we want to add extra custom button/link like Custom View. When we click on this buton or link, it should replace the task details page with the Custom task details page contents. The reason is most of the managers/approvers access their emails on smart phones like iphones. So in these phones, seeing full task details (100 attributes) is very tedious. So we want to provide a simplified view of same task with very minimum attributes like about 10 with Approve, Reject buttons. Now this compact view details will have a button called Detailed View on click on which it loads details page.
    So we want to have 2 pages for a task:
    taskDetails1.jspx -> Has all 100 attributes with a custom button/link called "Compact View". Click on Compact View switch to below page.
    taskCompact1.jspx -> Has only 10 attributes with a custom button/link called "Detailed View". Click on Detailed View switch to above page.
    1. I tried implementing this using the VacationRequest sample where the payload is like creator, startdate, enddate, reason. I already have taskDetails1.jspx page, which shows this information in the email body.
    2. I want to add another button to taskDetails1.jspx so that when I click on it, I want to load a different page like taskCompact.jspx which has only say creator, reason.
    I already added a link and gave the url with parameters like taskId, taskContext etc which I got from bindings, but nothing is displayed when I click on custom button. The taskId, context values are comming correctly in the url.
    So bottom line, what is the URL that I can provide in the task details page, to load a different task details page contents. I want to pass other taskdetails jsp details.
    Please let me know, if there is any other approach to implement this usecase.
    Thanks in advance
    Ravi Jegga

    Hi,
       I am not sure if you can add your own custom buttons to the application tool bar because your table control is in a sub screen area in a standard screen so the menu area would be controlled by the standard screen and not the subscreen , but along side the table control you can give buttons for scrolling and handle the same in the subscreen if you check the FM EXIT_SAPLMEREQ_002 it has a variable IM_UCOMM which would have the ucomm set in the subscreen so here you can handle your user command to scroll on the table control.
    Regards,
    Himanshu

  • How & where to use Java script to create new button in object detail page

    Hi All,
    I want to create "New/Add button" in object detail page. If i am not wrong i need to use java script for that but could you please let me know how & where to use Java script to create new button in object detail page in CRMOD.
    Thanks in advance.
    Regards,
    Manish

    Any related object on the detail page should have an "Add" or "New" or both buttons by default - This is vanilla functionality and will do the required action.
    If you want to modify this behaviour and do something tricky you will potentially have to go for javascript. You should add the javascript on a custom web tab on that Object.
    Admin --> Application Customization --> Contact -->Contact Web Applet
    Now, add your javascript in the code area, after you select the type = HTML for this web applet, expose this web applet on the Contact detail layout and your javascript will be invoked whenever this page is loaded.
    Check this online document to see how javascript can be embedded in CRM on Demand http://helponmyproject.com/TTOCOD/
    Cheers!
    Royston

  • Quick search and New buttons on master - detail pages

    Hi
    When I generate master-detail pages, the master has quick search and new button, but detail's doesn't. How can I generate the detail with quick search and new button options?
    Thanks in advance
    Liceth

    Liceth,
    Only one group within a page can have Quick Search functionality.
    A New button is generated for a group when insert is allowed and the layout style includes a form layout page (table-form, select-form, form or tree-form)
    Steven Davelaar,
    JHeadstart Team.

  • Next button to advance menu pages

    Hello.
    I have a client who has a request that I have never heard of before....
    Is it possible to advance menu pages from one to the next by pushing the NEXT button on a DVD set top player's remote?
    If so, how?
    Thanks

    Well you could use Tracks with Buttons over Video (BOV) as Menus...
    You'd need to use DVDAE (or other similar app of your choice) to target the buttons when returning to the Menu (Track!) if that is important,
    -Jake

Maybe you are looking for

  • How to get Report Builder to print a section on the same page

    I have a section of my report that is three bands. A header band, the detail band, and a total line band. Sometimes this section will get split up and print part on the next page. So basically I need for this section to print on the same page. I know

  • Black Screen on MBP, Can hear chime and can boot from HDD via another MBP!

    Hope someone can help me here, as I'm at my wits end. I've got two issues, one with my MacBook Pro 17in, 4GB RAM, 160GB 7200rpm (2008) and another with my iMac 24in. 4GB RAM, 500GB 7200rpm (2009). Firstly the MBP, left work on Thursday last week, got

  • ADF Library problem...

    Hi all, I hope someone can help me with this. I'm using JDeveloper 11.1.1.2 I have an application with three projects, two models and a view controller, I have business components (Entity Objects) in the first model project deployed to an ADF library

  • How do you get the search feature on the ipod 30gb ?

    for some reason, my ipod 30gb does not have the search feature that i have seen on other ipods hp dv6000   Windows XP  

  • Can I upgrade to CS4?

    Sorry, I do not know what forum to post this in. If I buy CS3 production premium now, will I be eligible for a free upgrade to CS4? I want to buy the academic version from my school.