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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. 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