DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Get the value of expression used in report template

Hi,

 

I want to load the existing report template and want to fetch a maximum Ychannel value. But the Y channel is managed as expression in template, how to get the maximum Y channel value.

 

Y channel expression varies with template file.

 

Example:

 

Ychannel expression used in template: @@iif(Data.Root.ActiveChannelGroup.Channels.Exists("Ch1"), Data.Root.ActiveChannelGroup.Properties("Ch2").Value, "")@@

 

Durai26_0-1689014508974.png

 

How to get the maximum Y value?

 

regards,

Durai

 

0 Kudos
Message 1 of 3
(1,550 Views)
Data.Root.ActiveChannelGroup.Channels(1).Maximum
0 Kudos
Message 2 of 3
(1,519 Views)

I want to read the expression in report template and the answer of expression needs to be saved in a variable.

 

Expression in template: @@iif(Data.Root.ActiveChannelGroup.Channels.Exists("Ch1"), Data.Root.ActiveChannelGroup.Properties("Ch2").Value, "")@@   

 [ channels names and conditions will vary with respect to template loaded].]

 

Script to read the expression used in template and load the value of expression to variable.

 

ExpValue = script to read value comes from the expression.

 

regards,

Durai

0 Kudos
Message 3 of 3
(1,512 Views)