This commit is contained in:
2020-11-23 20:53:09 +00:00
parent cf14aeeea1
commit eadc5be163

View File

@@ -16,8 +16,8 @@ namespace AyaNova.DataList
//Default ListView
dynamic dlistView = new JArray();
dynamic cm = new JObject();
dynamic cm = new JObject();
cm.fld = "notedate";
dlistView.Add(cm);
@@ -25,7 +25,7 @@ namespace AyaNova.DataList
cm.fld = "notes";
dlistView.Add(cm);
cm = new JObject();
cm = new JObject();
cm.fld = "username";
dlistView.Add(cm);
DefaultListView = dlistView.ToString(Newtonsoft.Json.Formatting.None);
@@ -34,7 +34,7 @@ namespace AyaNova.DataList
//NOTE: Due to the join, all the sql id and name fields that can conflict with the joined table need to be specified completely
FieldDefinitions = new List<AyaDataListFieldDefinition>();
FieldDefinitions.Add(new AyaDataListFieldDefinition
FieldDefinitions.Add(new AyaDataListFieldDefinition
{
TKey = "User",
FieldKey = "username",
@@ -42,7 +42,7 @@ namespace AyaNova.DataList
UiFieldDataType = (int)UiFieldDataType.Text,
SqlIdColumnName = "auser.id",
SqlValueColumnName = "auser.name",
IsRowId=true
IsRowId = true
});
@@ -64,6 +64,6 @@ namespace AyaNova.DataList
UiFieldDataType = (int)UiFieldDataType.DateTime,
SqlValueColumnName = "acustomernote.notedate"
});
}
}
}//eoc
}//eons