394
EPICenter Software Installation and User Guide
Dynamic Reports
Useful Methods for Debugging
The
GetfromDB
,
ExecuteExtrCommand
and
GetSessionParam
methods are defined as follows:
#####################################################################
# extr::GetFromDB
#
Used to make any SQL query to the database through the
#
Epicenter server. The result is a SQL result table,
#
formatted within HTML tags.
#
# Arguments
#
A string representing an SQL query.
# An optional callback function that is executed for each row of data
# Returns
#
The result table of an SQL query embedded in HTML tags.
#
#####################################################################
#####################################################################
# extr::ExecuteExtrCommand
#
This is the public method typically used during debugging.
#
When a user wants to run an HTML file through the reporting
#
engine, to generate dynamic html, s/he calls this method.
#
Users will need to use this method only during debugging.
#
# Arguments
#
filePath
This is the fully specified path of where to
#
find the HTML file that has embedded <extr> tags.
#
params
A string containing params and their values that
#
should be available to the procedures in the HTML files.
#
The parameters are specified as in HTML. i.e. the param
#
is a string of type "param1=value1¶m2=value2"
#
# Returns
#
The result of executing the command. Typically this is parsed HTML.
#
#####################################################################
#####################################################################
# extr::getSessionParam
#
Used in reports to get the value of a specific parameter
#
that was passed into the reporting system.
#
This method, along with GetFromDB form the two most
#
commonly used routines by users of the reporting system.
#
The params passed into ExecuteExtrCommand are available
#
through this method.
#
# Arguments
#
param
A param name. This should be one of the params
#
that was passed into ExecuteExtrCommand.
# Returns
#
The value of the parameter. Returns "" if param was not defined.
#
#####################################################################
Summary of Contents for EPICenter 4.1
Page 20: ...20 EPICenter Software Installation and User Guide Preface ...
Page 46: ...46 EPICenter Software Installation and User Guide EPICenter and Policy Manager Overview ...
Page 190: ...190 EPICenter Software Installation and User Guide Configuration Manager ...
Page 204: ...204 EPICenter Software Installation and User Guide Using the Interactive Telnet Application ...
Page 242: ...242 EPICenter Software Installation and User Guide Using the IP MAC Address Finder ...
Page 266: ...266 EPICenter Software Installation and User Guide Using ExtremeView ...
Page 284: ...284 EPICenter Software Installation and User Guide Real Time Statistics ...
Page 436: ...436 EPICenter Software Installation and User Guide Using the Policy Manager ...
Page 454: ...454 EPICenter Software Installation and User Guide The ACL Viewer ...
Page 468: ...468 EPICenter Software Installation and User Guide Troubleshooting ...
Page 504: ...504 EPICenter Software Installation and User Guide EPICenter External Access Protocol ...
Page 510: ...510 EPICenter Software Installation and User Guide EPICenter Database Views ...
Page 522: ...522 EPICenter Software Installation and User Guide EPICenter Backup ...
Page 526: ...526 EPICenter Software Installation and User Guide Dynamic Link Context System DLCS ...
Page 546: ......