[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Why doesn't Groupwise retrieve all of my appointments?

Posted on 2011-04-19
10
Medium Priority
?
652 Views
Last Modified: 2013-11-12
I have the following code in an attempt retrieve my groupwise appointments, yet it's only getting the first one (see picture attached).  Any ideas why?


GroupwareTypeLibrary.MessageList lst;
GroupwareTypeLibrary.Appointment7 appt;
object filter = "(START_DATE >= " + DateTime.Now.AddDays(-30).ToString("yyyy/MM/dd") + ") AND (APPOINTMENT)" ; 
// filter = (START_DATE >= 2011/03/20) AND (APPOINTMENT)
lst = groupwiseAccount.WorkFolder.Messages.Find(filter);

Open in new window

Groupwise.png
0
Comment
Question by:marketware
  • 5
  • 4
9 Comments
 

Author Comment

by:marketware
ID: 35902232
Thank you!!
0
 
LVL 34

Expert Comment

by:PsiCop
ID: 35951919
I suspect the lack of response is due to the fact this is mainly a programming question. I'm not a C# coder (I have an allergy to proprietary languages created by abusively monopolistic corporations) nor do I recognize the API.

Knowing a little about how GroupWise is architected, I would suspect the underlying issue has something to do with how the filter method works, and how the Appointments exist in the database. When you create an Appointment in your own Calendar, you "own" the database record, and it exists fully in your user DB. If someone else sends you an Appointment, the actual record exists in their DB, and you get a pointer.
0
 

Author Comment

by:marketware
ID: 35952342
The API in question is Novell's...I kind of guess you were referring to the folks in Redmond.

An Object no matter what language you use to access it has certain properties and methods.  The method above is calling the GroupWise method:

groupwiseAccount.WorkFolder.Messages.Find(filter);

and passing a filter to it.  I'm guessing what I should have done is indicate the actual value of the filter so that maybe we could diagnose what I'm doing wrong with the filter  here is the value of the filter and maybe someone can guide me.  Thanks in advance for any suggestions.

Here is the syntax of the Filter:

(START_DATE >= 2011/05/12) AND (APPOINTMENT)

Thanks all...

Bob
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 34

Accepted Solution

by:
PsiCop earned 2000 total points
ID: 35952651
Does the second Appointment get retrieved if you simply set the Filter to (APPOINTMENT) ??

Perhaps the Filter criteria is the issue.
0
 

Author Comment

by:marketware
ID: 35967563
PsiCop,

So the craziest thing just happened.  I went to the code to apply the test you suggested, but before I did, I ran it (just to see if the universe was in alignment), and it works.  I made no changes, but now it works.  Go figure.

Anyway, thank you for your suggestion...I think that you deserve the credit for this one!
0
 

Author Closing Comment

by:marketware
ID: 35967577
I think you must just have a special power where you can get things to work from afar...
0
 
LVL 34

Expert Comment

by:PsiCop
ID: 35970952
*chuckle*

More likely, there was some uninitialized variable somewhere, or something cached. You may have even found a bug in the API (if so, you should be able to reproduce it).
0
 
LVL 34

Expert Comment

by:PsiCop
ID: 35970953
Thanks for the points.
0
 

Author Comment

by:marketware
ID: 35970991
You are welcome!
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question