Page 1 of 1

Text Value with conditions

Posted: Wed Dec 12, 2018 4:05 pm
by Kline
Hi,
I need to set the value of Text56 in an expression using these rules:

var STApp = " titolo " + qApportiRitiri.DESTITB + " qtà " + qApportiRitiri.QUANTI + " al prz/valore unitario di ";
if (qApportiRitiri.PREZUNI == 0)
STApp = STApp + qApportiRitiri.RATEON
else
STApp = STApp + qApportiRitiri.PREZUNI;

if (Length(qApportiRitiri.DESCRI) <> 0)
Text56.Text = qApportiRitiri.DESCRI
else if (qApportiRitiri.OPELIR == 'S')
Text56.Text = qApportiRitiri.DESTAB
else if (qApportiRitiri.TIPOMO == 'A')
Text56.Text = qApportiRitiri.DESAVE + STApp
else Text56.Text = qApportiRitiri.DESDAR + STApp;

How can I do it?

Thank you

Re: Text Value with conditions

Posted: Thu Dec 13, 2018 7:41 pm
by Lech Kulikowski
Hello,

In the JS version, you can use only functions from the dictionary and expressions. Code in events is not supported.

Thank you.