ArcGIS for Developers

SqlFieldList QML Type

Provides functions to describe fields. More...

Import Statement: import ArcGIS.AppFramework.Sql 1.0

Properties

Signals

Methods

Detailed Description

The SqlFieldList component is used to help working with fields of a database record from a database table or query (such as SqlTable, SqlTableModel, SqlQuery, or SqlQueryModel).

Property Documentation

[read-only] count : int

Returns the number of fields in the list.


Signal Documentation

changed()

Signal emitted when the SqlFieldList object called on by SqlTable's fields property has changed.


Method Documentation

SqlField field(name)

Returns the field called name. If no such field exists, this method returns an SqlField object with isValid set to false.

The name parameter

The name of the field to return.


SqlField field(index)

Returns the field at the given index position. If the index is out of range, returns an empty string.

The index parameter

The index number of the field to return.


string fieldName(index)

Returns the name of the field at the given index position. If the field does not exist, this method returns an empty string.

The index parameter

The index number of the field to return the name of.


int indexOf(name)

Returns the position of the field with the given name within the index. If no field with this name can be found, returns -1. If more than one field name matches, the first one is returned. Be aware that field names are not case-sensitive.

The name parameter

The name of the field to return the index of.