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!

Returning node id when adding documents with LAPI

Status
Not open for further replies.

cdfly

Programmer
Jun 16, 2010
68
US
Hello,
I'm using Java and LAPI to upload documents with the LAPI_DOCUMENTS.AddDocument method. After the document is added I need to perform some other custom operations in the database. Does LAPI have a method to return the node or node id of the document that was just added, if not do you know of other options to get the node?

Thanks
 
YES lapi methods once they return a 0 that means what you asked worked.
In most of the methods you supply a in parameter as well as a out parameter
they are mostly llvalue objects.

if a llvalue called objinfo is returned you basically can get the nodeid by

psuedocode

objinfo.("name") //name of node
objinfo.("id") // id of newly created node

Look at some examples in java,C# to see how easy it is

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