[racktables-users] Re: Report function



Then i will wait to version 0.17.
For this function.
Thanks Denis

 With kind regards,

 Roy de Jager











                                                                       
             Denis Ovsienko                                            
             <pilot@xxxxxxxxxx>                                        
             Sent by:                                                       To
             racktables-users-bo         racktables-users@xxxxxxxxxxxxx
             unce@xxxxxxxxxxxxx                                             cc
                                                                       
                                                                       Subject
             25-02-2009 10:11            [racktables-users] Re: Report 
                                         function                      
                                                                       
              Please respond to                                        
             racktables-users@fr                                       
                 eelists.org                                           
                                                                       
                                                                       





Hello, Roy.

> Is it possible to create custom reports?
> And if it is, is there a way to make it printable?

Yes, there are special means to embed own code. The simplest is to
create a standard PHP file "inc/local.php" with the following contents:

<?php

$localreports[] = array
(
             'title' => 'My data',
             'type' => 'custom',
             'func' => 'myReportFunc'
);

function myReportFunc ()
{
             echo 'Hello, world!';
}

?>

If you want to generate data in certain format, you could consider
having a completely independent script, which would be called directly
from command line to generate that output. In versions 0.16 or less
that's a little tricky, but possible. 0.17 should make having such
scripts simpler.

--
    Denis Ovsienko





----------------------------------------------------------------

DISCLAIMER:

This e-mail and any attachments is intended solely for the use of the
individual addressee(s), and may not be passed on to, or made available for use
by any person. If you are not the intended recipient or reader, you are kindly
requested to notify the sender by replying to this message, and then delete it
from your system. Members of the Tauw-group are neither liable for the proper
and complete transmission of the information contained in this communication,
nor for any delay in its receipt. Any e-mail messages from members of the
Tauw-group shall not be binding nor be construed as constituting any obligation
on the part of members of the Tauw-group.

GIF image

GIF image

GIF image

Other related posts: