Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Bug Reports
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Bug Reports Post about errors or bugs encountered.


Teamtask problem (Outlook library)


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-03-2008, 03:06 PM
Newbie
 
Join Date: Jun 2008
Posts: 7
Default Teamtask problem (Outlook library)

When I update a Teamtask value [via Basic4PPC], the value doesn't actually change.

I can edit the Teamtask flag, however, from Oxios ToDoList. The value can be read ok by Basic4PPC.

Interestingly, neither do Teamtask values sync through ActiveSync.

(WM6 Smartphone / Q9M)

Last edited by blue_wardrobe : 07-04-2008 at 06:57 PM. Reason: to clarify that Basic4PPC does not update TeamTask, but other things do.
Reply With Quote
  #2 (permalink)  
Old 07-05-2008, 09:12 PM
Newbie
 
Join Date: Jun 2008
Posts: 7
Default Code to illustrate Teamtask problem

Before running, ensure there is no task with subject "AAAAAAAA" .

On both WM6 Standard and WM6.1 Professional, this code shows how you can initially set Teamtask, but not change it thereafter.

Am I doing something wrong, or is it Basic4PPC, or something else?

Hopefully,

BW
Attached Files
File Type: sbp x.sbp (2.6 KB, 3 views)
Reply With Quote
  #3 (permalink)  
Old 07-06-2008, 06:23 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,185
Default

For some reason the TeamTask property doesn't get updated if it is the only property that was changed.
This happens in the underlying API and not in Basic4ppc code.
One workaround is to change the Body property and then return it to the original value:
Code:
mytask.TeamTask = false
temp = mytask.Body
mytask.Body = ""
mytask.Update
mytask.Body = temp
mytask.Update
BTW, you can replace your loops with:
Code:
i = tcol.FindItem("Subject","AAAAAAAA")
If i > -1 then
  mytask.value = tcol.GetItem(i)
End If
Reply With Quote
  #4 (permalink)  
Old 07-06-2008, 07:02 PM
Newbie
 
Join Date: Jun 2008
Posts: 7
Default Thanks!

Thanks, Erel!

That explains the weirdness.

I am aware of the looping - I back engineered my test instrument from a much bigger piece of code that scans all tasks for certain conditions.

BW
Reply With Quote
  #5 (permalink)  
Old 07-07-2008, 04:06 PM
Newbie
 
Join Date: Jun 2008
Posts: 7
Default Tweak to Erel's solution

Erel's tweak works, except in the common situation that the task body is already empty, in which case the API doesn't see mytask.body as changing, and therefore doesn't update teamtask when update is called.

So you need to do:

mytask.teamtask = false
temp = mytask.body
if mytask.body="" then mytask.body="XYZZY" else mytask.body=""
mytask.update
mytask.body = temp
mytask.update


There is nothing magic about "XYZZY". Or is there...?

BW
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Outlook library Erel Announcements 13 11-07-2008 03:39 PM
Merging Outlook library and Phone library Erel Official Updates 2 07-14-2008 04:38 PM
Outlook library and contacts list lancaster Questions & Help Needed 2 02-08-2008 10:26 AM
Outlook library - accessing phone numbers SteveA Questions & Help Needed 0 12-28-2007 05:43 PM
Outlook library now supports - sending and receiving SMS messages. Erel Announcements 3 09-10-2007 10:49 PM


All times are GMT. The time now is 04:03 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0