How to set the group header band expression by variable

Stimulsoft Reports.PHP discussion
Post Reply
adam husaini
Posts: 1
Joined: Wed Oct 24, 2018 8:40 am

How to set the group header band expression by variable

Post by adam husaini »

I want to set variable to the expression in group header band condition. Before this, i put {employee.RelationCompany.name} as expression and its work. But now, I make a user to choose what they are want to grouping. I make a new variable as "variable1". In group header band expression, I set as {variable1}.

in designer.php
report.loadFile("reports/employees.mrt");
report.dictionary.variables.getByName("variable1").valueObject = "employee.RelationCompany.name";

can someone help me to solve this one? or maybe in others way.
Lech Kulikowski
Posts: 6244
Joined: Tue Mar 20, 2018 5:34 am

Re: How to set the group header band expression by variable

Post by Lech Kulikowski »

Hello,

Please try to use
report.dictionary.variables.getByName("variable1").valueObject = "{employee.RelationCompany.name}";

Thank you.
Post Reply