Skip to main content
7-Bedrock
June 26, 2017
Solved

How to display a "data loading / progress" modal popup on a mashup for long running services ?

  • June 26, 2017
  • 1 reply
  • 7505 views

Hello everyone,

I am trying to display a modal popup through a Navigate widget that displays a static mashup with a simple loading GIF. It, the static mashup, is configured with a mashup parameter and this parameter is the one that I use to trigger the CloseIfPopup event with the personnal ParamChanged event. But whenever the popup opens, it closes instantly and after that the popup does not want to display anymore. And I want to open it a multiple time in the mashup.

I spoke about this to the PTC's support and they said that it is an internal issue and it is reported to the development team. And they have redicted me to consult the community.

In my example I cannot use the Data Loading attribute of a widget ! All I want is to prevent the user from clicking on another part of the mashup because the service called can be very long depending on the query you want to execute !

So I come here to know if somebody have an alternative to this solution ?

Regards,

Antoine LA TORRE

Best answer by CarlesColl

Hi Antoine,

If I understood well, here I've prepared a mockup doing it, hope it helps: Dropbox - SamplePopUpLoadingForLongRunningService.xml

Best Regards,

Carles.

1 reply

1-Visitor
June 26, 2017

Hi Antoine,

If I understood well, here I've prepared a mockup doing it, hope it helps: Dropbox - SamplePopUpLoadingForLongRunningService.xml

Best Regards,

Carles.

alatorre7-BedrockAuthor
7-Bedrock
June 26, 2017

Hi Carl,

I saw what you have made, and it is a great example even better than the PTC support's one, but the difference between my example and yours is that you run the long service inside the popup's mashup. But what I am trying to do is just put a standard popup that is already used and that I can use in further example without changing the popup mashup !

Maybe I have no better option than yours and I will create a new popup mashup with the service inside but it is not the way I wanted to work.

Thanks for your quick answer!

Best regards,

Antoine

1-Visitor
June 26, 2017

If you can have only one long running process per user, you can set a boolean property (let's call it longRunningProcessOn ) on the User Settings and set it to true when you start the long running process, then on the end of the long running process you set it back to false.

Once done this, on the "generic" loading popup, you can use Push Properties ( TW version 7 and up )  in order to get updated when longRunningProcessOn get's back to false and close the pop up, or you can add the autorefresh widget on the loading popup and query for the given property every 5 seconds or alike and when it's back to false ( with a validator widget ) you close the popup, do you get it?