This topic is locked

Getvar - no documentation and not working

6/25/2017 6:28:22 AM
PHPRunner General questions
mbintex author

Hi,
I try to follow this tip:
Getvar tip
I have the variable in the html code and it works with fixed text. But as soon as I try to get a variable, nothing appears.
Code for beforeDisplay event is

$saldo = $xt->getvar("groupAbrechnungskonto_totalAnteil_sum");
$xt->assign("saldo",$saldo);


It doesn´t work on the report page nor the print page.
Sadly the alternative Getrecord doesn´t work either:

$data = $pageObject->getCurrentRecord();
$abrechnung=$data["Abrechnung"];
$xt->assign("message",$abrechnung);


returns nothing although the field "Abrechnung" does contain data.
Why can "getvar" not be found in the documentation? I am using 9.7 phprunner.