home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cadre Technologies Inc. 1995
- #
- # File: %W%
- # Author: Challenger
- # Description: Start script for converted reports. It should
- # be sourced with the desired report as argument.
- # fe: otsh -b report -f startreport.tcl -- projects.tcl
- # Needed files: $M4_home/reports/rwsource.tcl
- # $M4_home/reports/classDefs.tcl
- # $M4_home/reports/t_<tablename>.tcl
- # $M4_home/reports/fillTables.tcl
- # $M4_home/reports/convtools.tcl
- # Notice: It is not recommended to use this code or the old
- # report language to write new reports.
- #
- #---------------------------------------------------------------------------
- # SccsId = %W% %G% Copyright 1995 Cadre Technologies Inc.
-
-
- # set global variables
- #
- set CC [ClientContext::global]
- set CurrentLevel [$CC currentLevel]
- set Corporate [$CC currentCorporate]
- set Project [$CC currentProject]
- set ConfigVersion [$CC currentConfig]
- set PhaseVersion [$CC currentPhase]
- set SystemVersion [$CC currentSystem]
- set FileVersion [$CC currentFile]
- set Arguments $Options
-
-
- # source necessary scripts
- #
- eval [$cc getCustomFileContents classDefs tcl reports]
- eval [$cc getCustomFileContents fillTables tcl reports]
- eval [$cc getCustomFileContents convtools tcl reports]
- foreach table [usedTables] {
- eval [$cc getCustomFileContents t_$table tcl reports]
- }
-
-
- # fill used tables and create indexes on them
- #
- fillTables
- createIndexes
-
-
- # execute converted report
- #
- doIt
-