Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
This server-side API class allows performing various operations related to tables, like table relationshipsWith the methods of this class you can get information on the parent and child tables.
SimpleTable()
This Use this method instantiates to instantiate a new SimpleTable object.
Example:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
let table = new SimpleTable('task'); |
getParentTables()
Use this method to get information about the parent tables of all inheritance levels related to any table, detailing all levels of inheritancethe table specified in the object constructor.
Return:
Type | Description |
---|---|
Array of Objects | An array containing a list of parent tables (with their sys_ids id and names) to the table specified. |
Example:
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
let table = new SimpleTable('sys_report_chart'); ss.info(table.getParentTables()); //Info: [{"sys_id":"156636381105818096","name":"sys_report"}] |
getChildTables()
Use this method to get information about the child tables to any table, detailing all levels of inheritance.
Return:
Type | Description |
---|---|
Array of Object | An array containing a list of the child tables (with their sys_ids id and names) to the table specified. |
Example:
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
let table = new SimpleTable('sys_report_chart'); ss.info(table.getChildTables()); //Info: [{"sys_id":"156836096302084733","name":"sys_report_chart_pie"},{"sys_id":"156836096401430308","name":"sys_report_chart_timed_trends"}, //{"sys_id":"156636392206287762","name":"sys_report_chart_timed"},{"sys_id":"156636392003126252","name":"sys_report_chart_bar"},{"sys_id":"156836096101018153", //"name":"sys_report_chart_timed_line"}] |
Table of Contents | ||||
---|---|---|---|---|
|