Solved

way to display dynamic output VERTICALLY???

Posted on 2004-09-24
3
167 Views
Last Modified: 2013-12-24
Hi,


I want to ask..

Is there a way to display dynamic output using CF vertically?

Normally I display output in an html horizontallly like


<table>
<cfoutput query="queryName">
  <tr>
header 1              header 2

#Queryvalue#               #queryvalue#

</tr>
</cfoutput>

I want to do:


header 1:  #queryvalue#

header 2:  #queryvalue#

The reason being is horizontally, the values I am display are very wide, and space wise on the screen, does not look good at all.

Thanks

ws
0
Comment
Question by:Westside2004
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
joezizzo earned 125 total points
ID: 12146088
Sure.  This one's not too tough.

<table>
<cfoutput query="queryName">
<!---first column--->
<tr>
  <td>Header 1: #queryValue1#</td>
</tr>
<!---second column--->
<tr>
  <td>Header 2: #queryValue2#</td>
</tr>
<!---spacer--->
<tr>
  <td>&nbsp;</td>
</tr>
</cfoutput>
</table>

Or, if you wanted it to do it dynamic, it would look something like this

<cfoutput query="queryName">
   <cfloop list="#queryName.columnList#" index="i">
  <tr>
      <td>#evaluate("queryName." & i)#</td>
  </tr>
   </cfloop>
</cfoutput>
0
 
LVL 17

Expert Comment

by:Tacobell777
ID: 12147589
Best thing to do is use CSS to display vertically - have a look at http://p079.ezboard.com/fcooltipsntricksfrm10.showMessage?topicID=45.topic

unless I did not understand you correctly?
0
 
LVL 17

Expert Comment

by:Tacobell777
ID: 12147601
Aaah I see  now, yes your question is so simple - sorry the answer is given by joe
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Interesting problem when moving between environments 6 52
Script 12 175
IIS 404 Error on website Automatic Redirect to /help 5 64
web & database SERVERS -- PHYSICAL & VM ? 5 72
Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question