Skip to main content
1-Visitor
January 6, 2010
Question

Get Primary Content for WTDocument

  • January 6, 2010
  • 3 replies
  • 1618 views
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

1-Visitor
January 6, 2010
on the details page under the Attributes and Content pick in the General
Third Level Navigation pull down

jv83421-VisitorAuthor
1-Visitor
January 6, 2010
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
23-Emerald I
January 6, 2010
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);