Returns the names of all fields in a table or data source.
Syntax
settings.getFieldsList();
Arguments
No arguments.
Return value
An array containing field names. Returns an empty array if the data source has no fields.
Example
Display every field name and its label from the Customers table.
var settings = new ProjectSettings("Customers");
foreach (KeyValuePair<XVar, dynamic> field in settings.getFieldsList().GetEnumerator())
{
MVCFunctions.Echo(field.Value + ": " + settings.label(field.Value) + "<br>");
}
See also: