need some expression samples

Stimulsoft Reports.JS discussion
Post Reply
tevhitkocabey
Posts: 2
Joined: Tue Nov 02, 2021 8:45 am

need some expression samples

Post by tevhitkocabey »

hello,
i am a consultant, and i need some expression samples.
we use report.js (Version 2019.3.2 from 17 June 2019, JS) to our web project with angular12.

below there i find some of your entry, i just need some samples like this.
viewtopic.php?t=36666

can you give me some syntax samples?
is our versiyon too old for this?

below there i tried an expression, report file is attached.

if ( report_fields.origin == "Turkey" )
Image1.Enabled = true;
else
Image1.Enabled = false;
Attachments
panel1.beforeprint.PNG
panel1.beforeprint.PNG (113.8 KiB) Viewed 662 times
Raf Etiketi A4_beforeprint.mrt
(16.25 KiB) Downloaded 84 times
Lech Kulikowski
Posts: 6237
Joined: Tue Mar 20, 2018 5:34 am

Re: need some expression samples

Post by Lech Kulikowski »

Hello,

The simple way - is use the Conditions with the "Component Is Enabled" option:
https://www.youtube.com/watch?v=jo5AMul ... Stimulsoft

Thank you.
tevhitkocabey
Posts: 2
Joined: Tue Nov 02, 2021 8:45 am

Re: need some expression samples

Post by tevhitkocabey »

hi,
thank you for your reply.
trust me i need hard way.

first;
with in one condition i can enable many items, maybe image1 then text1 then change the barcode1 code field.
barcode.png
barcode.png (24.81 KiB) Viewed 653 times
second;
below there my web application pictures.
jdemo.expression.PNG
jdemo.expression.PNG (105.12 KiB) Viewed 653 times
as i told you before, there is no data source or any other function samples.
on the other hand your youtube video, pages are definitly diffrent and right side of the text page the is all we need.
is this differences becouse youtube sample from your desktop solution and my sample from web solution ?
youtube sample.png
youtube sample.png (526.13 KiB) Viewed 653 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: need some expression samples

Post by HighAley »

Hello,

We need some additional information to help you.
Please, write us and we will help you.
https://www.stimulsoft.com/en/support

Thank you.
Post Reply