cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
65
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: Aswien Behari on 05-11-2009 02:54:41 PM
Hi all,

With the call GetConferences you can get the conferences with given search criteria, right? Now what I am missing is the possibility for providing how many conferences you want in your resultset. Let say you do a query get conferences from date A to date B. The result will contain a thousand records. For me it is very inefficient and time consuming to get all thousand records at once. So it would be awesome if i could provide how many conference I want. So if I do a query it should get let say only the first 5 conferences. It should not get a thousand first and then filter 5 out.

How can I achieve this?

Thanks in advance.

With kind regards,

Aswien

Subject: RE: GetConferences API call
Replied by: Jesse Baker on 05-11-2009 04:23:14 PM
Hi Aswien,

You will want to use the ResultRange parameter.

This field is not currently documented but is intended to be used as a way to achieve exactly what you want.

ResultRange expects an integer array of size 2:

{ Page number, Conferences per page }

The default usage is {0,0}, which will return an unlimited amount of responses. So you can specify a maximum response length of 5 conferences by setting the "Conference per page" integer to 5. Following that it is simply a matter of calling GetConferences and incrementing "Page number" starting at 1 until you get less than 5 conferences returned.

Subject: RE: GetConferences API call
Replied by: Ailene Nichol on 06-11-2009 02:52:32 AM
Hi Aswien,

The ResultRange parameter will be formally supported in S4.0 and it is documented in the API guide that will be released with S4.0.

Here are the details:
The ResultRange parameter is a pair of integers. The first integer specifies a page number and the second integer specifies the number of items to return. Both integers are expected to be greater than 0.

That should do what you need!
Ailene

Subject: RE: GetConferences API call
Replied by: Aswien Behari on 16-11-2009 07:55:57 AM
Cool!! Thanks guys! Much appreciated.

With kind regards,

Aswien
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links