Next/previous records

Hi,
I am new to Forms 6i and any pointers would be appreciated.
I have set up a form using a master/child relationship. The
master block (mfg_date) has only one field (id). I created
toolbar buttons to step through the master records using the
following code.
(Toolbar Button code for previous record)
GO_BLOCK('mfg_date');
GO_RECORD(TO_NUMBER(:SYSTEM.CURSOR_RECORD)-1);
(Toolbar Button code for next record)
GO_BLOCK('mfg_date');
GO_RECORD(TO_NUMBER(:SYSTEM.CURSOR_RECORD)+1);
These buttons work fine by themselves.
I also created an LOV allowing the user to select any master
record using the following code.
(WHEN BUTTON PRESSED Trigger Code for LOV)
DECLARE
v_choose BOOLEAN;
BEGIN
v_choose := SHOW_LOV('new_mfg_date');
IF NOT v_choose THEN
MESSAGE('You have not selected a value.');
BELL;
RAISE FORM_TRIGGER_FAILURE;
ELSE
GO_BLOCK('load_sheet');
IF :SYSTEM.BLOCK_STATUS ='CHANGED'
THEN DO_KEY('COMMIT_FORM');
END IF;
GO_BLOCK('mfg_date');
GO_RECORD(TO_NUMBER(:SYSTEM.CURSOR_RECORD));
END IF;
END;
This code also works fine by itself.
My problem occurs if I use the LOV and then use the
previous/next record buttons. If I select a record using the LOV
and then use the buttons, the next/previous records displayed
are in relation to what was selected with the buttons, not with
the LOV. For instance: If I use the buttons to step through the
records up to record 5, and then select record 18 with the LOV
and then use the buttons again, the record navigation is in
relation to record 5, not 18.I start through the records with
the next-record button, the next record displayed is 6 instead
of 19. Record 18 also seems to become record 5 at this point.
What I would like is to have the next/previous buttons work in
relation to the record that is displayed. I have also tried
up/down, scroll_up/scroll_down, and next_record/previous record
with the same results. Obviously there is some logic that I’m
not grasping yet. Hopefully someone maybe able to point me in
the right direction.
Thanks
Paul Howard
[email protected]

Yeahh and don't forget that even google doesn't show you more than 1000 records ;)
Gints Plivna
http://www.gplivna.eu
Message was edited by:
gintsp

