Please support our ColdFusion advertiser: Programming Forums
Views: 2250 | Replies: 2
![]() |
•
•
Join Date: Jul 2007
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
I'm trying to use an HTML table layout to "organize" several components, one of which is an cfgrid... but nothing shows up, the cfgrid doesn't populate. In fact, in the following example, only the first row of the HTML table is painted in the browser.
here's a sample:
This situation applies to multiple queries, and works very well when you remove the <table> elements altogether... I haven't been able to find anything to support this method or not support it...
Any help would be greatly appreciated,
Thanks,
-X
here's a sample:
<html> <body> <table> <tr> <td> some title </td> </tr> <tr> <td> <cfquery name="getEmp" datasource="MYDSN"> select * from emp </cfquery> <cfform format="flash" skin="haloSilver"> <cfgrid name="empGrid" query="getEmp" rowheaders="false"> <cfgridcolumn name="First" header="First Name" width="120"> <cfgridcolumn name="Last" header="Last Name" width="120"> </cfgrid> </cfform> </td> </tr> </table> </body> </html>
This situation applies to multiple queries, and works very well when you remove the <table> elements altogether... I haven't been able to find anything to support this method or not support it...
Any help would be greatly appreciated,
Thanks,
-X
•
•
Join Date: Jul 2007
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
hi
xf....
You can have this code now its working just change the datasource name in query tag....
its working fine at my side
xf....
You can have this code now its working just change the datasource name in query tag....
its working fine at my side
<html> <cfquery name="getEmp" datasource="#application.dsn#"> select * from emp </cfquery> <body> <table> <tr> <td> some title </td> </tr> <tr> <td> <cfform format="flash" skin="haloSilver"> <cfoutput> <cfgrid name="empGrid" query="getEmp" rowheaders="false"> <cfgridrow data="firstname" > <cfgridcolumn display="yes" name="firstname" header="First Name" width="120"> <cfgridcolumn name="lastname" header="Last Name" width="120"> </cfgrid> </cfoutput> </cfform> </td> </tr> </table> </body> </html>
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)





Linear Mode