Skip record set results

Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default Skip record set results

    Hi, just wondering if anyone knows a simple way to filter out the 1st 5 records
    in a record set. I'm trying to get a page to display the 1st 5 records from a
    database, with another table which will display the next 5 underneath it. The
    problem I'm having to getting the proper filter to skip the first 5. Appreciate
    it if anyone can help.

    t.d. Guest

  2. Similar Questions and Discussions

    1. skip path prune
      How do you use the prune function to skip a printing all of the contents of a folder? It will not print folder 3 but does print the contents of...
    2. Is there a CFMX tag to skip CF processing?
      We've got large access log files in our secure intranet. They're stored as ..TXT files, and not being processed by CFMX, which in itself is not an...
    3. RIS - skip auth. proces
      Hi there, is there any way to skip the authentication on the beginning of a RIS installation proces ??? regards, Christian
    4. Skip to chapter...
      Being a great one for learning things from the middle on out, I would like to make a button in Flash MX for my plain-HTML website. I'm familiar...
    5. Delay/Skip Rollover
      I have a menu bar, with a delayed rollover action. That keeps the user from activating another button by cutting corners. There is one problem...
  3. #2

    Default Re: Skip record set results

    There are startrow and endrow attributes included with the cfoutput tag. You can use these to limit your results. Hope that this helps. Thanks.

    Chris
    cgsj_usa@yahoo.com Guest

  4. #3

    Default Re: Skip record set results

    I'm a little unsure where to put them though, and what to let them equal to.
    What I have at the moment is: <cfoutput> <cfoutput query='PrevEvents'
    startRow='#StartRow_PrevEvents#' maxRows='#MaxRows_PrevEvents#' >
    <tr> <td
    width='20' height='15'>#PrevEvents.Date##PrevEvents.Title#</td>
    <td width='125' height='15'>&amp;nbsp;</td>
    <td width='10' height='15'><img
    src='/Images/bulletpurple.png' name='l1' width='10' height='10' id='l1' /></td>
    </tr>
    </cfoutput> </cfoutput>

    t.d. Guest

  5. #4

    Default Re: Skip record set results

    Try this:

    <cfquery...

    ...</cfquery>

    <cfoutput query = "queryname" startrow = "1" endrow = "5">
    whatever the columns are
    </cfoutput>

    <cfset startrow_prevevents = "6" />
    <cfset maxrows_prevevents = "10" />

    <cfoutput query="PrevEvents" startRow="#StartRow_PrevEvents#"
    maxRows="#MaxRows_PrevEvents#" >
    <tr>
    <td width="20" height="15">#PrevEvents.Date##PrevEvents.Title#</td>
    <td width="125" height="15"> </td>
    <td width="10" height="15"><img src="/Images/bulletpurple.png" name="l1"
    width="10" height="10" id="l1" /></td>
    </tr>
    </cfoutput>

    Hope that this helps. Thanks.

    Chris


    cgsj_usa@yahoo.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139