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

Session Variable Change Not Firing Event

SOLVED
Highlighted
Participant

Session Variable Change Not Firing Event

Hi All,

 

I'm trying to fire an event when a session variable is changed, but nothing seems to happen.  I set up the variable and bound the changed event to a service, but when I update the session variable via a service, nothing happens.  I did confirm that the variable is being updated.  I'm using 8.5.3 and I found this:

 

https://www.ptc.com/en/support/article/CS290680?&language=en&posno=1&q=SetGlobalSession%20value%20se...

 

Which is the same issue I appear to be having.  I was just wondering if anyone else has noticed the same issue -- as I'm probably doing something wrong. 

 

I'm trying to implement:

 https://www.ptc.com/en/support/article/CS314806?&language=en&posno=2&q=thingworx%20service%20session...

Option 1


Thanks!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Session Variable Change Not Firing Event

This has somewhat been solved. I talked to a smart colleague who pointed me in a different direction. He suggested setting the variable via a mashup function and that seemed to do the trick!

 

Never could get the PTC example to work though.

View solution in original post

5 REPLIES 5
Highlighted

Re: Session Variable Change Not Firing Event

This has somewhat been solved. I talked to a smart colleague who pointed me in a different direction. He suggested setting the variable via a mashup function and that seemed to do the trick!

 

Never could get the PTC example to work though.

View solution in original post

Highlighted

Re: Session Variable Change Not Firing Event

Hi @jimh.

 

Glad you found a solution.  I will have someone look at the articles you referenced for needed updates.  They are both fairly old.

 

Regards.

 

--Sharon

Highlighted

Re: Session Variable Change Not Firing Event

Hi @jimh.

 

One other thing, could you please mark your post containing the solution as the Accepted Solution for the benefit of others with the same question?

 

Regards.

 

--Sharon

Highlighted

Re: Session Variable Change Not Firing Event

Hi @slangley 

 

There isn't a post as we chatted on the phone.  But, the gist of it is:

 

Instead of updating the session variable through the service, updated it through the actual mashup using a function.  So when I want to update the contained mashup, I also fire the mashup function that sends its output to the session variable via the function -- if that makes sense.

Highlighted

Re: Session Variable Change Not Firing Event

Hi @jimh.

 

I have marked one of your posts as the solution.  If you disagree with my choice, please let me know.

 

Regards.

 

--Sharon

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum!