Computed Attributes when edited contain erroneous text

visiondrive6 years ago

See attached - when I create a new or edit an existing Computed Attribute additional text is added rendering the rule inoperative - wondering why?

So this:

in1 ? "SOS PANIC ALARM" : null

Turns into this:

in1 ? "SOS PANIC ALARM" : null

https://my.pcloud.com/publink/show?code=XZdmbT7Z80M439qGJwX5nmPRoM2zRJLz9bFV

Anton Tananaev6 years ago

It shouldn't be a problem. Escaping is only done when expression is sent to the web app. Back-end still uses original code.

visiondrive6 years ago

Understood - but when I go to test the CA it reports an error and I need to edit and remove the additional text and then test. This is required every time you want to test the CA against a device.

Anton Tananaev6 years ago

There can be a problem is you re-save modified attribute. Don't do it or make sure you un-escape characters.

visiondrive6 years ago

Not sure I follow - I have been able to edit, test and save CA's before now with no problems.

See video linked here for what I am seeing after editing an entry, testing, saving and then editing again.

https://my.pcloud.com/publink/show?code=XZLSbT7ZwYCe14Cq6iFfsQJIFmlIR7jU4007