Web API: table_info (get)

This command retrieves the characteristics and properties of a specific table in the requested database. In addition to the table’s characteristics, all the fields that make it up are returned with their own characteristics.

Parameters

tablename
Name of the table to retrieve.

db
Name of the database containing the table.

token
The user's identification token.

Example

https://web.nios4.com/ws/?action=table_info&db=db&tablename=customer&token=00000000

Errors

notfound
The requested table does not exist

unauthorized
You do not have view permission for the requested table

Response


"error": false, Error flag
"table": {
   "gguid": "guid", Global ID
   "tid": "20190923135015", Time identifier
   "eli": "0", Whether the table is deleted
   "arc": "0", Archive index
   "ut": "user", Last user
   "ind": "0", Sort index
   "displayable": "1", View permission
   "eliminable": "1", Delete permission
   "editable": "1", Edit permission
   "tablename": "customer", Actual table name
   "syncyes": "1", Sync permission
   "syncsel": "1", Selective sync permission
   "syncno": "0", Optional sync permission
   "param": {}", Table parameters
   "tablelabel": "Customer", Table label
   "newlabel":"New Customer", Label for a new record
   "expressions": "", Calculation expressions
   "lgroup": "" Group it belongs to
},

"fields": [
{
   "gguid": "g", Field global ID
   "tid": "20190923135015", Time identifier
   "eli": "0", Whether the field is deleted
   "arc": "0", Archive index
   "ut":"user", Last user
   "ind": "1001", Sort index
   "displayable": "1", View permission
   "eliminable": "1", Delete permission
   "editable": "1", Edit permission
   "tablename": "customer", Table it belongs to
   "fieldname": "name", Actual field name
   "fieldlabel": "Name", Field label
   "fieldtype": "11", Field type
   "viewcolumn": "1", Whether the column is visible
   "columnwidth": "200", Column width
   "obligatory": "0", Whether the field is required
   "param": "{}", Field parameters
   "ofsystem": "1", Whether it is a system field
   "expression": "{}", Field expressions (not used)
   "style":"{}", Field style
   "panel": "", Panel containing the field
   "panelindex": "0", Panel index
   "fieldlabel2": "C Name", Column label
   "columnindex": "1" Column index
},...],

"record": { Reference template for the record

   "gguid": "", usable in the other calls
   "tid": 0, to add and edit values
   "eli": 0, in the table
   "arc": 0,
   "ut": "",
   "ind": 0,
   "exp": "",
   "gguidp": "",
   "uta": "",
   "tap": "",
   "dsp": "",
   "dsc": "",
   "dsq1": 0,
   "dsq2": 0,
   "utc": "",
   "tidc": 0,
   "name": "",
},

"archives": [ List of archives available for the table
   {
   "gguid": "g",
   "tid": "20200323110641",
   "eli": "0",
   "arc": "0",
   "ut":"user",
   "ind": "2",
   "gguidp": "",
   "exp": "",
   "uta": "1050",
   "tap": "",
   "dsp": "",
   "dsc": "",
   "dsq1": "0",
   "dsq2": "0",
   "utc":"user",
   "tidc": "20191023132749",
   "tablename": "customer",
   "arcindex": "2",
   "archivename": "old"
   }

],

"scripts": [ List of scripts associated with the table
{
   "gguid": "g",
   "ind": 7,
   "tablename": "customer",
   "scriptname":"script",
   "scripttype": 3
}

],

"preferences": [ Default layout preferences for the form
{
   "NC": "ind",
   "IN": 0,
   "VS": 0,
   "WD": 40,
   "SO": 0
   },...]
}