Delicious      Technorati      Blinklist      Furl      Reddit

TimeTrex Time and Attendance

TimeTrex Time and Attendance


* FAQ    * Search
* Login   * Register

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Apr 24, 2015 10:10 am 
Offline

Joined: Fri Apr 24, 2015 9:56 am
Posts: 2
I can get into the API and retrieve the schedule information using getSchedule. The problem is that the array maxes out at 50 even though there are more than 50 records to return. Does anyone know how I can fix this or point me to where I can find this within the API to fix it myself?

My code:
$schedule_obj = new TimeTrexClientAPI( 'Schedule' );
$schedule_filter = array(
'filter_data' => array(
'start_date' => strtotime('20150426'),
'end_date' => strtotime('20150502')
)
);
$result = $schedule_obj->getSchedule($schedule_filter);
$schedule_data = $result->getResult();

Any help would be much appreciated.


Top
 Profile  
 
PostPosted: Fri Apr 24, 2015 11:28 am 
Offline

Joined: Tue Sep 19, 2006 2:22 pm
Posts: 7235
Pass the 2nd argument to getSchedule() as TRUE, that disables paging and returns all results.
Code:
$result = $schedule_obj->getSchedule($schedule_filter, TRUE );


Top
 Profile  
 
PostPosted: Fri Apr 24, 2015 12:30 pm 
Offline

Joined: Fri Apr 24, 2015 9:56 am
Posts: 2
Thank you.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Time and Attendance




Powered by phpBB® Forum Software © phpBB Group