Absent Member.
Absent Member.

filterGroup in php


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]$gwFG = new FilterGroup();// Instantiate a FilterGroup
$gwFE1 = new FilterEntry('fieldEqual', 'startDate', NULL, 0, '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
$ gwservice = new GroupwiseService ("groupwisexxx.wsdl"
array (
"location" => "http://groupwisexxx/soap"
"classmap" => $ classmap,
"trace" => TRUE,
"exceptions" => TRUE)

Thank you
Labels (1)
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.