Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Basic4ppc Wishlist > Bug Reports
Documentation Wiki Register Members List B4P 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, 02: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 05:57 PM. Reason: to clarify that Basic4PPC does not update TeamTask, but other things do.
Reply With Quote
  #2 (permalink)  
Old 07-05-2008, 08: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
Reply With Quote
  #3 (permalink)  
Old 07-06-2008, 05:23 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,709
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
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, 06: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, 03: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 Off
Pingbacks are Off
Refbacks are On

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


All times are GMT. The time now is 03:25 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0