Difference between revisions of "RReportGenerator on the Web"

From Wikili
Jump to: navigation, search
(New page: RReportGenerator is also available through a web interface. [http://lbgi.igbmc.fr/rreportgenerator http://lbgi.igbmc.fr/rreportgenerator] ==Installation== The main tcl program rrg...)
 
Line 5: Line 5:
 
==Installation==
 
==Installation==
  
The main tcl program rrg.tcl remains nearly unchanged, it
+
The main tcl program '''rrg.tcl''', written by Luc Moulinier, remains nearly unchanged. We replaced the call to 'main' withfollowing lines :
 +
<source lang="tcl">
 +
global env
 +
if {! [info exists env(QUERY_STRING)] && $argv=={}} {
 +
    package require Tk
 +
    main
 +
} else {
 +
    source "[file dirname [info script]]/rrg_web.tcl"
 +
    MainWeb
 +
}
 +
</source>
 +
 
 +
* 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.

Revision as of 14:33, 25 August 2010

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.