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.
How to set the group header band expression by variable
-
- Posts: 1
- Joined: Wed Oct 24, 2018 8:40 am
-
- Posts: 6244
- Joined: Tue Mar 20, 2018 5:34 am
Re: How to set the group header band expression by variable
Hello,
Please try to use
report.dictionary.variables.getByName("variable1").valueObject = "{employee.RelationCompany.name}";
Thank you.
Please try to use
report.dictionary.variables.getByName("variable1").valueObject = "{employee.RelationCompany.name}";
Thank you.