Solved

way to display dynamic output VERTICALLY???

Posted on 2004-09-24
3
170 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

Question has a verified solution.

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

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…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

726 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