When creating a table with CreateTable method, the appInfo block was not written in the PDB file.
My problem is in the palm : I cannot read field values !
How can I force the writing of this appInfo Block ???
Thanx a lot !
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well, CreateTable creates the table initially, but doesn't actually open it. The AppInfo block is only written to the table if the table is open. You should therefore follow the following steps:
* Create the table
* Open it
* Write the data to the AppInfo block
* Close it
Paul.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2004-02-24
Thank you.
But what is the strucutre of the AppInfo Block in a pdb table ?
I need to write all the fields defined in the table component to the appInfo Block in order to access these fields by their name on the palm.
How can I do this ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry I missed your message. The fact is, that the AppInfo block of a Palm table doesn't have any structure. It contains whatever raw binary you store in it. There's certainly no inbuilt Palm functionality to use the contents of the AppInfo block as field names for the contents of records, since the Palm doesn't have any concept of fields in the records.
You may be using some custom development tool that's simulating a normal database system of fields on the Palm to make development easier for you, but in that case, it's up to you to find out what format it wants the AppInfo block in, and simulate it yourself; since the conduit library is written for synchronising any Palm table, I can't say what particular format your development tool is expecting without having used it.
Paul.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2004-03-17
Nobody wants to give me a response ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello !
When creating a table with CreateTable method, the appInfo block was not written in the PDB file.
My problem is in the palm : I cannot read field values !
How can I force the writing of this appInfo Block ???
Thanx a lot !
Well, CreateTable creates the table initially, but doesn't actually open it. The AppInfo block is only written to the table if the table is open. You should therefore follow the following steps:
* Create the table
* Open it
* Write the data to the AppInfo block
* Close it
Paul.
Thank you.
But what is the strucutre of the AppInfo Block in a pdb table ?
I need to write all the fields defined in the table component to the appInfo Block in order to access these fields by their name on the palm.
How can I do this ?
Hi there,
Sorry I missed your message. The fact is, that the AppInfo block of a Palm table doesn't have any structure. It contains whatever raw binary you store in it. There's certainly no inbuilt Palm functionality to use the contents of the AppInfo block as field names for the contents of records, since the Palm doesn't have any concept of fields in the records.
You may be using some custom development tool that's simulating a normal database system of fields on the Palm to make development easier for you, but in that case, it's up to you to find out what format it wants the AppInfo block in, and simulate it yourself; since the conduit library is written for synchronising any Palm table, I can't say what particular format your development tool is expecting without having used it.
Paul.
Nobody wants to give me a response ?