Text Value with conditions

Stimulsoft Reports.JS discussion
Post Reply
Kline
Posts: 35
Joined: Thu Nov 29, 2018 8:22 am

Text Value with conditions

Post 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
Lech Kulikowski
Posts: 6254
Joined: Tue Mar 20, 2018 5:34 am

Re: Text Value with conditions

Post 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.
Post Reply