Splitting Document Lsits

Hi,

I have a scenario where in , a document list has to be split based on the count given .

For example: A document list with 100 documents in it,and the count is 50 then it has to be split into two document lists one with 50 and another with 40.

Is there any way (without looping over the lists and appending absed on count) in which i can achieve this functionality.

Regards,
Mrudula

There is not implicit way to do this,and you may have to loop over the list and make use of $iteration variable count to break the doclist into two.Alternate way would be create custom JS logic and you can try with it.

HTH,
RMG

A document list is just an IData array. As an array, you should be able to use java’s array handling methods to manipulate it. Search the forums here for posts on doc lists and vectors for some hints.

Mark