Ward Loockx schreef:

Hello,

I'm trying to use paging on my resultset retrieved from livecycle 2.6. In my resulthandler I only get 1result in my arraycollection(but the pagesize is set to 10!) and the count of the arraycollection 3500 (so in total 3500 results). When I try to loop over the array (he should automaticly retrieve more items -> said in documentation), I get *Error: Item requested is not available. A request for the item is now pending.
*
I've been googling and saw that it was a bug toward 2.4 of livecycle but running 2.6... And why am I just retrieving one result instead of 10(my specified page size)?

Here is some extra code
The looping in teh resulthandler

*         private function searchResult(evt:ResultEvent):void
          {
              for each(var obj:Webcam in foundCams)
              {
                  trace("-->"+obj);
              }
          }

*and the initializing of the data service object

* searchService = new DataService("search"); var myrtmp:RTMPChannel = new RTMPChannel("my-rtmp", "rtmp://*************:2038"); searchService.channelSet = new ChannelSet();
            searchService.channelSet.addChannel(myrtmp);
searchService.addEventListener(ResultEvent.RESULT,searchResult);*

Thanks,
Ward


Looks like I'm trying to populate my own component and when an item isn't found it throws an ItemPendingError where I should add an responder to...

I'm retrieving the search result in my search class and then use a component to show my results (later with next/previous button)... I'm calling the creation of the component when the resulthandler of the searchresult is called. I give my arraycollection as parameter to the component to create the results. But how can I change my code that the component can handle the errors when an item isn't found and continues populating?? Can somebody give some examples how this is done? Looks like the datagrid component can handle it by itself, how should I build in that support in my component?

Thanks!

Reply via email to