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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Get Primary Content for WTDocument

JIMVANDRAGT
1-Newbie

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