Similar Messages

  • Navigation Problem in Next/Previous Record

    Hi,
    I have a Master (have 20 fields) and Four its Detail block visible on same screen but each block have its own Canvas and Window. Now master table have 1700 records with its detail tables. So after Query when I press the Next_Record button it will no response some time I have to press it twice or thrice then it will respond and some time on fist click it gives the response.
    So I want to navigate through Next Records or Previous Record buttons on single click.??????????
    Kindly send me the solution of this problem on urgently basis.
    Best Regard,

    Hi,
    It's very difficult to suggest something by readingyour post. There are many reasones for navigation problem. Validation is one of them. Be sure that validation triggers written on any level are working properly. What code you have written on the buttons that you are using for navigation. In which blocks you have put your buttons. It is recommended that you put all your non-database items in a non-database block. Check this also.......

  • Is there an easy way to fetch next/previous record in Apex?

    I am new to APEX/Oracle, but have a lot of expierence as a mainframe programmer and some experience with SQL.
    I have been tasked by my boss to create a set of pages in an application as follows.
    Page 1: Select an Employees Name and go to Page 2.
    Page 2: Display Employee's Biography Information.
    Add a "Next Employee" button and a "Previous Employee" button that will fetch the next/previous Employees Biography info respectively.
    In essence, he wants a query with every employee's biography information with the employee selected on page 1 used as the starting pointer.
    I have successfully built "select an Employee's name on page 1" and "display his/her info on page 2" with a query that returns a single record.
    What I can not figure out is how to get a next and previous button to get the next or previous record in a multi record query, using the intially selcted employee as the intial pointer.
    Is their an easy way to build this using built-in APEX functionailty, or will it require programming to achieve this requirement?

    Bob,
    I installed the Aria application, but now I wish I'd run the preview first. It's a cool application, but I don't see anything like what greich requested. I'm looking for the same thing.
    <ol>
    <li>     and clicked the Edit or View Details button for an individual. </li>
    <li>That takes me to a custom Form page that shows one person. </li>
    </ol>
    I'm trying to imagine how I'd code buttons for that Form page to let me click to see the next or previous person on that same form. My mind gets totally boggled when I consider that the user might have filtered the report to only show a few records. How do I have any idea what those IDs were and what order they were showing in, to know which is the next individual.
    My only thought it to create a process on the report that could save primary key (e.g. employee ID) to a table or Apex collection? Then the form button runs a process that finds the current ID then uses next or previous?
    I'm not sure how I could capture the PK in the report in order to save it.
    Does this make sense? Anyone got a better idea?
    Thanks,
    Stew

  • Next - Previous record in ADDT?

    I have an image gallery that displays a dynamic image from a dynamically created thumbnail, which works fine.
    Is there a way to have 2 arrows at either end of the thumbs and move to the next image in the recordset, ie a Previous and Next link? ...just like there is in the pop-up window if you use the dynamic Thumbnail tool - but I don't want it in the pop-up window, but rather in the main window.
    Thanks in advance,
    Mick

    Hi Mick,
    Perhaps you've already found an answer to this question. But I've learned thanks to a tip from Günter Schenk here on these forums, (and with some experimentation on my part), that one can add paging navigation using Dreamweaver's native tools to do as you describe.
    Data tab > Recordset Paging : Recordset Navigation Bar (and sub options)
    Data tab > Display Record Count : Recordset Navigation Status (and sub options)
    I've been using the native Recordset Navigation Bar to compliment ADDT without trouble.
    Regards,
    JTueller

  • Question about going to next or previous record

    Hi there,
    I have a data block which is not based on table. It is a multi record block that gets populated with default values depending on some value on the previous tab. This item called "description" has also a LOV attached to it. The user should have the option of keeping the default values or clicking on LOV to change the value for each record. Each LOV is different and depends on default value.
    Cursor is in last record. I click on LOV the correct lov pops up. click on previous record by just clicking on the record and not using (previous record button from toolbar) and click on LOV, incorrect LOV is shown. It is showing the LOV from the last record.
    But if I click on previous record button, correct LOV gets populated.
    Which trigger should I use to solve this?
    Thanks

    Hi,
    I would use the when-new-record-instance trigger to kick off your logic.
    Where is it called from at present - post-query?
    The previous & next record keys do the same as key-up & key-down but using the mouse forms will not fire this logic for any records passed over. We had a similar problem with validation and had to disable mouse navigation for that form so we could just trap key movement.
    Regards
    Kevin

  • Next,previous,last, and first record

    dear all masters
    plz help me my code dont work
    i used button when button pressed and code below
    First_Record;
    execute_query;
    last_record;
    execute_query;
    previous_record;
    execute_query;
    next_record;
    execute_query;
    but all wont work it wont goto the next, previous,last and first records.. master plz help me..
    micababe

    How do I navigate to the last_record after a query has fetched all my records. I jnow it existed the POST-FETCH trigger, but now how can I make this possible?
    My problem is simple. I am trying to navigate to the last record of a block after the query has fetched all the records.
    Thanks,
    Lucian

  • Navigate previous record,next record by entering key-up and key-down

    Hi ,
    JDeveloper11g_
    I am trying to solve of how to navigate previous record,next record by entering key-up and key-down in ADF Table.
    If any of you have this solution by JScript of Backing Bean please help me.
    Thanks
    zakir
    ===

    Hi zakir,
    I hope I understood your requirements correctly. You have an editable ADF table. You would like to use the up/down arrow keys to move from one row to the next/prev row of the same column. Since the Tab key moves the cursor to the right and Shift+Tab moves it to the left, now you want to implement the same thing but just up and down, correct? If so, try this.
    /** Javascript **/
    function detectKey(evt) {
        var inputText = evt.getSource();
        var id = inputText.getClientId();
        var start2 = id.indexOf(":") + 1;
        var end2 = id.lastIndexOf(":");
        var numValue = parseInt(id.substring(start2, end2));
        var evt2 = evt.getNativeEvent();
        arrows=((evt2.which)||(evt2.keyCode));
        switch(arrows) {
            // Up arrow
            case 38:
            numValue = numValue - 1;
            break;
            // Down arrow
            case 40:
            numValue = numValue + 1;
            break;
        var newStr = id.replace(/:\d:/, ':' + numValue + ':');
        var comp = AdfPage.PAGE.findComponent(newStr);
        if (comp != undefined) {
            comp.focus();
    /** Jspx. (Place a client listener on each inputText in the ADF table) **/
    <af:column .....>
      <af:inputText value="#{row.bindings.price.inputValue}" .....>
        <af:clientListener type="keyDown" method="detectKey"/>
      </af:inputText>
    </af:column>With this, you get to move Up/Right/Down/Left in the editable ADF table without using the mouse.
    References:
    http://thepeninsulasedge.com/blog/?cat=29
    af:clientListener attributes and methodes of event object in java script
    Regards,
    Chan Kelwin

  • CF Set form.variable for query and Next/Previous pages error

    I have a CF form with a select that posts to a CF "action" page.
    On the action page I: CFSET ItemNumber=#form.ItemNumber#
    I CFOUTPUT the 'ItemNumber' into the CFQUERY (which is an Inner Join dependant on the '#ItemNumber#')...
    All of the above works just fine and displays the database fields in color alternating rows, per the rest of the code.
    Here's the problem:
    I'm displaying 40 rows on a page per "Next and Previous" code. (CFPARAM name="start" default="1" and CFPARAM name="disp" default="40" along with the rest of the NextN code in the header and body). This does display 40 rows on the page and puts a link at the bottom of the page "Next 40 Rows", etc.
    Note: I'm only querying the database once and using the query (query name="data") to populate the table rows And the NextN code (CFOUTPUT name="data") And (CFIF start + disp GREATER THAN data.RecordCount, etc)...
    The problem happens when you click the "Next 40 Rows" link to display the 2nd page of rows. Since (I'm assuming) this NextN code is 're-reading' the same page from top to bottom, an error is thrown when the code tries to read the CFSET ItemNumber=#form.ItemNumber# at the top of the page.
    With the #form.ItemNumber# on this action page Originally coming from the previous posting of the form to this action page, when the "Next 40 Rows" link is clicked and the NextN code re-reads this action page - the CFSET ItemNumber (#form.ItemNumber) is not getting populated and throws the error...
    I hope I've not made this sound confusing.
    I can get the NextN code to work when I'm just querying the database without "flying in" a form variable. But when I CFSET a variable (#form.ItemNumber#) that is inserted into the query, the second page of the NextN throws an error and doesn't display.
    I would include the page code here but it would be fairly lengthy and, as well, the NextN code is a 'standard' CF code -- I've narrowed the problem down to the above "Element is undefined" (when the page tries to reload from the "Next 40 Rows" link) and am hoping there's a simple fix or another way to display the records in Next and Previous pages.
    Thanks to anyone in advance for shedding light on this.
    - e

    Thank you for the reply, Owain.
    Yes - The Next/Previous at the bottom of the page are hyperlinks.
    <a href="ThisPage.cfm?start=#Evaluate("start + disp")#">
    The following is at the top of the page (and is the variable from the form that I CFOUTPUT in the query):
    <cfparam name="ItemNumberDropdown01" default="">
    <cfset ItemNumber = #form.ItemNumberDropdown01#>
    The error report showed that the "Next Page" hyperlink was reading an undefined variable... although when the "action page" first opens from the form posting to it, it populates the CFSET just fine (per the cfparam and cfset above)... As you mention, the hyperlink clearing the form scope is what causes the error in trying to display the next set of records...
    The form page and the 'action page' are both secure pages with an application page setting the session, etc. Am I at risk in using an URL scope?
    Where would this URL scope be put? (The href is shown above - would the URL scope go in this? - How would this be written?)
    The CFPARAM and CFSET would still exist at the top of the 'action page' and still throw an error wouldn't it or would this be replaced with something else to read the form.variable for this 'first' action page to be displayed?
    Thanks again for the 'education' on this...
    - ed

  • Page numbers navigation bar instead of the standard first-next-previous-last

    I want to add page numbers to my navigationbar instead of the standard "first next previous last".
    For example I have a repeat region with a navigation bar (standard) I have 7 records per page and I would like it to say at the bottom:
    1 2 3 4 5 ect. Is there any way I can code this up with php or with dreamweaver or is there an other way to do this.
    Any help welcome

    You can do it in DW
    Add the below code
    <div class="pages">
    <ul>
    <li class="prev"><a href="#">&laquo; Previous</a></li>
    <li><a href="#">1</a></li>
    <li><a href="#">2</a></li>
    <li class="ellipsis"><strong>&hellip;</strong></li>
    <li><a href="#">6</a></li>
    <li class="current"><strong>7</strong></li>
    <li><a href="#">8</a></li>
            <li class="ellipsis"><strong>&hellip;</strong></li>
    <li><a href="#">14</a></li>
    <li><a href="#">15</a></li>
    <li class="next"><a href="#">Next &raquo;</a></li>
    </ul>
    </div>
    style it as
    .pages{display:block; width:100%; text-align:center; clear:both; font-family:Verdana, Geneva, sans-serif;}
    .pages ul{margin:0; padding:0; list-style:none;}
    .pages li{display:inline;}
    .pages strong{font-weight:normal;}
    .pages .next{margin:0;}
    .pages a,.pages .current strong, .pages .ellipsis strong{display:inline-block; padding:2px 6px; margin:0 2px 0 0;}
    .pages a{border:1px solid #DFDFDF;}

  • Next / Previous button throwing an error. Please help

    I wrote this next previous button code and it is throwing an
    error. I don't understand why or what I am missing.
    I want it to show 4 records for a page. Here is my code and
    the error.
    Code:
    <cfset CurrentPage=GetFileFromPath(GetTemplatePath())>
    <cfquery name="feat" datasource="#sitedatasource#"
    username="#siteUserID#" password="#sitePassword#" maxRows=4>
    SELECT feature.title AS ViewField1, feature.MYFile AS
    ViewField2, feature.ID AS ID
    FROM feature
    </cfquery>
    <cflock timeout="2" scope="application"
    type="READONLY">
    <cfset application.feat=feat>
    </cflock>
    <cfset MaxRows_feat=4>
    <cfset
    StartRow_feat=Min((PageNum_feat-1)*MaxRows_feat+1,Max(feat.RecordCount,1))>
    <cfset
    EndRow_feat=Min(StartRow_feat+MaxRows_feat-1,feat.RecordCount)>
    <cfset
    TotalPages_feat=Ceiling(feat.RecordCount/MaxRows_feat)>
    <cfset QueryString_feat=Iif(CGI.QUERY_STRING NEQ
    "",DE("&"&CGI.QUERY_STRING),DE(""))>
    <cfset
    tempPos=ListContainsNoCase(QueryString_feat,"PageNum_feat=","&")>
    <cfif tempPos NEQ 0>
    <cfset
    QueryString_feat=ListDeleteAt(QueryString_feat,tempPos,"&")>
    </cfif>
    <cflock timeout="2" scope="application"
    type="READONLY"><cfoutput query="feat"
    maxrows="4">#ViewField1#</cfoutput></cflock>
    <cfif PageNum_feat GT 1>
    <a
    href="#CurrentPage#?PageNum_feat=#Max(DecrementValue(PageNum_feat),1)##QueryString_feat#"
    onmouseout="MM_swapImgRestore()"
    onmouseover="MM_swapImage('Previous','','../img/previous-over.gif',1)"><img
    src="../img/previous.gif" alt="Previous Records" name="Previous"
    width="96" height="27" border="0" id="Previous" /></a>
    <cfif PageNum_feat LT TotalPages_feat>
    <a
    href="#CurrentPage#?PageNum_feat=#Min(IncrementValue(PageNum_feat),TotalPages_feat)##Quer yString_feat#"
    onmouseout="MM_swapImgRestore()"
    onmouseover="MM_swapImage('next','','../img/next-over.gif',1)"><img
    src="../img/next.gif" alt="Next Record" name="next" width="96"
    height="27" border="0" id="next" /></a>
    The Error:
    Variable PAGENUM_FEAT is undefined.
    The error occurred in
    C:\Websites\x9vdzd\feature\featured.cfm: line 8
    6 : </cfquery>
    7 : <cfset MaxRows_feat=4>
    8 : <cfset
    StartRow_feat=Min((PageNum_feat-1)*MaxRows_feat+1,Max(feat.RecordCount,1))>
    9 : <cfset
    EndRow_feat=Min(StartRow_feat+MaxRows_feat-1,feat.RecordCount)>
    10 : <cfset
    TotalPages_feat=Ceiling(feat.RecordCount/MaxRows_feat)>
    I thought I had it defined! What am I missing?
    Thanks
    Phoenix

    that is strange... it should work fine - it does in my tests.
    here is somewhat updated & modified code to try. i have
    included
    comments to try and explain what is being done.
    basic logic is as follows:
    -form is submitted
    -check if file has been selected
    -try uploading new file
    -if new file upload succeeds, delete old file if it exists
    (as part of
    updating existing record, as new records obviously would not
    have any
    old image)
    -update/insert record data as necessary
    here's the code:
    <cfif isdefined("form.feat_OK")><!--- form submitted
    --->
    <!--- set file uploading vars --->
    <cfparam name="fileuploaded" type="boolean"
    default="false">
    <cfparam name="uploadedfile" default="">
    <cfset pathToFile = "c:\websites\x9vdzd\img\feature\">
    <!--- --->
    <cfif len(trim(form.MYFile))><!--- if a file has
    been selected --->
    <!--- try uploading new file --->
    <cftry>
    <cffile Action="upload" filefield="MYFile"
    accept="image/gif,
    image/jpg, image/jpeg, image/pjpeg"
    destination="#pathToFile" nameconflict="MAKEUNIQUE">
    <cfset fileuploaded = true>
    <cfset uploadedfile = cffile.serverfile>
    <cfcatch type="any">
    <!--- if upload did not suceed, reset file uploading vars
    --->
    <cfset fileuploaded = false>
    <cfset uploadedfile = "">
    <!--- this can be further enhanced by setting some var to
    hold error
    message and return it to user --->
    </cfcatch>
    </cftry>
    </cfif>
    <cfif form.id gt 0><!--- we are updating an
    existing record --->
    <!--- if new file upload was successful and the feature
    has an image
    associated with it - delete old image --->
    <cfif fileuploaded is true AND
    len(trim(form.oldimage))>
    <cfif FileExists(pathToFile & form.oldimage)>
    <cffile action="delete" file="#pathToFile &
    form.oldimage#">
    </cfif>
    </cfif>
    <cfquery datasource="#sitedatasource#"
    username="#siteUserID#"
    password="#sitePassword#">
    UPDATE feature
    SET
    feature.title=<cfqueryparam cfsqltype="cf_sql_varchar"
    value="#form.title#">,
    feature.Body=<cfqueryparam cfsqltype="cf_sql_longvarchar"
    value="#form.PDSeditor#">,
    feature.MYFile=<cfqueryparam cfsqltype="cf_sql_varchar"
    value="#uploadedfile#" null="#NOT fileuploaded#">
    WHERE ID = <cfqueryparam value="#form.ID#"
    cfsqlType="CF_SQL_INTEGER">
    </cfquery>
    <cfelse><!--- we are inserting a new record --->
    <cfquery datasource="#sitedatasource#"
    username="#siteUserID#"
    password="#sitePassword#">
    INSERT INTO feature
    (title, body, MYFile)
    VALUES
    (<cfqueryparam cfsqltype="cf_sql_varchar"
    value="#form.title#">,
    <cfqueryparam cfsqltype="cf_sql_longvarchar"
    value="#form.PDSeditor#">,
    <cfqueryparam cfsqltype="cf_sql_varchar"
    value="#uploadedfile#"
    null="#NOT fileuploaded#">)
    </cfquery>
    </cfif>
    <!--- relocate user to previous page after insert/update
    --->
    <cflocation url="feature-manager.cfm">
    </cfif>
    hth
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • Giving next / previous a brain?

    Hello;
    I wrote a next previous nav for editing records on my web
    site. I also on one of the same pages, have it filtering records by
    the category. If a user wants to see all the records they can, or
    if they select from a list on another page, they get the "products"
    associated to that category.
    Before I added the next / previous, numbered page nav, it
    worked fine, sorting products to only the ones selected by the cat,
    and showing all if selected. Once I added the nav, it would show
    the catagoried products but once you click, next or page 2 you
    would get them all back. How do I make the next / previous remember
    what to do?
    Here is my code:
    <cfquery name="getProjects" datasource="#sitedatasource#"
    username="#siteUserID#" password="#sitePassword#">
    SELECT Projects.Name AS PName, Projects.ProjectID AS ID,
    Categories.Name AS CName, Categories.CategoryID
    FROM Projects INNER JOIN Categories ON projects.CategoryID =
    Categories.CategoryID
    <cfif StructKeyExists(url, 'ID')>
    WHERE Categories.CategoryID = <cfqueryparam
    CFSQLType="CF_SQL_INTEGER" value="#URL.ID#" />
    ORDER BY Projects.Name
    <cfelse>
    ORDER BY Categories.Name
    </cfif>
    </cfquery>
    <cfset rowsPerPage = 6>
    <cfparam name="URL.startRow" default="1"
    type="numeric">
    <cfset totalRows = getProjects.recordCount>
    <cfset endRow = min(URL.startRow + rowsPerPage - 1,
    totalRows)>
    <cfset startRowNext = endRow + 1>
    <cfset startRowBack = URL.startRow - rowsPerPage>
    <head>
    </head>
    <body>
    <cfloop query="getProjects" startRow="#URL.startRow#"
    endrow="#endRow#">
    <cfoutput>
    My output records go here
    </cfoutput>
    </cfloop>
    <cfoutput>
    <cfset thisPage = 1>
    <cfloop from="1" to="#totalRows#" step="#rowsPerPage#"
    index="pageRow">
    <cfset isCurrentPage = (pageRow gte URL.startRow) and
    (pageRow lte endRow)>
    <cfif isCurrentPage>
    <cfoutput>
    #thisPage#
    </cfoutput><cfelse><cfoutput>
    <a href="#CGI.script_name#?startRow=#pageRow#"
    class="navA">#thisPage#</a></cfoutput></cfif>
    <cfset thisPage = thisPage + 1>
    </cfloop>
    <cfif startRowBack GT 0><a
    href="#CGI.script_name#?startRow=#startRowBack#"
    class="navA">&lt; Previous Records</a></cfif>
    <cfif startRowNext lte totalRows><a
    href="#CGI.script_name#?startRow=#startRowNext#"
    class="navA">Next Records &gt; </a></cfif>
    </cfoutput>
    </body>
    My next / prev buttons work nice, they just don't have the
    memory of what was filtered or not filtered. Can someone help me
    write this out so it has a brain?
    Thank you.
    Phoenix

    You can either store the value of URL.ID in a session
    variable to carry it over next/previous changes and update it when
    ever the ID is changed or you can add the URL.ID back into the
    next/previous link definitions as in:
    <cfif startRowBack GT 0><a href="#CGI.script_name#?
    id=#URL.ID#&startRow=#startRowBack#"
    class="navA">&lt; Previous Records</a></cfif>
    <cfif startRowNext lte totalRows><a
    href="#CGI.script_name#?
    id=#URL.ID#&startRow=#startRowNext#"
    class="navA">Next Records &gt; </a></cfif>
    HTH
    CR

  • Dynamic Image Gallery First, Next,Previous,Last

    had a friend help me build this but now he's gone and I don't
    understand arrays or coldfusion really. I have an image gallery
    that works beautifully except that I want to be able to add two
    behaviors to the page. 1.Pagination. 2. Display Record Count. (I
    know how to use the Dreamweaver built in Server Behaviors with
    Dynamic Tables but this is a little different from that b/c he's
    using arrays to build the table instead. I've almost go the
    pagination working. Except I can't figure how to show the last
    record. I've got "First, Next, & Previous" to work. But the
    "Last" doesn't. This is the part of the code that I'm concerned
    with as everything else is working.
    <cfset CountUp=Count + 10>
    <cfset CountDown=Count - 10>
    <p align="center"><cfif Count gte 1><a
    href="gallery.cfm">First</a></cfif>  <cfif
    Count gte 10><a
    href="gallery.cfm?Count=<cfoutput>#CountDown#</cfoutput>">Previous</a></cfif>  <cfif
    ArrayLen(PhotoArray) gt CountUp><a
    href="gallery.cfm?Count=<cfoutput>#CountUp#</cfoutput>">Next</a></cfif><cfif
    ArrayLen(PhotoArray) lt CountUp><a
    href="gallery.cfm?Count=<cfoutput>#CountUp#</cfoutput>">Last</a></cfif>
    I have no idea how to write the "Display record counts" so if
    someone can help me write that part I would be so greatful.
    Here is all of the code for this page attatched...
    Attach Code

    Your code is more complicated than it needs to be. I honestly
    didn't dig through it, but here are a few suggestions.
    Use ArrayLen(array[]) to count the number of rows in an aray.
    Use array[ArrayLen(array)] to find the last record

  • NEXT PREVIOUS LAST FIRST PROBLEM

    hi to all,
    i get this error when i press next,previous,last first button... "Error.. you need to insert first item" and another is when it work the last and first its empty in all the text item.....
    my code is..
    Next_REcord for next button
    previous_record for previous
    last_record for last
    first_record for first...

    If you want to navigate through the records of you 're data block you need records.
    So first 'execute_query'. You can put this in when-new-form-instance trigger.
    If there are no records in your table, it's normal that you get this error when trying to navigate.
    Regards

  • Add a help bubble at Home, Next & Previous buttons

    Hi,
    Can we add balloon help on 'Home', 'Next' and 'Previous' buttons?
    Thanks in advance.

    So are you showing only one record at a time? If so, this can be very simple.
    1. Create a variable to hold the next record you want to display. Create another for the previous record (you already have the current record).
    2. Create a custom procedure and set the value of the next and previous record ID's using an SQL query of your choice.
    3. On the NEXT button, set it to Submit and set the target page to be the same page. Set the value of the current record ID to be that of the next record ID. When the page refreshes, it should grab the appropriate record.
    4. Following that idea, on the PREVIOUS button, set it also to Submit to the same target (the page you are on now). Set the value of the current record ID to be that of the previous record ID.
    Try that and see how it goes.

  • Has anyone implemented - Next/Previous Paging in a datagrid??

    Hi,
    Can someone provide some sample code or a link that shows how
    to use paging with a datagrid? I want to display the first 25
    records in my datagrid, and allow the user to go to 26-50 - 51-75
    or whatever.
    How can I do this?
    -Malik

    Look:
    http://www.brucephillips.name/blog/index.cfm/2006/11/29/Paging-Using-Next--Previous-Throug h-Records-Displayed-In-A-Flex-DataGrid#more

Maybe you are looking for

  • Re: Skype number keeps saying busy

    When I tried to call my Skype Number is always busy. I called Microsoft Technical Support, and they said there is no issue! I tried to call again my skype number and still it is busy! I don't know when this issue can be resolved?! Please note that th

  • Will mountain lion supports a 10 bits color depth?

    Just wondering if and when it will, and how much it affects color accuracy in photography comparing to chain that supports a full 10 bits per channel color depth. Thanks in advance for your answer. Max

  • IChat 2.1 (v153) quits when trying to send an IM

    Recently (in the month of August), every time I try to send a message through iChat, it quits and gives a message that the AIM server has logged me out ("Disconnected from iChat Agent. The iChat Agent process has unexpectedly quit, disconnecting you

  • Help me to call method in the listener

    Hi all, I have a class called A, and have a mouselistener (or anythink) in this. In this listener I want to call a method of class A. I don't use like this "this.method" in the mouselistener because "this" is refer to mouselistener, don't refer to cl

  • Company code and operating concern currency in COPA

    Dear experts, I have one controlling area and one operating concern for indian and foreign entitiy with INR as currency for controlling area and one operating concern. but outside india i have sgd as company code currency. So i ticked company code cu