[ 
https://issues.apache.org/jira/browse/CMIS-758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13913349#comment-13913349
 ] 

Florian Müller commented on CMIS-758:
-------------------------------------

That looks perfectly fine. Iterate through the enumerator. When it reaches the 
101st item, DotCMIS will transparently load the next batch of 100 items from 
the server. And again when it reaches the 201st item. The application does not 
notice that DotCMIS loads multiple batches. It looks like one enumerator pass.

Try this:

{code}
int counter = 0;

foreach (ICmisObject cmisObject in remoteFolder.GetChildren())
{
  counter++;
}
{code}


> GetChildren does not return all children
> ----------------------------------------
>
>                 Key: CMIS-758
>                 URL: https://issues.apache.org/jira/browse/CMIS-758
>             Project: Chemistry
>          Issue Type: Bug
>          Components: dotcmis
>    Affects Versions: DotCMIS 0.6
>            Reporter: Yannick MOLINET
>            Assignee: Florian Müller
>             Fix For: DotCMIS 0.6
>
>         Attachments: screenshot-1.jpg, screenshot-2.jpg
>
>
> GetChildren does not return all children
> The source code below returns only the items from the first page, instead of 
> the full content.
> So if remoteFolder contains more than 100 items, only the first 100 items are 
> returned.
> Note: Default context is used, so PageNumItems is 100.
> foreach (ICmisObject cmisObject in remoteFolder.GetChildren())
> {
> }
> Thanks,
> Yannick



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to