AnsweredAssumed Answered

Analyses template : convert a string to a valide reference of a tag

Question asked by JeromeTERRIER on Apr 26, 2018
Latest reply on Apr 30, 2018 by Nick Pabo-Eulberg

hello.

I'd like to use a reference with a variable in a trigger of an event frame..

But i'm not able to convert the string to a valid reference of a tag.

 

Exemple : the trigger i'd like to have is : '.\OA01|OA__Bal_Alim_al_Vit'=1

Value type of OA__Bal_Alim_al_Vit  = double

But i want to use a variable to define the number 1 of "OA01".

 

Actually, i put this formula in a variable of the event frame.

 

Variable :

Element = Concat("'.\OA0",Mid('CODE_TAG_BODY',6,1),"|OA__Bal_Alim_al_Vit'")

The result of Mid('CODE_TAG_BODY',6,1) is 1 or 2 or 3...depend of the element.

 

Start trigger :

Element = 1

 

It doesn't work.

is there a formula for converting a string to a tag reference ?

 

Thanks

Outcomes