This commit is contained in:
2020-01-15 21:57:45 +00:00
parent 490f637d15
commit 6a842ea063

View File

@@ -163,11 +163,9 @@ namespace AyaNova.Biz
{
ObjectField o = fields.FirstOrDefault(x => x.Key == s);
if (o != null)
{//Here is where we can vet the field name, if it doesn't exist though, for now we'll just ignore it
if (!isFirstColumn)
{
sb.Append(",");
}
{//Here is where we can vet the field name, if it doesn't exist though, for now we'll just ignore those ones
sb.Append(",");
sb.Append("{");
//Build required part of column definition
sb.Append($"\"cm\":\"{o.Key}\",\"dt\":{(int)o.DataType}");
@@ -177,7 +175,7 @@ namespace AyaNova.Biz
sb.Append($",\"ay\":{(int)o.AyObjectType}");
sb.Append("}");
isFirstColumn = false;
}
}
sb.Append("]");