Quantcast
Channel: PTC Community: Message List - Windchill
Viewing all articles
Browse latest Browse all 8876

Re: Update (replace) primary content

$
0
0

I am using this code now:

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

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

ContentHolderHelper.deleteContents(document, contentItem);

ContentHolderHelper.setContents(document, byteArray, ContentRoleType.PRIMARY, "name", "", false);


Viewing all articles
Browse latest Browse all 8876

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>