Solved

way to display dynamic output VERTICALLY???

Posted on 2004-09-24
3
165 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

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…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
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 …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

831 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