Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can i get the contents of a compound document with LAPI?

Status
Not open for further replies.

smallredville

Programmer
Aug 18, 2008
115
SG
Hi All,

I would like to know if there is any way for me to use LAPI to get the contents/children of a compound document?

What I can think of for the time being is to access the DTREE table and do a select statement. But this approach will eat up a lot of resources.

I hope someone who knows about it, can share with me the idea to do it.

Lastly, many thanks in advance,
Devit
 
ListObjects gets children of compound documents the same way like it does for folders (or other containers). You can use XMLExport to get the children too. The description of the methods is in the LAPI SDK.

ListObjects: VolumeID=..., NodeID=..., ViewName='DTree'
XMLExport: NodeID=..., Options=A<1,?,'Scope'='one'>

For new applications you should consider using the web services instead of LAPI (in this case DocumentManagement:ListNodes).

If you install the latest secutity patches for LL core, you will find ListObjects turned off by default. After cursing the "experts" who did it, you can look at for a solution. (Another solution could be to use the method DocumentManagement:ListNodes from web services via LAPI. LES WS are implemented as a thin layer above LAPI which you can call from your client too. It is available in LES 9.7.1 and newer.)

-- Fedinand Prantl

Ferdinand Prantl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top