Solved

way to display dynamic output VERTICALLY???

Posted on 2004-09-24
3
158 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
Comment Utility
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
Comment Utility
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
Comment Utility
Aaah I see  now, yes your question is so simple - sorry the answer is given by joe
0

Featured Post

Scale it in WD Gold

With up to ten times the workload capacity of desktop drives, WD Gold hard drives employ advanced technology to deliver among the best in reliability, capacity, power efficiency and performance.

Join & Write a Comment

Suggested Solutions

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now