can't use currentrow in this situation, as it's no longer sequential
within the grouped output.  set a counter var to 0 inside of the outer
<cfoutput> and outside of the inner.  then in the inner <cfoutput>
increment the counter by 1 (cfset mycounter = mycounter + 1).  use
mycounter MOD 8 NEQ 0 instead of currentrow MOD 8 neq 0.



On Wed, 02 Mar 2005 06:26:08 -0400, Will The Game <[EMAIL PROTECTED]> wrote:
> I'm using a horizontal looper with grouped output, but it's being thrown off 
> BY the grouped output. It runs off the recordcount which of course can be 
> greater than the actual amount of items *shown*. What would be a work around 
> for this? Here's a page where it's up and running. (no comments on the girl 
> please! :)  )
> http://209.200.101.151/itemdetail.cfm?MODEL=3003
> 
> Thanks,
> Will
> 
> <table>
>            <tr>
>         <cfoutput query="getimages" group="colorname">
>         <td>
>         <cfif colorname NEQ "NONE">
>          <span class="prodinfotd">#colorname#</span>
>         <br />
>         </cfif>
>            <img src='blahblah">
>         </td>
>         <cfscript>
>   if (getimages.CurrentRow mod 8 eq 0 AND NOT getimages.CurrentRow eq 
> getimages.RecordCount) {
>     writeoutput("</tr><tr>");
>   }
> </cfscript>
>         </cfoutput>
>                         </table>
>   }
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197087
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to