Skip to main content
12-Amethyst
May 8, 2024
Solved

How to check if mashup is opened as popup?

  • May 8, 2024
  • 1 reply
  • 1011 views

Hey,
im currently working on TWX  9.4.1-b313.

I was wondering, if there is a way to check if the current mashup is opened as popup/modal popup?

 

Thanks in advance 

Markus

 

Best answer by wcui

Hi @Markus_Neini 

I am afraid there is no such functionality for Mashup to tell if it is opened as popup or not.

But you can refer to below article, add a Mashup parameter and let caller set this parameter when opening mashup as popup.

https://www.ptc.com/en/support/article/CS401845

 

We are also interested in the reason of your request. Please share the background so we may find other possible workarounds. Thanks.

1 reply

wcui16-PearlAnswer
16-Pearl
May 9, 2024

Hi @Markus_Neini 

I am afraid there is no such functionality for Mashup to tell if it is opened as popup or not.

But you can refer to below article, add a Mashup parameter and let caller set this parameter when opening mashup as popup.

https://www.ptc.com/en/support/article/CS401845

 

We are also interested in the reason of your request. Please share the background so we may find other possible workarounds. Thanks.

12-Amethyst
May 13, 2024

Hi,


I'm currently creating a mashup that can be opened as a new page or popup window. The mashup behaves differently depending on the window type. A back/close button should either close the window or return to a home page.

I'm currently working with a self-created mashup parameter "IsPopup" (Bool) and just wanted to find out whether there might be an official way to achieve this.

I did not find anything about it in my research. T _ T

 

Best regards

Markus