cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Expression code not saving

Highlighted
Regular Member

Expression code not saving

I'm trying to create an expression that simply takes a number (called 'shift') and returns a string like the following:

 

"This Shift ([shift])"

 

I tried creating an expression that takes 'shift' as an input and the expression code is simply:

 

 

"This Shift (" + shift + ")"

 

 

However, every time I try to create this expression, the expression code is empty the next time I open it and it doesn't actually work. 

5 REPLIES 5

Re: Expression code not saving

What version of Thingworx are you using?

What you are doing looks correct, maybe try: result = ... or ' vs "

Re: Expression code not saving

I'm on 8.4.4.

 

I tried all combinations of using single quotes/double quotes and doing "result = " and none of that worked.

Re: Expression code not saving

Are you using the new capability that is in the bottom right pane to create the expression?

The expression widget has been deprecated

 

I did try this and it was working fine for me, so I would file a ticket if it isn't working for you.

Re: Expression code not saving

Yes, I'm using the expression pane, not an Expression Widget.

Re: Expression code not saving

Hello @mdszy ,

 

It definitely looks like a good candidate for the Tech Support case. Meanwhile, just as a potential workaround suggestion -- try to export your Mashup as XML, modify the Expression code in the XML and import it back.

 

/ Constantine