Returns the names of the key fields of a table. A table can have one key field, multiple key fields, or no key fields.
Syntax
settings.getTableKeys();
Arguments
No arguments.
Return value
An array containing the names of the table's key fields. Returns an empty array if the table has no key fields.
Example
Display the key fields of the Orders table.
var settings = new ProjectSettings("Orders");
var keyFields = settings.getTableKeys();
foreach (KeyValuePair<XVar, dynamic> field in keyFields.GetEnumerator())
{
MVCFunctions.Echo(field.Value + "<br>");
}
See also: