Here's how to do that with a bit of _javascript_.
 
Make the HTML of your template format everything on one row. Also create a counter variable in _javascript_ at the start of the page, and a variable for the number of columns you want.
 
At the start of the <sa_report> section there is another bit of _javascript_ to add one to the counter, and then at the end of your <sa_report> section another to test if you've reached the column limit. If you have, write the close and open TR tags.
 
Easy to change the number of columns this produces by changing the value of the newRowAfter variable.

Cheers,

Phil.

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: 14 July 2004 13:09
To: [EMAIL PROTECTED]
Subject: [SA-list] Template question


Hi,

I want to set up a template which simply shows the hostname of each server on a red or green background, depending on status. So that all servers will fit on one page, I want this to be in the form of a grid of (say) 10 rows of 5 columns. Can anyone advise how to do this in the template? If I just set up a table with no </tr> tag, every record goes to a new row anyway. I can do it without a table at all, but that ends up just looking ragged.

Thanks,

Ian

Ian K Gray
OEL IS - European Network Operations
Tel: +44 1236 502661
Mob: +44 7881 518854




Oki is proud to sponsor the "Oki European Challenge - 2005", the first truly democratic European yacht race.
For more information visit www.okieuropeanchallenge.com




***********************************************************************************************

This E-mail and any files transmitted with it is intended for the use of the
addressee only and may contain confidential information. If you are not the
intended recipient you are hereby notified that any use or dissemination of
this communication is strictly prohibited. If you receive this transmission
in error, please notify us immediately and delete this e-mail.
The views and opinions expressed in this e-mail message are the author's own
and may not reflect the views and opinions of Signet Group plc
or any of its subsidiaries.
***********************************************************************************************

Attachment: template.htm
Description: Binary data

Reply via email to