RReportGenerator on the Web

From Wikili
Revision as of 13:33, 25 August 2010 by Ripp (talk | contribs)
Jump to: navigation, search

RReportGenerator is also available through a web interface.

 http://lbgi.igbmc.fr/rreportgenerator

Installation

The main tcl program rrg.tcl, written by Luc Moulinier, remains nearly unchanged. We replaced the call to 'main' withfollowing lines :

global env
if {! [info exists env(QUERY_STRING)] && $argv=={}} {
    package require Tk
    main
} else {
    source "[file dirname [info script]]/rrg_web.tcl"
    MainWeb
}
  • We should find a better way to test if it concerns http ...
  • If no web rrg.tcl requires the package Tk and runs normally
  • If launched by the web server, rrg.tcl sources the additional file rrg_web.tcl and sends a html page to the web browser.
  • Any action from the user through his web browser will rerun rrg.tcl, the arguments are always transfered within the web page and users queries, avoiding use of session variables.

Where are the files located?

The rrg.tcl has to be in a directory accessible by the web server.