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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Problems with lazy loading in containers and tabs

ZbigniewK
9-Granite

Problems with lazy loading in containers and tabs

I have mashup, where I have 1st container with a button, second with tabs, and in first tab I have mashup container with mashup AAA inside. Do not want to present this internal container, until button is not pushed.

1.PNG2.PNG

Case 1. I set tab ptcs-tabset-6 # 1, lazy loading true. I set connection of clicked button to Load Container. I open mashup... and see inside of mashup AAA  just after I've loaded mashup, without clicking button. 


Case 2. This same structure, but this time tab ptcs-tabset-6 # 1, lazy loading false (unticked), container 3 lazy loading true, ptcs button 5 connected with Load Container for container 3. 

3.PNG

This time it works perfectly.
So I create similar structure inside my already existing mashup. Do it with this same mashup.

ZbigniewK_0-1714480341831.pngZbigniewK_1-1714480356946.png

I load mashup, click button... and I see tabs, but do not see mashup from mashup AAA. Logs confirms, service called by mashup AAA OnLoad is also not started. 
Why case 1 is not working? 
What can be wrong with on mashup already existing?
TWX ver 9.5.1-b359

 

 

 

 

1 REPLY 1
DanZ
15-Moonstone
(To:ZbigniewK)

From Using Lazy Loading in a Mashup (ptc.com)

"Lazily loaded containers within the Tabs widget are automatically loaded, unloaded, and reloaded when you switch to a tab that is configured for lazy loading."

 

Since the Tabset widget will automatically select one tab, it will trigger the event to actually load the (lazy load) mashup inside of it. But I am not sure about the behavior in your existing mashup.

Top Tags