Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
lionfish Absent Member.
Absent Member.
1617 views

How to search posted appointments

Hi, All:

I am looking for anwsers and sample code on how to conduct a filter on searching posted appointments and how to perform deleting action on them.

Also what are the differences when perform adding, deleting, searching and updating actions on GW appointments and posted appointments?
Labels (1)
0 Likes
7 Replies
Anonymous_User Absent Member.
Absent Member.

Re: How to search posted appointments

Here is what a filter would look like for getting just
personal appointments:
<filter>
<element>
<op>and</op>
<element>
<op>isOf</op>
<field>@type</field>
<value>Appointment</value>
</element>
<element>
<op>isOf</op>
<field>source</field>
<value>personal</value>
</element>
</element>
</filter>

There are previous posts of sample code to build filters.
You can use those as a template.

To delete an item, use removeItemsRequest.

For the most part, you can change any part of personal
items. For the most part, sent / received items are
read-only. Personal items do not have a recipient list
and sent / receive do.

If you have specific questions or problems, I can answer
those.

Preston

>>> On Tuesday, May 26, 2009 at 3:36 PM,

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

> Hi, All:
>
> I am looking for anwsers and sample code on how to conduct a filter on
> searching posted appointments and how to perform deleting action on
> them.
>
> Also what are the differences when perform adding, deleting, searching
> and updating actions on GW appointments and posted appointments?

0 Likes
Highlighted
lionfish Absent Member.
Absent Member.

Re: How to search posted appointments

Thanks, Preston.

Do I need to specify the "source" is personal or sent when I create an appointment?
I am trying to create a correct appointment object. Except there are no recipients for the posted appointments, are there any other differences when creating them comparing with distributed appointments.



Preston Stephenson;1797703 wrote:
Here is what a filter would look like for getting just
personal appointments:
<filter>
<element>
<op>and</op>
<element>
<op>isOf</op>
<field>@type</field>
<value>Appointment</value>
</element>
<element>
<op>isOf</op>
<field>source</field>
<value>personal</value>
</element>
</element>
</filter>

There are previous posts of sample code to build filters.
You can use those as a template.

To delete an item, use removeItemsRequest.

For the most part, you can change any part of personal
items. For the most part, sent / received items are
read-only. Personal items do not have a recipient list
and sent / receive do.

If you have specific questions or problems, I can answer
those.

Preston
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: How to search posted appointments

The following logic will happen if you use
the sendItemRequest:

If you don't specify a recipient list,
the item will become a personal item no
matter what you put for source. If you
pass a recipient list, we will optionally
create a sent item (for status tracking)
and distribute the item (received items).

There is a setting to not create a sent
item that can be specified in the user's
settings or you can override that setting
in the item in the sendItemRequest itself.
(Distribution/statusTracking/None).

Sent / received items are for the most
part read-only. Personal items for the
most part are read-write.

Preston

>>> On Wednesday, May 27, 2009 at 7:56 AM,

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

> Thanks, Preston.
>
> Do I need to specify the "source" is personal or sent when I create an
> appointment?
> I am trying to create a correct appointment object. Except there are no
> recipients for the posted appointments, are there any other differences
> when creating them comparing with distributed appointments.
>
>
>
> Preston Stephenson;1797703 Wrote:
>> Here is what a filter would look like for getting just
>> personal appointments:
>> <filter>
>> <element>
>> <op>and</op>
>> <element>
>> <op>isOf</op>
>> <field>@type</field>
>> <value>Appointment</value>
>> </element>
>> <element>
>> <op>isOf</op>
>> <field>source</field>
>> <value>personal</value>
>> </element>
>> </element>
>> </filter>
>>
>> There are previous posts of sample code to build filters.
>> You can use those as a template.
>>
>> To delete an item, use removeItemsRequest.
>>
>> For the most part, you can change any part of personal
>> items. For the most part, sent / received items are
>> read‑only. Personal items do not have a recipient list
>> and sent / receive do.
>>
>> If you have specific questions or problems, I can answer
>> those.
>>
>> Preston
>>

0 Likes
lionfish Absent Member.
Absent Member.

Re: How to search posted appointments

I am clear now, thanks.

I have another question on the distributed appointment.
I created a distributed appointment in Calendar, but I found two items when I retrieve them, even though I set the "source" to "sent". One is from my calendar folder, the other one is from Mailbox? I only need the one which is used to retract the meeting.



Preston Stephenson;1797847 wrote:
The following logic will happen if you use
the sendItemRequest:

If you don't specify a recipient list,
the item will become a personal item no
matter what you put for source. If you
pass a recipient list, we will optionally
create a sent item (for status tracking)
and distribute the item (received items).

There is a setting to not create a sent
item that can be specified in the user's
settings or you can override that setting
in the item in the sendItemRequest itself.
(Distribution/statusTracking/None).

Sent / received items are for the most
part read-only. Personal items for the
most part are read-write.

Preston
0 Likes
lionfish Absent Member.
Absent Member.

Re: How to search posted appointments

Also, can I specifiy multiple sources at the same time?

For example:

                GroupWise.FilterEntry entry = new FilterEntry();
entry.field = "source";
entry.value = "personal, sent";
entry.op = GroupWise.FilterOp.isOf;
filterList.Add(entry);
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: How to search posted appointments

The Calendar folder is a container folder
and a query folder. If you get the items
in the Calendar folder, it will return
all calendar item in all of the user's
folders.

Sent items are usually in the Mailbox
folder.

The Sent Items folder is a container
folder as well as a query folder. If you
get the items in the Sent Items folder,
it will return the sent items in the
Mailbox, Calendar and Sent Items folder.

There is only one sent item, but it is
returned in the two folders. You can
look at the container element of the
item to see which folder(s) the item
is in.

Preston

>>> On Wednesday, May 27, 2009 at 9:06 AM,

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

> I am clear now, thanks.
>
> I have another question on the distributed appointment.
> I created a distributed appointment in Calendar, but I found two items
> when I retrieve them, even though I set the "source" to "sent". One is
> from my calendar folder, the other one is from Mailbox? I only need the
> one which is used to retract the meeting.
>
>
>
> Preston Stephenson;1797847 Wrote:
>> The following logic will happen if you use
>> the sendItemRequest:
>>
>> If you don't specify a recipient list,
>> the item will become a personal item no
>> matter what you put for source. If you
>> pass a recipient list, we will optionally
>> create a sent item (for status tracking)
>> and distribute the item (received items).
>>
>> There is a setting to not create a sent
>> item that can be specified in the user's
>> settings or you can override that setting
>> in the item in the sendItemRequest itself.
>> (Distribution/statusTracking/None).
>>
>> Sent / received items are for the most
>> part read‑only. Personal items for the
>> most part are read‑write.
>>
>> Preston

>

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: How to search posted appointments

You can specify multiple sources, but the
values are only space delimited:
entry.value = "personal sent";

Preston

>>> On Wednesday, May 27, 2009 at 9:26 AM,

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

> Also, can I specifiy multiple sources at the same time?
>
> For example:
>
>
> Code:
> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑
> GroupWise.FilterEntry entry = new FilterEntry();
> entry.field = "source";
> entry.value = "personal, sent";
> entry.op = GroupWise.FilterOp.isOf;
> filterList.Add(entry);
> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑

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.