DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

use of formulated channel names in table and Chart

In a report template,

I want use the channel value in a table but the channel name is not fixed, its subjected to change with respect to channel custom property value.

 

Channelname =*_speed

* is a prefix, the value of * comes from "Test_Type" which is channel custom property.

Sometime, Test_Type is "variable" ==> then channel name to be used is "variable_speed"

Sometimes, Test_Type is "constant"==> then channel name to be used is "constant_speed"

 

 

I don’t want to use any script. Expecting a way to do it in template itself.

 

Table:  Data.GetChannel("/*_speed").Properties("maximum").Value

 

Similarly for chart also,

X axis = /*_speed

 

Any suggestions will help a lot.

Thanks in advance.

 

Regards,

Durai

0 Kudos
Message 1 of 4
(1,247 Views)

If I understood it correctly, this can work:

*/*_Speed

 

There is an extra * at the beginning of the string; it means "any groups"

If there are more than one channel with such name, the first is selected.

 

Hope it helps.

0 Kudos
Message 2 of 4
(1,201 Views)

Hi,

 

Thanks for your response.

 

*/*_Speed will not fulfil the requirement. 

[2]/*_Speed

For example, in my 2nd group, there will be multiple channel with suffix "Speed".

     A_Speed

    B_Speed

    C_Speed

    Start_Speed_point

    Peak_Speed_point

 

The custom property value of that group will help me to identify which channel to choose.

Custom property=Test_Type

Custom Property value = "B"

 

then my report template need to use  B_Speed

 

I want to achieve this in template itself. Any other suggestions.

 

regards,

Durai

 

0 Kudos
Message 3 of 4
(1,175 Views)

I see... I think you have no choice but to use a script, but let's see if someone else comes up with some ideas to achieve what you need without scripts.

 

 

0 Kudos
Message 4 of 4
(1,165 Views)