Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Layout with cfif

Posted on 2007-03-24
1
Medium Priority
?
191 Views
Last Modified: 2013-12-24
 <cfoutput query="RstDisplay">
    <tr bgcolor="CCCCFF">
      <td>#TheAssociateID#</td>
      <td>#Lname#, #Fname#</td>
      <td>#Dept#</td>

       bla ....

        <td>#HireStatus#</td>
      <td>
        <cfif #vComply# eq "Compliant">
        <font color="0000FF">#vComply#</font>&nbsp;#Results#
        <cfelseif #vComply# eq "Concurrent">
            <font color="990000">#vComply#</font>&nbsp;#Results#
            <cfelse>
        <font color="FF0000">#vComply#</font> &nbsp;#Results#
        </cfif>

  </cfoutput>

This output gives the "basic" layout where all rows are under the columns specified.
What I like to have is to divide the layout into three sub-categories based on the #vComply# with cfif, and display like below:

Compliant                                                    Concurrent                                             Non-Compliant

      <td>#TheAssociateID#</td>            <td>#TheAssociateID#</td>                <td>#TheAssociateID#</td>
      <td>#Lname#, #Fname#</td>            <td>#Lname#, #Fname#</td>            <td>#Lname#, #Fname#</td>
      <td>#Dept#</td>                          <td>#Dept#</td>                               <td>#Dept#</td>

       bla ....                                                    bla ....                                                    bla ....

  <td>#HireStatus#</td>                    <td>#HireStatus#</td>                     <td>#HireStatus#</td>

Any ideas, please.

thx much

0
Comment
Question by:ethanjohnsons
[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
1 Comment
 
LVL 39

Accepted Solution

by:
gdemaria earned 2000 total points
ID: 18790123

Have an outer table that shows the vDisplya types
 and then inner table that displays the details of the record ..

<table>
 <tr>
   <cfloop query="RstDisplay>
   <td>#vDisplay#</td>
   </cfloop>
 </tr>
 <tr>
   <cfloop query="RstDisplay>
    <td>
     <table>
       <tr><td>#theAssociateID</td></tr>
       <tr><td>#Lname</td></tr>
       <tr><td>#Dept</td></tr>
       <tr><td>#HireStatus</td></tr>
     </table>
   </td>
   </cfloop>
  </tr>
</table>
       
     
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

610 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