You are not logged in Log in Join
You are here: Home » Members » Hugo Ramos » HowTo's » Batch processing using HTML tables » howto_view

Log in
Name

Password

 

Batch processing using HTML tables

 

Created by hramos . Last modified 2004-02-23 12:44:35.

Or how to return N columns of DB content per each row
Change this to your needs: <table> <dtml-in expr="_.range(_.math.ceil(_.int(_['countProdFam']) / 4.0))"> <dtml-let start="_['sequence-item'] * 4 + 1"> <tr> <dtml-in sqlGetSomeContent size=4 orphan=0 start=start> <td> <dtml-var yourvar> </td> </dtml-in> </tr> </dtml-let> </dtml-in> </table> "countProdFam" is a DTML Method that returns the total number of rows in the DB; "sqlGetSomeContent" is the Z SQL Method that returns your content; "yourvar" is the variable that you want to display; "4.0" is the number of columns you want to display.