207
Views
3
Comments
passing token to iframe outsystems web page
Question

hello everyone, 

I have developed a web page through outsystems that I want to embed into an existing page this is working fine but I want to be able to pass a token from the preexisting web page to the outsystems web page but I'm not sure how to go about doing this. 

I'd be thankful for any kind of help thanks!

2021-08-12 11-00-27
Nordin Ahdi
 
MVP

Hi Johara,

Is the existing page also build in OutSystems? If so, check out Eduardo’s solution post:

https://www.outsystems.com/forums/discussion/37296/iframe-web-pattern/

If it’s not built with OutSystems, same thing still applies. You can just add an input parameter (e.g. param Token) to the OutSystems webscreen that you’ll be placing inside the iFrame. From the existing site you can call the Outsystems page URL inside the iFrame: https://environment/ModuleName/Websreen.aspx?Token= + TokenValue.

Hope this helps!

Regards,

Nordin

UserImage.jpg
johara khalid

Nordin Ahdi wrote:

Hi Johara,

Is the existing page also build in OutSystems? If so, check out Eduardo’s solution post:

https://www.outsystems.com/forums/discussion/37296/iframe-web-pattern/

If it’s not built with OutSystems, same thing still applies. You can just add an input parameter (e.g. param Token) to the OutSystems webscreen that you’ll be placing inside the iFrame. From the existing site you can call the Outsystems page URL inside the iFrame: https://environment/ModuleName/Websreen.aspx?Token= + TokenValue.

Hope this helps!

Regards,

Nordin


Sorry for the late reply, thanks for the answer! 

I do have a question though the field of the token I want to pass could have different values could I use the same method you mentioned but assign the field I am interested in instead of the value(pass whatever is in that field to the input parameter)?

2021-08-12 11-00-27
Nordin Ahdi
 
MVP

Hi Johara,

Yes you could since the SourceURL property of the iFrame widget accepts expressions. 

In the screenshot below you can see an example. 

  • The iFrame widget is placed in the GetTokenScreen which has a TokenValue local variable. 
  • In the iFrame SourceURL property I'm calling the PassTokenScreen which has a Token input parameter.
  • Finally I append the TokenValue local variable in the SourceURL property by adding '+ TokenValue' after the URL.

Hope this helps!

Regards,

Nordin

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.