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
Text Value with conditions
-
- Posts: 6254
- Joined: Tue Mar 20, 2018 5:34 am
Re: Text Value with conditions
Hello,
In the JS version, you can use only functions from the dictionary and expressions. Code in events is not supported.
Thank you.
In the JS version, you can use only functions from the dictionary and expressions. Code in events is not supported.
Thank you.