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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Passing data between mashups using the nav function

Ike@ACE
15-Moonstone

Passing data between mashups using the nav function

So, I found this post:

 

https://community.ptc.com/t5/ThingWorx-Developers/Passing-the-data-between-two-different-mashups/td-p/508669

 

However, I have a question. Can you use the navigation function without actually navigating? Can you just have it pass data between two mashups? If not, how can I do this?

ACCEPTED SOLUTION

Accepted Solutions
Ike@ACE
15-Moonstone
(To:ragrawal2)

As much as the coder in me cringes at it, I went with the session variables solution. I really don't like how they are global, though. Is there some way to clear it's data when it is not needed anymore?

View solution in original post

4 REPLIES 4
ragrawal2
12-Amethyst
(To:Ike@ACE)

There is an alternative to achieve this with no need to Navigating, that would be using a Contained Mashup widget and hiding it(Uncheck Visible property)
Please check the article on this link for detailed steps - https://www.ptc.com/en/support/article/CS187026

if this meets your requirement.

As far as Navigation function is concerned, I don't believe it is possible to exchange data between mashups without Navigating.

Other way to do this would be to use session variables as mentioned in the community post link you shared.

Ike@ACE
15-Moonstone
(To:ragrawal2)

As much as the coder in me cringes at it, I went with the session variables solution. I really don't like how they are global, though. Is there some way to clear it's data when it is not needed anymore?

ragrawal2
12-Amethyst
(To:Ike@ACE)

Session variables are written to the database if they're flagged as persistent, however this is not recommended for performance implications, please check this article for more details: https://www.ptc.com/en/support/article/CS275262

Also, it is worth checking Article for Best Practices on using Session Variables on this link - https://www.ptc.com/en/support/article/CS232199 

slangley
23-Emerald II
(To:Ike@ACE)

Hi Ike@ACE.

 

If one of the previous responses answered your question, please mark the appropriate one as the Accepted Solution for the benefit of others with the same question.

 

Regards.

 

--Sharon

Announcements


Top Tags