Professional Documents
Culture Documents
Custom Reports PDF
Custom Reports PDF
Scope of Document
This document gives a brief overview of the creation of web reports
using ImproNet’s Custom Reports feature. These Reports make use of
your own controls and SQL queries.
Document Conventions
We use the following conventions in this document:
Rules
Custom Reports V1.0 supports a maximum of 10 controls.
If a control is not used remove it from the improcr file or comment it
out.
DO NOT use spaces except in the SELECT control when defining
the SQL query that populates a drop-down list.
Properties
TYPE—configure the type of control for use.
TEXT—creates a text box.
SELECT—creates a drop-down list.
DATE—creates a date picker.
SQLC and SQLD should only be a simple select query (that is,
select column from table).
Example 2: (TEXT)
!CTRL<TYPE=[TEXT];DTYP=[NUMERIC];NAME=[CTRL1];
TITL=[Select SQ < CTRL]>
Example 3: (DATE)
!CTRL<TYPE=[DATE];DTYP=[NUMERIC];NAME=[CTRL1];
TITL=[Select Date]>
Before adding a SQL query to the report, test the query direct
with the Database. For example, if you are using Microsoft®
SQL Server, write and test a query in the Query Analyzer.
When you are sure that the SQL query is correct, add it to the
report. Add controls for each value that you need to change
one-at-a-time. Test the report after each control is added.
If the report is not working, check that all tags have opening
braces ([ or <) and closing braces (> or ]).
#=================================================================
#
# <====================================================>
# // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * \\
# // *//===================================================\\* \\
# // *// IMPRONET CUSTOM REPORT - PROPERTIES FILE Copyright (c) 2006 \\* \\
# // *// ===================================== Impro Technologies \\* \\
# \\ *\\ //* //
# \\ *\\ //* //
# \\ *\\===================================================//* //
# \\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
# <====================================================>
#
!RPNM [Terminal Action Custom Report]
#
!RPBL [THIS IS A CUSTOM REPORT. CREATED AS DEMO]
#
#
!SQLC <SELECT * FROM TERM_ACTION WHERE TERM_ACTION.TACT
_NO =:CTRL1 ANDTERM_ACTION.AT_TYPENO =:CTRL2 AND TERM_
ACTION.TERM_SLA =:CTRL3 ORDER BYTERM_ACTION.TERM_SLA>
#
#
!COLM ["Number","Logical Address","System Name","TypeNo","Name",
"Modified","Site Logical Address","TP Number"]
#
#
!CTRL
<TYPE=[SELECT];DTYP=[NUMERIC];VTYP=[ALPHANUMERIC];NAME=[CTRL1];SQL
C=[SELECT DISTINCTTERM_ACTION.TACT_NO FROM
TERM_ACTION];SQLD=[SELECT TERM_ACTION.TACT_NAME FROM
TERM_ACTION];TITL=[Sysname = Controll]><TYPE=[SELECT];DTYP
=[NUMERIC];VTYP=[NUMERIC];NAME=[CTRL2];SQLC=[SELECT DISTINCT
TERM_ACTION.AT_TYPENO FROM TERM_ACTION];SQLD=[SELECT DISTINCT
TERM_ACTION.AT_TYPENOFROM TERM_ACTION];TITL=[Type No =
Controll]><TYPE=[TEXT];DTYP=[ALPHANUMERIC];NAME=
[CTRL3];TITL=[Terminal Logical Address = Controll]>
#
#=================================================================
User Notes