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 PTC Community Badges. Engage with PTC and see how many you can earn! X

Get Primary Content for WTDocument

JIMVANDRAGT
1-Visitor

Get Primary Content for WTDocument

Good Day All!

How does one obtain the name of the primary content of a WTDocument? I
have a WTDocument object but can't seem to find the name of the primary.

TIA

Jim Van Dragt
Information Technology
Herman Miller Inc.
616.654.5285 - Office
616.836.8394 - Cell

3 REPLIES 3

on the details page under the Attributes and Content pick in the General
Third Level Navigation pull down

So sorry. I forgot to mention within the Java API.

Jim Van Dragt
Information Technology
Herman Miller Inc.
616.654.5285 - Office
616.836.8394 - Cell





Stephen Cord <->
01/06/2010 02:04 PM

To
Jim VanDragt <->
cc
-
Subject
Re: [solutions] - Get Primary Content for WTDocument






on the details page under the Attributes and Content pick in the General
Third Level Navigation pull down

avillanueva
22-Sapphire II
(To:JIMVANDRAGT)

I used this for secondary content

private void processPlotFiles(WTDocument doc)

{

log.debug("entering processPlotFiles");

log.debug("processing " + doc.getNumber());

try {

Vector<applicationdata> secondaryFiles=null;

ContentHolder holder =
ContentHelper.service.getContents(doc);

secondaryFiles=ContentHelper.getApplicationData(holder);

log.debug("Found " + secondaryFiles.size() + " secondary
Files");

for(ApplicationData temp : secondaryFiles)

{

log.debug("Processing secondary content file " +
temp.getFileName());

...



Now the primary content is a ContentItem like anything else so....

ApplicationData primary = ContentHelper.getPrimary(doc);
Announcements


Top Tags