Workspace viewport does not load page collection

denmanty
Tera Expert

Hi There,

 

I have created a page collection that I would like to re-use across multiple landing pages. 

I have followed the docs article on how to add a view port, except I have added an event on the body of the landing page to hopefully load the viewport/page collection.

The event added to the body is a Page ready event > UXF Macroponent Viewport Load Requested and I have set the viewportElementId property to the id of the viewport.

When loading the landing page i get the following message displayed, "No content available. Contact your ServiceNow administrator for more information."

 

What is the best way to show a page collection when a page loads?

 

I have also tried using sub-pages and tabs and I get the same issue, there is no audience on any of the pages.

References:
Add a viewport component to your page (servicenow.com)

Release > Utah

1 ACCEPTED SOLUTION

denmanty
Tera Expert

In case anyone else runs into the same issue.

 

Add the page collection name as the route on the UXF Macroponent Viewport Load Requested event.

So to get the viewport . page collection to load when the landing page loads.
Add an event to the body of the page where you would like to use the viewport
Even details > Page ready > UXF Macroponent Viewport Load Requested
Update the object in the event

viewportElementId: "<this is the id of the viewport>"
route: "<this is the URL path of the page collection found on the Page settings>"

 

View solution in original post

2 REPLIES 2

denmanty
Tera Expert

In case anyone else runs into the same issue.

 

Add the page collection name as the route on the UXF Macroponent Viewport Load Requested event.

So to get the viewport . page collection to load when the landing page loads.
Add an event to the body of the page where you would like to use the viewport
Even details > Page ready > UXF Macroponent Viewport Load Requested
Update the object in the event

viewportElementId: "<this is the id of the viewport>"
route: "<this is the URL path of the page collection found on the Page settings>"

 

prerna14
ServiceNow Employee
ServiceNow Employee

Still it did not work. Any alternative?