Page 1 of 1

Expression varaibles are not updated

Posted: Thu Aug 01, 2019 12:00 pm
by kaveh
Hello,
I'm trying JS edition with HTML5 designer.
i created a variable (name=value) initialized by expression : jobsampleassayresults.Value
then i put a databand connected to datasource : jobsampleassayresults
when i try to print {value} on each row of databand it just repeats the first value of dataset and it's not updated according to dataset row.
i can not use the field value directly because i need some complex calcualtion.

Thanks

Re: Expression varaibles are not updated

Posted: Fri Aug 02, 2019 7:08 pm
by rbravoz
Kaveh,
I had that same problem. I solved it using a calculated column instead of the variable.

Re: Expression varaibles are not updated

Posted: Mon Aug 05, 2019 9:20 am
by Lech Kulikowski
Hello,

Thank you for the provided solution.

Re: Expression varaibles are not updated

Posted: Mon Aug 05, 2019 2:26 pm
by kaveh
rbravoz ,
Thanks for your solution, i tried it's working on databands, but
unfortunately i couldn't use it for BeforePrintEvent, it seems just variables can be used in events not the datasource fieldnames.
for eg. i have to set the left value of an object in BeforePrintEvent according to a field value.
if you suggest any solution for my problem, i really appreciate.

Re: Expression varaibles are not updated

Posted: Tue Aug 06, 2019 9:54 pm
by Lech Kulikowski
Hello,

Please try to set the ReadOnly property for the variable.

Thank you.