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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

How can we pass parameters to an app which is rendered in IFrame. ?

vvaidya1
7-Bedrock

How can we pass parameters to an app which is rendered in IFrame. ?

Hi All,

 

We wanted to pass parameters to our application which is rendering in an iFrame of external application (build on angular). We wanted to utilize window.postMessage() API as part of iFrame contract where we can send information from external application to thingworx app.

 

 

Is it possible ? 

 

Thanks and regards,

Vishal Vaidya

1 ACCEPTED SOLUTION

Accepted Solutions

Just a couple ideas:

 

1. You could pass parameters in through the iframe URL.  Just construct the URL in a TWx service with your param values and bind it to the iframe

 

2.  For using the window.postMessage(), have you tried using an expression?  

 

Hope that helps! 

Nick

View solution in original post

2 REPLIES 2

Just a couple ideas:

 

1. You could pass parameters in through the iframe URL.  Just construct the URL in a TWx service with your param values and bind it to the iframe

 

2.  For using the window.postMessage(), have you tried using an expression?  

 

Hope that helps! 

Nick

slangley
23-Emerald II
(To:vvaidya1)

Hi @vvaidya1.

 

If the previous response allowed to find a solution to your issue, please mark it as the Accepted Solution for the benefit of others in the community.

 

Regards.

 

--Sharon

Top Tags