diff --git a/devdocs/specs/core-custom-fields.txt b/devdocs/specs/core-custom-fields.txt new file mode 100644 index 00000000..91a4b91b --- /dev/null +++ b/devdocs/specs/core-custom-fields.txt @@ -0,0 +1,7 @@ +# Custom fields specifications + + +16 custom fields for most object +custom fields can be returned in datalists +Custom fields cannot be sorted or filtered since they don't really exist in the db +AyaNova will do it's best to show them in a grid view and on reports in the format chosen by user \ No newline at end of file diff --git a/server/AyaNova/DataList/DataListSqlSelectBuilder.cs b/server/AyaNova/DataList/DataListSqlSelectBuilder.cs index f7136ae6..0ae8769d 100644 --- a/server/AyaNova/DataList/DataListSqlSelectBuilder.cs +++ b/server/AyaNova/DataList/DataListSqlSelectBuilder.cs @@ -58,7 +58,8 @@ namespace AyaNova.DataList if (o.IsCustomField && !CustomFieldIncluded) { //if any are custom field then add custom fields column to query CustomFieldIncluded=true; - + sb.Append(", "); + sb.Append(o.GetSqlValueColumnName()); } else {