NickT
07-24-2008, 11:04 AM
Hi,
I’m trying to write a simple Valence application based on Demo03, i.e. loading a read-only grid. It is partially working – results are being loaded into the grid – but two of the fields in the database file are defined as integer/binary and these fields are not being populated in the grid. When I debug my program I can see that the correct values are in the data structure that I am passing into vvFormat_toJSON(), but the output that is produced does not contain the values for the integer fields.
The fields in the file that I am processing are defined as follows:
NAMEUC VARCHAR(256),
REFNO INTEGER,
DESC CHARACTER(50),
PATHINFO VARCHAR(256),
AUTHENT CHARACTER,
TIMEOUT SMALLINT,
APPL CHARACTER,
TRCD CHARACTER(3),
STATUS CHARACTER
The following is an extract from the generated JSON.
{
"NAMEUC":"CLAIMSMOTORPOLICYFETCH",
"REFNO":"",
"DESC":"ClaimsMotorPolicyFetch",
"PATHINFO":"ClaimsMotorPolicyFetch",
"AUTHENT":"Y",
"TIMEOUT":"",
"APPL":"S",
"TRCD":"CPF",
"STATUS":"1"
}
Looking at the Valence documentation for vvFormat_toJSON() I can’t see any mention of integer data. Is this a Valence restriction, or am I doing something wrong?
I’m trying to write a simple Valence application based on Demo03, i.e. loading a read-only grid. It is partially working – results are being loaded into the grid – but two of the fields in the database file are defined as integer/binary and these fields are not being populated in the grid. When I debug my program I can see that the correct values are in the data structure that I am passing into vvFormat_toJSON(), but the output that is produced does not contain the values for the integer fields.
The fields in the file that I am processing are defined as follows:
NAMEUC VARCHAR(256),
REFNO INTEGER,
DESC CHARACTER(50),
PATHINFO VARCHAR(256),
AUTHENT CHARACTER,
TIMEOUT SMALLINT,
APPL CHARACTER,
TRCD CHARACTER(3),
STATUS CHARACTER
The following is an extract from the generated JSON.
{
"NAMEUC":"CLAIMSMOTORPOLICYFETCH",
"REFNO":"",
"DESC":"ClaimsMotorPolicyFetch",
"PATHINFO":"ClaimsMotorPolicyFetch",
"AUTHENT":"Y",
"TIMEOUT":"",
"APPL":"S",
"TRCD":"CPF",
"STATUS":"1"
}
Looking at the Valence documentation for vvFormat_toJSON() I can’t see any mention of integer data. Is this a Valence restriction, or am I doing something wrong?