Skip to main content
16-Pearl
March 13, 2019
Solved

Session variable does not seem to retain value

  • March 13, 2019
  • 1 reply
  • 3913 views

To test that it is not retaining value, I bound it in the following ways in the same mashup.  Nothing displays in the label.

1.  List widget (Service (SelectedRow(String))) ==input==> Session variable (String) ==output==> Label widget

2.  Textbox widget (Text (String)) ==input==> Session variable (String) ==output==> Label widget

 

When I bypass the Session variable, it works fine.  The label displays the string from list/textbox widget.

1.  List widget (Service (SelectedRow(String))) ==> Label widget

2.  Textbox widget (Text (String)) ==> Label widget

 

Thingworx 8.4.1

Best answer by Willie

Hi Vanessa,

 

I am confirming that it started working again without making changes on my end.

1 reply

22-Sapphire I
March 14, 2019

So you are saying that when you make a selection or type in the text box that is wired to the session parameter and then back to your label, they do not show the value that you input?

Or if you are checking actual retention, I would create another mashup that has

session parameter -> label and open that one after you've set the values

Willie16-PearlAuthor
16-Pearl
March 14, 2019

"So you are saying that when you make a selection or type in the text box that is wired to the session parameter and then back to your label, they do not show the value that you input?"

Yes

 

I have a different mashup that I want to use the session variable for but since it wasn't working, I decided to test if it would even work in the same mashup.  I have other session variables that work but they were created before upgrading to Thingworx 8.4.1.  I'm not sure if it's related but after upgrading to Thingworx 8.4.1, new session variables do not seem to work.

 

Please see the attached.