question

kingfisher avatar image
kingfisher asked Mike M answered

Field Length - Items

I am looking for information about field lengths to build table structure - data structure to build external tables to hold clover data.

For example, in the Item area what are the maximum field length for:

"id: "code": "", "cost": "long", hidden": false, (is boolean - True\False?) unitName priceType alternateName name alternateName

If there is a data dictionary and i have missed it then a link would be great!! Thank you.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Mike M avatar image
Mike M answered

For all of Clover's generated models, there should be a validate() method that comes with it. They are the same models that our server uses and should contain the maximum field length (or max and min values) you are looking for, if it exists for that model.

If you are running into an issue that is not described by our validate() method, then please let us know at dev@clover.com and we can create a ticket to get that fixed.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community