From: <Mar...@be...> - 2002-01-21 14:18:40
|
Hello Chris, we are using OpenInteract 1.36 and CommonHandler 1.34.=20 With the MY_SEARCH_RESULTS_PAGED option, the iterator which is returned = by ResultsManage has no entries. The get_next() call returns nothing. = Calling the has_next() method returns false, too.=20 Without the MY_SEARCH_RESULTS_PAGED option the iterator returned by the CommonHandler's _search_build_and_run method contains the proper = results. With get_next I can walk through my results. In both cases the query to search for was the same, the only difference = was given by MY_SEARCH_RESULTS_PAGED.=20 The search results were properly saved by ResultsManage, so it seems something goes wrong on retrieving the search results. Do you have an = idea? Thanks Marcus > -----Urspr=FCngliche Nachricht----- > Von: Chris Winters [SMTP:ch...@cw...] > Gesendet am: Mittwoch, 16. Januar 2002 17:42 > An: Mar...@be... > Cc: ope...@li... > Betreff: Re: [Openinteract-dev] Paged Results with CommonHandler >=20 > On Wed, 2002-01-16 at 08:44, Mar...@be... wrote: > > Dear OI Developers, > >=20 > > we've got some problems on showing paged results with = CommonHandler. If > we > > use CommonHandler without MY_SEARCH_RESULTS_PAGED we get back an > iterator > > object that can easily proccessed by the template to display the > results. > > Everything works fine that way. With MY_SEARCH_RESULTS_PAGED we get = back > a > > ResultsManage object with a list of object ids, and some other data = like > > num_records or the search id.=20 > >=20 > > Is there a possiblity to get back more data (e.g. the object data > > represented by the object ids) for displaying in the template? Any > > suggestions? >=20 > Ok, I remember now :-) >=20 > The ResultsIterator returned for the paged objects should with every > 'get_next()' call return the object referred to by the ID/class for = that > entry. If it's not then something isn't working properly. >=20 > Chris >=20 > --=20 > Chris Winters (ch...@cw...) > Building enterprise-capable snack solutions since 1988. |