getformListTitleField function
Implementation
String getformListTitleField(SqfEntityTableBase table) {
String fieldName = '';
if (table.formListTitleField != null) {
fieldName = table.formListTitleField!;
} else {
for (final field in table.fields!) {
if (field is! SqfEntityFieldVirtualBase) {
if (field.dbType == DbType.text) {
fieldName = field.fieldName!;
break;
}
}
}
if (fieldName.isEmpty) {
fieldName = table.primaryKeyNames[0];
}
}
return fieldName;
}