Thanks for you answer, I'm going to use what you recommend.
-------------------------------------------
Original Message:
Sent: Feb 18, 2026 07:15 AM
From: Raphael Franck (DB Systel)
Subject: SPECTRUM, How to save two values of an event variable in two different attributes in the SpectroSERVER database?
Hello Eduardo,
maybe you could create a list (CreateList), add all the required event variables to it (AddTail) and then use a ForEach loop to call WriteAttribute for each element (GetElement). Of course the destination attributeIDs need to be part of the loop as well hence the order of values in the list matters.
hope this helps,
Raphael
Original Message:
Sent: Feb 12, 2026 08:48 PM
From: Eduardo Ignacio Serrano
Subject: SPECTRUM, How to save two values of an event variable in two different attributes in the SpectroSERVER database?
I managed to do it with two variables using "and," however, I can't use more than two variables. I already tried with "if." Do you have a better idea of how to solve this to create the attributes populated with the variables?
Example:
OK
0xfff06288 A 3,0xfff06288,U,76620 P " And ( WriteAttribute( { C CURRENT_MODEL }, { H 0xffff0000 },GetEventVariable( { U 104 } )), WriteAttribute( { C CURRENT_MODEL }, { H 0xffff0001 },GetEventVariable( { U 108 } )), Nil()) "
Failed, 3 attributes
0xfff06288 A 3,0xfff06288,U,76620 P " if ( WriteAttribute( { C CURRENT_MODEL }, { H 0xffff0000 },GetEventVariable( { U 137 } )), WriteAttribute( { C CURRENT_MODEL }, { H 0xffff0001 },GetEventVariable( { U 108 })), WriteAttribute( { C CURRENT_MODEL }, { H 0xffff0002 },GetEventVariable( { U 109 } )), Nil()) "
Thanks, Community.
Regards
Original Message:
Sent: Feb 12, 2026 05:44 PM
From: Eduardo Ignacio Serrano
Subject: SPECTRUM, How to save two values of an event variable in two different attributes in the SpectroSERVER database?
How to save two values of an event variable in two different attributes in the SpectroSERVER database?
I've already reviewed examples of how to add more variables and tried them, but without success. Do you know how to do this, as I need to add 5 variables as attributes?
Thanks, Community.
-------------------------------------------