This commit is contained in:
@@ -51,6 +51,7 @@ namespace AyaNova.DataList
|
|||||||
|
|
||||||
sb.Append("[");
|
sb.Append("[");
|
||||||
|
|
||||||
|
bool FirstColumnAdded = false;
|
||||||
|
|
||||||
foreach (string s in ListViewFieldKeys)
|
foreach (string s in ListViewFieldKeys)
|
||||||
{
|
{
|
||||||
@@ -66,6 +67,7 @@ namespace AyaNova.DataList
|
|||||||
if (o != null)
|
if (o != null)
|
||||||
{//Here is where we can vet the field name, if it doesn't exist. For production we'll just ignore those ones
|
{//Here is where we can vet the field name, if it doesn't exist. For production we'll just ignore those ones
|
||||||
|
|
||||||
|
if (!FirstColumnAdded)
|
||||||
sb.Append(",");
|
sb.Append(",");
|
||||||
sb.Append("{");
|
sb.Append("{");
|
||||||
//Build required part of column definition
|
//Build required part of column definition
|
||||||
@@ -76,7 +78,8 @@ namespace AyaNova.DataList
|
|||||||
sb.Append($",\"ay\":{(int)o.AyaObjectType}");
|
sb.Append($",\"ay\":{(int)o.AyaObjectType}");
|
||||||
|
|
||||||
//Row ID column?
|
//Row ID column?
|
||||||
if(o.IsRowId){
|
if (o.IsRowId)
|
||||||
|
{
|
||||||
sb.Append($",\"rid\":1");
|
sb.Append($",\"rid\":1");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -85,6 +88,7 @@ namespace AyaNova.DataList
|
|||||||
sb.Append($",\"et\":\"{AyaNova.Util.StringUtil.TrimTypeName(o.EnumType)}\"");
|
sb.Append($",\"et\":\"{AyaNova.Util.StringUtil.TrimTypeName(o.EnumType)}\"");
|
||||||
|
|
||||||
sb.Append("}");
|
sb.Append("}");
|
||||||
|
FirstColumnAdded = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user