I am trying to access the Todo database in a Palm Tungsten. I believe the "high-level" stuff is set up right, as I can access the Calendar DB successfully.
If I have only one or two rows, I cannot see them. If I have 11 or 12 rows, I can see 7 of them. My guess is that I don't have the format for the data defined properly. I currently have:
I am trying to loop through all the records to simply make a copy of the data on the PC, so it is a very simply application. I have basically eliminated everything but programatically setting the table active, and that still cause a HotSync error to be generated. (Which is of no value)
One other question: Is there any way to write to the Hotsync log?
Thanks
gspears00
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It's been a while since I looked at the Todo application, but looking at the source code for the Todo application that comes with the Palm SDK, I would set the fields as:
At first glance you'llnotice that the DueDate isn't a standard Palm date, which is 2-bytes, but is rather four bytes. Also, there's a priority field rather than a completion field. You'd obviously need to delve into the source code a bit more to better understand the actual format of the record, and how the "completed" checkbox is handled.. it may be part of the category for the record at a guess.
As always, the source code for the Palm applications are your friend for figuring out the format of a given database and setting up your fields in your conduit to handle them.
Paul.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I am trying to access the Todo database in a Palm Tungsten. I believe the "high-level" stuff is set up right, as I can access the Calendar DB successfully.
If I have only one or two rows, I cannot see them. If I have 11 or 12 rows, I can see 7 of them. My guess is that I don't have the format for the data defined properly. I currently have:
DueDate ptDate
Completed ptByte
Description ptString
Notes ptString
I am trying to loop through all the records to simply make a copy of the data on the PC, so it is a very simply application. I have basically eliminated everything but programatically setting the table active, and that still cause a HotSync error to be generated. (Which is of no value)
One other question: Is there any way to write to the Hotsync log?
Thanks
gspears00
Hi there,
It's been a while since I looked at the Todo application, but looking at the source code for the Todo application that comes with the Palm SDK, I would set the fields as:
DueDate ptLong
Priority: ptLong
description: ptString
notes: ptSring
At first glance you'llnotice that the DueDate isn't a standard Palm date, which is 2-bytes, but is rather four bytes. Also, there's a priority field rather than a completion field. You'd obviously need to delve into the source code a bit more to better understand the actual format of the record, and how the "completed" checkbox is handled.. it may be part of the category for the record at a guess.
As always, the source code for the Palm applications are your friend for figuring out the format of a given database and setting up your fields in your conduit to handle them.
Paul.