tvFieldValue
This is the value to insert
This function is critical as it formats data and validates data types to there correct vales for the
field being updated. Hence it makes sure you don't put character values into numeric fields and
pads spaces to the begginning or end of string values if need be.
o.AddFieldValue("Account","23233")
The above would
1. Make sure the data type for the account field in oData is string
2. Pad spaces to the value if required
3. Place the value of "23233" into o.oData.Account
Any errors will be placed into o.cErrorMsg and o.lError will be true
If the field does not exist then you will also receive an error