• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Output Every X Rows

Explorer ,
Aug 28, 2006 Aug 28, 2006

Copy link to clipboard

Copied

I need to be able to mark every 25th row of my table with a special color. It is Monday and my brain doesn't seem to be working. I know this is simple but I can't remember how to do this./ Any help would be appreciated.
TOPICS
Advanced techniques

Views

366

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 28, 2006 Aug 28, 2006

Copy link to clipboard

Copied

<cfif rowCount MOD 25 EQ 0><!-- Change row color ---></cfif>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 28, 2006 Aug 28, 2006

Copy link to clipboard

Copied

I think you can just set the bg color of the table cell like so:

bgcolor="###IIF(yourQueryName.CurrentRow MOD 25, DE("FF0000"), DE("FFFFFF"))#"

The extra pound signs at the beginning make sure your final output is something like "#FFFFFF" instead of just "FFFFFF" -- this matters in some browsers, i.e. Firefox.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 28, 2006 Aug 28, 2006

Copy link to clipboard

Copied

<CFIF Query_Name.RecordCount MOD 25 EQ 0>
Change color. . . . . .
</CFIF>

Regards

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 28, 2006 Aug 28, 2006

Copy link to clipboard

Copied

LATEST
Oops...Query_Name.CurrentRow is the correct expression.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation