Menu

Reading Todo's via Conduit

Help
gspears00
2005-11-07
2013-03-22
  • gspears00

    gspears00 - 2005-11-07

    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

     
    • Paul Gilbert

      Paul Gilbert - 2005-11-08

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.