Notices


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-Oct-2009, 08:24 AM
Junior Member
 
Join Date: Aug 2009
Posts: 3
clonis 0 reputation points
Default filterGroup in php

hello,

I would like to list the appointment of the day. I think we should use a filterGroup one filter to select the appointments and other one to filter on the current date.
Can you explain me how to use it ?
I tried something like that :

PHP Code:
$gwFG = new FilterGroup();// Instantiate a FilterGroup
$gwFE1 = new FilterEntry('fieldEqual''startDate'NULL0'Today' ); // Instantiate first FilterEntries    
$gwFE2 = new FilterEntry('eq''@type'NULL 'Appointment'NULL); // Instantiate second FilterEntries    

$gwFG->element $gwFE1;// Add the two FilterEntries to the FilterGroup 
$gwFG->op "and"// Group the two FilterEntries with an “and”  
$gwFilter = new Filter($gwFG); // Instantiate a Filter

$ir = new getItemsRequest();
$ir->container $id;
$ir->filter $gwFilter;
$ires $gwservice->getItemsRequest($ir); 
Also the function __getLastRequest() doesn't work after using getItemsRequest ()
however I set trace = true
PHP Code:
gwservice = new GroupwiseService ("groupwisexxx.wsdl"
array (
"location" => "http://groupwisexxx/soap"
"classmap" 
=> $ classmap,
"trace" => TRUE,
"exceptions" => TRUE)
); 
Thank you
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 01:02 PM.


© 2007 Novell, Inc. All Rights Reserved.

Search Engine Friendly URLs by vBSEO 3.3.0 RC2