From d50dba3eeef5fe52386a888a7d788782d6d6f92d Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Sun, 5 Oct 2014 13:00:03 +0100 Subject: [PATCH] [#143] Pass parameter(s) to custom reports via bind_params config --- Netdisco/Changes | 1 + .../lib/App/Netdisco/Manual/Configuration.pod | 27 ++++++++++++++++--- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/Netdisco/Changes b/Netdisco/Changes index c3ab0a5d..0664e504 100644 --- a/Netdisco/Changes +++ b/Netdisco/Changes @@ -3,6 +3,7 @@ [NEW FEATURES] * Administration (SSH, Telnet, Web) links for devices + * [#143] Pass parameter(s) to custom reports via bind_params config 2.029009 - 2014-09-27 diff --git a/Netdisco/lib/App/Netdisco/Manual/Configuration.pod b/Netdisco/lib/App/Netdisco/Manual/Configuration.pod index 36b8e235..ebee0c90 100644 --- a/Netdisco/lib/App/Netdisco/Manual/Configuration.pod +++ b/Netdisco/lib/App/Netdisco/Manual/Configuration.pod @@ -256,16 +256,21 @@ code or HTML templates. For example: FROM device d ORDER BY name -The C of each item in the C configuration is an alias for the +The C of each item in the C configuration is an alias for the report, and becomes part of the web path. You can munge the data retrieved from the database by placing a Perl script -with the same name as the C key into the C directory of -Netdisco's home area. The script can access C<$config> for its configuration -and C<@data> for the retrieved data. It should return a list of munged data. +with the same name as the C key into the "C" directory +of Netdisco's home area. The script can access C<$config> for its +configuration and C<@data> for the retrieved data. It should return a list of +munged data. Within the tree you can provide each of the keys below: +=head4 C + +Alias for the Report, which must be usable in a web path. + =head4 C