Page 1 of 1

GetValue is not fired

Posted: Sat Mar 01, 2008 4:20 am
by Xavier Rubio
Hey guys, only a question:
Isn't GetValue event fired when Text property is fixed text?
For example: I have a Text label with fixed text "Total Tax" and in the GetValue event I have this code:

Code: Select all

if(!Customer.ApplyTax) {e.Value = "No Tax"}
But de label always show "Total Tax", because the GetValue event is not fired. Is this correct?

Thanks.

(I'm using 2006.4 version of Stimulsoft)

GetValue is not fired

Posted: Sun Mar 02, 2008 2:26 am
by Edward
Yes, it is a correct behavior.

If GetValueEvent is defined, then it is always fired. But the default value of the e.Value in this event is the text or result of expression which is defined in the "template" text component.

So if you want to change the default value, please modify your code:

Code: Select all

if(!Customer.ApplyTax) {e.Value = "No Tax";}else {e.Value = "";}
When event is fired e.Value has "Total Tax" value already assigned.

Thank you.