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!

How to retrieve filename of documents using listobjects

Status
Not open for further replies.

LivelinkDotnet

Programmer
Jul 5, 2010
18
0
0
IN
Hi ,

when i write LL_Listobjects i have give "DTREE" , but i am not able to GetrecordString function to retrieve filename either application abroptly closed , or it does not return any value. i am able to retrive other values like subtype , ID. Shall i set viewname VBNULLSTRING will it return all values ? please help

 
Usually the view called webnodes or the table called dtree can be used.if you want it filtered for only folders in sql you will write it like this

select * from dtree where subtype=0

in listobjects you will write it as in java code

doc.ListObjects(0,2000,"dtree","subtype=0",
LAPI_DOCUMENTS.PERM_FULL
children )

if you want to usewebnodes or any view you have created
doc.ListObjects(0,2000,NULL,"subtype=0",
LAPI_DOCUMENTS.PERM_FULL
children )

when it sees null it assumes to go against webnodes.webnodes does have the name in it so you should be able to see it.Just printout you childern recarray and see if you can see the name attribute and it may be as simple as using the right way to parse it



Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top