dimasabyrov Absent Member.
Absent Member.
2424 views

All Day Event

Hello.

I tried get state 'All Day Event' from new appointment.
Using the documentation 'GroupWise Tokens' I found only ItemSetAllDayEvent().
How I can get state 'All Day Event' ?
Labels (1)
0 Likes
3 Replies
s_vogel Absent Member.
Absent Member.

Re: All Day Event

Can you please be a bit more specific on this?
You are able to create Events with the Token API and want them to be AllDayEvents? Or do you want to get the information about an event wether or not it is an all day even?
0 Likes
dimasabyrov Absent Member.
Absent Member.

Re: All Day Event

My application has integration with GroupWise. I use C3PO interface for integration.
Application works with appointment window. Application creates a button on the toolbar and gets values from fields of appointment form.
For create a button I use C3PO interface. For getting values from fields of appointment form I use GroupWise Tokens, exactly Token Commander. https://www.novell.com/documentation/developer/groupwise_sdk/pdfdoc/gwsdk_gwtoken/gwsdk_gwtoken.pdf

Example using GroupWise Tokens:

Retrieve field 'TO'
string NewMessageID = "X00";
string result = string.Empty;
// 0 - To
string method = string.Format("ItemGetText(\"{0}\"; 0)", NewMessageID);
_gwCmder.Execute(method, out result);

Retrieve field 'Start Date'
string dateString = string.Empty
// 126 - BeginDateTime
// 174 - MAPIDate. Returns in format: Year/Month/Day 24HR:MIN.
string method = string.Format("ItemGetDate(\"{0}\"; 126; 174)", NewMessageID);
_gwCmder.Execute(method, out dateString);

So, I can retrieve 'Body', 'Start Date' ,'End Date', 'Subject', 'To', I can set state of checkbox 'all day event' -> https://www.dropbox.com/s/fmzywxj0iqndze8/FirstExample.png?dl=0

Example of setting checkbox state :
string result = string.Empty;
string method = string.Format("ItemSetAllDayEvent(1)");
_gwCmder.Execute(method, out result);
Result -> https://www.dropbox.com/s/0ca38ypx27i2qav/SecondExample.png?dl=0

But I can't retrieve state of checkbox 'all day event'.
I didn't find any function for retrieve state of checkbox 'all day event'
How can I get state by another way?
0 Likes
s_vogel Absent Member.
Absent Member.

Re: All Day Event

Mabe the Fields are stored in the XMIME fields:
First get the number of fields (https://www.novell.com/documentation/developer/groupwise_sdk/gwsdk_gwtoken/data/bj9wihv.html) and then loop through them to hopefuully find the all day event field.
https://www.novell.com/documentation/developer/groupwise_sdk/gwsdk_gwtoken/data/bj9wihp.html
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.