As you know the problem is that when you go to the nextN page it doesn't
remember where in the same group you are and typically even if you are
half-way through a group, you still want the stuff that appears only when
the group changes to appear on this new page. Fair enough.

i don't have the specific solution you're looking for , but i've found it
fairly trivial to use the usual NextN functionality and then within the
cfloop of outputting the data, just use soemthing like

<cfset oldgroup="">
<cfloop ...>
    <cfset newgroup=fieldname_of_groupcolumn>
    <cfif oldgroup NEQ newgroup>
        <!--- stuff you'd like done only when then group repeats here. --->
        <cf_blahblahblah>

        <!--- output stuff --->

        <!--- set oldgroup's value so we dont repeat this until oldgroup and
newgroup are different again. --->
        oldgroup=newgroup

    <cfelse>
        <!--- stuff you do when item is in the same group goes here --->

    </cfif>
</cfloop>

so , yeah, it's not as clean, and yeah if anyone has an extra amount of time
to fold it back into a NextN functionality. But we use about 3 different
NExtN's depending on what we want to do , so I find it easier to just add
this in in 10 minutes and then go back and copy it when I need it somewhere
else.



----- Original Message -----
From: "S. R." <[EMAIL PROTECTED]>
To: "Fusebox" <[EMAIL PROTECTED]>
Sent: Tuesday, March 06, 2001 10:26 AM
Subject: Nested Cfouput w/ Next N Functionality


> Does anyone have an example of using "Next x Records" functionality with
nested cfoutput's (used for grouping) ?
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.231 / Virus Database: 112 - Release Date: 2/12/2001
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to