 Durai26
		
			Durai26
		
		
		
		
		
		
		
		
	
			05-03-2023 11:01 AM
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
 panta1978
		
			panta1978
		
		
		
		
		
		
		
		
	
			05-05-2023 12:22 PM
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.
05-06-2023 06:18 AM - edited 05-06-2023 06:19 AM
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
 panta1978
		
			panta1978
		
		
		
		
		
		
		
		
	
			05-06-2023 06:28 AM
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.