Highlighted
AlexWerner Absent Member.
Absent Member.
1282 views

Create Cursor Request - omit Container?

Hello,

i am trying to get a users appointments by using a cursor.
The soap docs say, if i leave the container element empty, all folders will be searched.

If i omit the container completely, i get an error "Container String is missing".
Same thing if i just set an empty string for container....

Why would the documentation say that one can omit the container when GW then moans about it ?





createCursorRequest createCursorReq = new createCursorRequest();
createCursorResponse createCursorResp = new createCursorResponse();

createCursorReq.container = "";

FilterEntry fe = new FilterEntry();
fe.op = FilterOp.eq;
fe.field = "@type";
fe.value = "Appointment";
createCursorReq.filter = new Filter();
createCursorReq.filter.element = fe;

createCursorResp = gwbTestB1.createCursorRequest(createCursorReq);

Thanks for Help!
Labels (1)
Tags (3)
0 Likes
1 Reply
Anonymous_User Absent Member.
Absent Member.

Re: Create Cursor Request - omit Container?

Sorry, there must be a problem with the documentation.
To search all folders, you put "folders" as the container.

>>> On Tuesday, September 14, 2010 at 7:58 AM,

AlexWerner<AlexWerner@no-mx.forums.novell.com> wrote:

> Hello,
>
> i am trying to get a users appointments by using a cursor.
> The soap docs say, if i leave the container element empty, all folders
> will be searched.
>
> If i omit the container completely, i get an error "Container String is
> missing".
> Same thing if i just set an empty string for container....
>
> Why would the documentation say that one can omit the container when GW
> then moans about it ?
>
>
>
>
>
> createCursorRequest createCursorReq = new
> createCursorRequest();
> createCursorResponse createCursorResp = new
> createCursorResponse();
>
> createCursorReq.container = "";
>
> FilterEntry fe = new FilterEntry();
> fe.op = FilterOp.eq;
> fe.field = "@type";
> fe.value = "Appointment";
> createCursorReq.filter = new Filter();
> createCursorReq.filter.element = fe;
>
> createCursorResp =
> gwbTestB1.createCursorRequest(createCursorReq);
>
> Thanks for Help!

0 Likes
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.