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
Problems with child-objects of a news-channel
x-pallasadmin_-_(deleted)
I'm new to LL-API and have some problems with getting the number of child-objects of a news-channel (via java). "listObjects" always returns an empty RecArray (size=0) although there are several news-items in the news-channel? Even "ChildCount" for the news-channel has no valid entry. Any hints?
Find more posts tagged with
Comments
Bob_DeGarmo_(WorldWideTechUser1_(Delete)_1437172)
Have you done the flip-flop thing with the VolumeID? I would probably make an abomination of an explanation... Here's a snippet of code I have in a custom module that works within Builder, to get the children of a channel:if parent.pSubType == $TypeChannel pVolumeID = pID pID = -(pID)endTake a look at that, then look at the data in your database for a channel/news items. And it'll probably click.You'll need to make a similar flip-flop in your code.Good Luck!
x-pallasadmin_-_(deleted)
Thanks for your help. The modifications i've added to my code work fine. But there is one question left: From where do you got the 'flip-flop'-hint?
Avinci_Region_Mitte_(AvinciUser1_(Delete)_2329779)
if you take a look at the DTREE table youcan see that * OwnerID refers to VolumeID parameter * ParentID refers to the ObjectID parameteryou pass with LL_ListObjects.for items of subtype NEWSSUBTYPE the ParentID is -(ObjectID of Channel) and theVolumeID is +(ObjectID of Channel);)marco.schindler@avinci.de