Page 1 of 1
report Variables issue
Posted: Sat Sep 19, 2020 9:15 am
by Ehsan
Hi
In my reports, when I click on headers with sort ability, my text boxes with variable value clear
thank you
Re: report Variables issue
Posted: Mon Sep 21, 2020 10:45 am
by HighAley
Hello,
Could you describe your issue more detailed with samples?
Thank you.
Re: report Variables issue
Posted: Wed Sep 23, 2020 6:04 am
by Ehsan
Hi
please see the attached sample report
you see my variable textbox on top of report,
then try to click on company header column,
you will see the my variable textbox content will clear,
thanks
Re: report Variables issue
Posted: Wed Sep 23, 2020 9:35 am
by HighAley
Hello,
The value is not stored in the dictionary and replaced with the default value on interactive sorting.
You should set the value of the variable with the next code:
Code: Select all
report.load(reportObject);
report.dictionary.variables.getByName("myVar").valueObject = "my variable";
Thank you.