This topic is locked

before display event

12/8/2011 3:04:06 PM
PHPRunner General questions
F
Francesco_5000 author

Hi i'm trying to insert a new field in a report page; i've read this topic: http://www.asprunner.com/forums/topic/17907-calculation-from-a-column-total-on-report/ so, considering that i see {$si_id_sito_value} when i switch to HTML mode in the visual editor, i use this code:



$i1 = $xt->getvar("si_id_sito_value");
$xt->assign("multi",$i1);


in the before display event, then i put {$multi} in a cell of the report page, but i can't see anything :-( . If i try something like this:



$i1 = 'ciao';
$xt->assign("multi",$i1);


everything works fine and the string is displayed, but for some reason I can't use( or manipulate) the variables normally shown in the report page. Generally speaking i'm wondering if there is another way to use those variables.
Note: I'm using PHPRUNNER 5.3 BUILD 7474.