Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
Get the list of children nodes using LAPI Java?
Taavi_Ilves
Hi.I need to get a list of children nodes of an node using LAPi Java. I read the documentation and found that ListObjects does what I need: "This function returns a RecArray value object containing one Record of information for each shortcut (alias) or generation that references the specified object." For Java the specification is like that:public int ListObjects( int volumeID, int objectID, String viewName, String queryStr, int permissions, LLValue children )The code I attached, gives an output like this:V{}ListObjects returned size: 0GetNumberOfObjects returned size: 6What seems to be problem, why ListObjects can't get the list?Thanks,Taavi
Find more posts tagged with
Comments
eLink User
Message from Nair, Krishnankutty N. via eLinkI believe you are passing VolID=0 and I don't think your livelink serverhas a problem realizing that.I have enclosed your code and I have replaced the hardcoding selfexplanatory.BTW:I compiled this on a 9.5SP1 machine and tested this Thanks Much Krishnankutty N Nair -----Original Message-----From: eLink Discussion: LAPI Discussion[mailto:lapi@elinkkc.opentext.com] Sent: Tuesday, October 25, 2005 8:57 AMTo: eLink RecipientSubject: Get the list of children nodes using LAPI Java?Get the list of children nodes using LAPI Java?Posted by Ilves, Taavi on 10/25/2005 09:51 AMHi.I need to get a list of children nodes of an node using LAPi Java. Iread the documentation and found that ListObjects does what I need:"This function returns a RecArray value object containing one Record ofinformation for each shortcut (alias) or generation that references thespecified object." For Java the specification is like that:public int ListObjects( int volumeID, int objectID, String viewName, String queryStr, int permissions, LLValue children )The code I attached, gives an output like this:V{}ListObjects returned size: 0GetNumberOfObjects returned size: 6What seems to be problem, why ListObjects can't get the list?Thanks,Taavi[To reply to this thread, use your normal E-mail reply function.]============================================================Attachment link: Test.java
https://knowledge.opentext.com/knowledge/livelink.exe/open/4273481============================================================Discussion
: LAPI Discussion
https://knowledge.opentext.com/knowledge/livelink.exe/open/765428Livelink
Server:
https://knowledge.opentext.com/knowledge/livelink.exeTo
Unsubscribe from this Discussion, send an e-mail tounsubscribe.lapi@elinkkc.opentext.com.
Tina_Wang
Krishnankutty is correct. One of the reasons that your aren't seeing anything could be because the volume information is incorrect. This is especially true if the object you are looking for is in a project or other node with it's own volumeID. Also, it could be an issue with permissions like not having See Contents Permissions on the Child Nodes. If you don't figure out the problem shortly, I'd recommend you open up a ticket with support. Somebody at opentext will be able to get logs and tell you exactly why no items are returned.Best Regards,Tim
Taavi_Ilves
Thank you so much. This worked and now I can finish my code at last!