Skip to main content
17-Peridot
May 19, 2023
Question

No events available before the Mashup loads

  • May 19, 2023
  • 3 replies
  • 2160 views

Hi Folks,

 

I have a requirement to show some loading message/gif before the mashup loads. I have tabs selection with lazy loading which takes some time to load the content (expected) once a tab is selected and want to show loading message/gif between this tab click and content load and message disappears once the Mashup load event is completed. But I don't see any event/service to trigger this message display before the mashup load. I can see SetGlobalSessionStringValue being invoked but that's an internal resources call and not part of Mashup design.

 

Any idea?

TIA.

 

TanmeyTWX_0-1684481330593.png

 

 

 

3 replies

19-Tanzanite
May 19, 2023

Hi @TanmeyTWX 

 

You can try to create a popup that shows the loading gif on Mashup load. Once your service execution is completed you can close the popup. 

 

For this, you need to use the expression to validate the service completion status. I create small demo entities that might be helpful for you.

 

/VR

TanmeyTWX17-PeridotAuthor
17-Peridot
May 19, 2023

Hi Velkumar,

 

Thanks for the revert.

I know how to put a loading indicator for the long service execution. My query is little different here.

I want to trigger the popup or whatever the placeholder is, before the mashup load event. once the mashup loads I don't have any long running services but mashup load itself takes sometime due to lazy loading.I believe that's not possible but still want to check if something can be done at platform level.

16-Pearl
May 23, 2023

Can you somehow show the loading indicator by default and hide it on MashupLoaded-event?

Maybe the contained mashup you want to load can have no visibility and on MashupLoaded you toggle "loading indicator" with "contained mashup" visibility? But to be honest, I'm not sure if a non visible mashup would even "load" as expected hm. Could be worth a try?

 

17-Peridot
May 22, 2023

Hello,

 

Can't you use the "TabSelected" event to trigger your loading gif or message?

jensc_0-1684756478744.png

Not sure if I entirely follow the flow of events that you have.

But my understanding is that you have a contained mashup in a tab that you use lazy loading on.

In that case you should be able to use the tabs selected event to trigger your message.

However I do not know how you would then close it once the mashup has been loaded... Perhaps by using a session parameter event?

 

Hope this helps.

 

Regards,

Jens

Community Manager
June 8, 2023

Hi @TanmeyTWX.

 

Since the lazy loading is occurring in a relatively short period of time in your case, why would you need a gif as opposed to the OOTB functionality that indicates the load is occurring?   Keep in mind that with lazy loading, you're not doing a full load requiring the possibility that calls will be occurring more often which will also impact performance and may frustrate your users.

 

Possibly, we're not understanding your use case.  Can you provide some details around that?

 

Regards.

 

--Sharon