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

End of query

Explorer ,
May 30, 2008 May 30, 2008
<cfoutput query="details_q">
Display of data.

{after all data is displayed...i want to display some info here} ..how to find data display is finished?.
</cfoutput>
TOPICS
Getting started
726
Translate
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

correct answers 1 Correct answer

LEGEND , Jun 09, 2008 Jun 09, 2008
queryname.recordcount is total number of rows returned by your query.
what you need to use is queryname.currentrow, which is the row number
curently procesed by cfoutput. comparing it to queryname.recordcount
will let you determine if currentrow is the last one or not.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Translate
LEGEND ,
May 30, 2008 May 30, 2008
<cfoutput query="ActivityDetails">
Display of data.

</cfoutput>
<cfoutput>
display other stuff here
Translate
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 ,
Jun 09, 2008 Jun 09, 2008
Thanks Dan,

This is what i am trying... not working...

i want a line after every line....but not on last line...cuz i got table border for last line.

How to eliminate last line?.

<cfoutput query="details_q">
display all data..


<cfif details_q.recordcount neq '0'>
<tr>
<td><hr id="bblack" size="0"></td>
</tr>
</cfif>
</cfoutput>
Translate
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 ,
Jun 09, 2008 Jun 09, 2008
put the line and the closing table tag after your cfoutput.
Translate
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 ,
Jun 09, 2008 Jun 09, 2008
Below code produce a extra black line at end of table.

How can i avoid extra line.

I added a condition, <cfif details_q.recordcount neq '0'> to supress black line. But this is not working.


Translate
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 ,
Jun 09, 2008 Jun 09, 2008
queryname.recordcount is total number of rows returned by your query.
what you need to use is queryname.currentrow, which is the row number
curently procesed by cfoutput. comparing it to queryname.recordcount
will let you determine if currentrow is the last one or not.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Translate
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 ,
Jun 09, 2008 Jun 09, 2008
Change this
<cfif details_q.recordcount neq '0'>
<tr>
<td><hr id="bblack" size="0"></td>
</tr>
</cfif>
</cfoutput>
to this
</cfoutput>
<tr><td><hr id="bblack" size="0"></td></tr>
Translate
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 ,
Jun 10, 2008 Jun 10, 2008
Azadi...perfect.

you are best person in this forum.
Translate
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 ,
Jun 10, 2008 Jun 10, 2008
LATEST
Hello Azadi,

Can you please take a look at this?.
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=3&threadid=1369213

I am trying to find 2nd thursday of every month.

If current date is more than 2nd thursday of this month, it should show next month 2nd thursday.

i like a simple code or custom tag for this...
Any idea. Please help.
Translate
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