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