User2

Version 7 contains a new script-accessible table for developers' use.

It behaves rather like the existing user file except for having a much larger primary key (27 chars) and also a numeric "developer key" intended to prevent data collisions between different applications. Cognito will allocate 16 bit key numbers to developers who request them (0-255 are reserved; don't use them). The devkey value of your records will be your key number * 65536 + your application number (allowing you to use the file for different purposes).

There are two int, two float, two date and two short text fields (19 chars), plus a longer text field (155 chars).

You can import into it using xml or by supplying all fields to the pseudo-map ":/user2", or, from a script using SetPersistent.

import "1 my_key2 1 2 3 4 1/1/13 21/2/68 xxx yyy my data" using map ":/USER2"

Note: All Devkey values in the range 0-65535 are for use by Cognito.

Field names are as in this XML export.


<user2>
    <sequencenumber>4</sequencenumber>
    <lastmodifiedtime>20110131170140</lastmodifiedtime>
    <devkey>1</devkey>
    <key>my_key2</key>
    <int1>1</int1>
    <int2>2</int2>
    <float1>3.000000</float1>
    <float2>4.000000</float2>
    <date1>20130101</date1>
    <date2>19680221</date2>
    <text1>xxx</text1>
    <text2>yyy</text2>
    <text>my data</text>
</user2>

Posted in Database | Comments Off on User2