Beruflich Dokumente
Kultur Dokumente
Document Conventions
We use the following conventions in this document: Note points out extra information. Tip points out alternative methods to perform a task. Important points out important information. Warning points out potential danger to you or the product.
IXP365-0-0-GB-00
August 2010
Page 2
Defining a SQL query Syntax: !SQLC [put SQL query here] Example 1: !SQLC <SELECT * FROM TERM_ACTION WHERE TERM_ACTION.TACT_SYSNAME =:CTRL1 AND TERM_ACTION.AT_TYPENO =:CTRL2 AND TERM_ACTION.TERM_SLA =:CTRL3 ORDER BY TERM_ACTION.TERM_SLA> Example 1 has 3 controls. The control name appears next to the : without any spaces. Also do not put spaces between the = and the : (or any other conditionals that is <=:CTRL1 or >:CTRL2). Example 2: !SQLC <SELECT * FROMABSENTEEISMREPORT (:CTRL1,'01000000')> Example 2 uses a stored procedure. Variables passed to the stored procedure must display in round brackets. There must be a "," between each variable and an alphanumeric value must display in single quotations. Defining Controls for your Custom Report 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 TYPEconfigure the type of control for use. TEXTcreates a text box. SELECTcreates a drop-down list. DATEcreates a date picker. IXP365-0-0-GB-00 August 2010 Page 3
DTYPselect the Data Type represented by the control. ALPHANUMERICused for all alphanumeric fields. NUMERICused for all date and numeric fields. NAMEname of the control referenced in the main query. SQLCactual value given to a control comes from the result of this query. SQLDused to populate control of type SELECT. Works with the SQLC tag. SQLC and SQLD should only be a simple select query (that is, select column from table).
TITLconfigure the name that displays next to the control. The actual control must be between open and close angle braces (that is <>).
Syntax: !CTRL [define control properties here] Example 1: (SELECT) !CTRL<TYPE=[SELECT];DTYP=[NUMERIC];VTYP= [ALPHANUMERIC];NAME=[CTRL1];SQLC= [SELECT DISTINCT TERM_ACTION.TACT_NO FROM TERM_ACTION];SQLD=[SELECT TERM_ACTION.TACT _NAME FROM TERM_ACTION];TITL=[Sysname = Control]> 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]>
IXP365-0-0-GB-00
August 2010
Page 4
IXP365-0-0-GB-00
August 2010
Page 5
IXP365-0-0-GB-00
August 2010
Page 6
Ensure that there are no empty lines, that is there must be a # at the beginning of a line if the line is not used for report configuration. If a control is not used it must be commented out using a #.
IXP365-0-0-GB-00
August 2010
Page 7
Extra Information
Further information is available at the following resources: ImproX ECII Hardware Installation Manual (XEC300-0-0-GB-XX). ImproX ECII Product Specification Catalogue (XEC350-0-0-GB-XX). ImproNet Software Quick Start Guide (IXP363-0-0-GB-XX). ImproNet Software Manual (IXP362-0-0-GB-XX). ImproNet WebHelp (IXP393-0-0-GB-XX). The referenced documents are available for download at www.impro.net. Alternatively, contact your Impro dealer for a copy. User Notes
This manual is applicable to the ImproNet Software Suite V7.66 (upwards) (The last two digits of the Impro stock code indicate the issue status of the product).
IXP365-0-0-GB-00 Issue 01 Aug 2010
ImproNet\English Manuals\LATEST ISSUE\CustomR-swm-en-01.docx
IXP365-0-0-GB-00
August 2010
Page 8