Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > Project Settings API > Methods

Project Settings API: getFieldsList()

Scroll Prev Next More

 

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.

$settings = new ProjectSettings("Customers");
 
foreach ($settings->getFieldsList() as $field)
{
echo $field . ": " . $settings->label($field) . "<br>";
}

See also:

label()

About Project Settings API

Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software