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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Primary content

VasiliyRepecki
12-Amethyst

Primary content

Hi.

My WTDocumets and EPMDocuments have primary content.

But wt.content.ContentHelper.getPrimary(contentHolder) method returns null for all of them.

Why?

ACCEPTED SOLUTION

Accepted Solutions

Resolved.

ContentHolder refreshedContentHolder = ContentHelper.service.getContents(contentHolder);

ContentItem contentItem = ContentHelper.getPrimary((FormatContentHolder) refreshedContentHolder);

works fine.

View solution in original post

1 REPLY 1

Resolved.

ContentHolder refreshedContentHolder = ContentHelper.service.getContents(contentHolder);

ContentItem contentItem = ContentHelper.getPrimary((FormatContentHolder) refreshedContentHolder);

works fine.

Announcements


Top Tags