How can I store the actual document length in IBM Content Manager OnDemand (CMoD) if using ODWEK API ODFolder.storeDocument() to load document?

Technote (FAQ)


Question


I am using the IBM Content Manager OnDemand Web Enablement Kit (ODWEK) API ODFolder.storeDocument() to load documents into IBM CMoD server. The actual document length is not stored in IBM CMoD internally. If I use the ODHitProperties.getLength() API to get the actual length of the document, the value returned is 0.

How can I store the actual document length in IBM CMoD server, and retrieve it correctly?

Cause

If using IBM Content Manager ODWEK API ODFolder.storeDocument() to load documents into IBM CMoD server, the actual document length will not be stored as an internal property.

The ODHitProperties class is used to obtain the OnDemand internal property value of documents in the search result list. That is why using the ODHitProperties.getLength() API does not correctly return the actual length of the document, which is loaded via the ODFolder.storeDocument() API.


Answer

If the document is loaded via the ODFolder.storeDocument() API, in order to get the correct document length from CMoD server, a new field needs to be created in the application group to store the actual document length and to be used for retrieval.


Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Content Manager OnDemand for Multiplatforms
Loading Data

Software version:

8.4, 8.5, 9.0

Operating system(s):

AIX, HP-UX, Linux, Linux zSeries, Solaris, UNIX, Windows

Reference #:

1612143

Modified date:

2013-02-08

Translate my page

Machine Translation

Content navigation