This commit is contained in:
2021-01-27 22:18:51 +00:00
parent 92cc3ebbd1
commit e83a389b72
2 changed files with 49 additions and 44 deletions

View File

@@ -15,27 +15,30 @@ namespace AyaNova.DataList
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
//######## DEFAULT VIEW WHEN NO VIEW CHOSEN ############
// //######## DEFAULT VIEW WHEN NO VIEW CHOSEN ############
dynamic dlistView = new JArray();
// dynamic dlistView = new JArray();
dynamic cm = new JObject();
cm.fld = "ReminderName";
dlistView.Add(cm);
// dynamic cm = new JObject();
// cm.fld = "ReminderName";
// dlistView.Add(cm);
cm = new JObject();
cm.fld = "ReminderNotes";
dlistView.Add(cm);
// cm = new JObject();
// cm.fld = "ReminderNotes";
// dlistView.Add(cm);
cm = new JObject();
cm.fld = "ReminderStopDate";
dlistView.Add(cm);
// cm = new JObject();
// cm.fld = "ReminderStopDate";
// dlistView.Add(cm);
cm = new JObject();
cm.fld = "ReminderStartDate";
dlistView.Add(cm);
// cm = new JObject();
// cm.fld = "ReminderStartDate";
// dlistView.Add(cm);
DefaultListView = dlistView.ToString(Newtonsoft.Json.Formatting.None);
// DefaultListView = dlistView.ToString(Newtonsoft.Json.Formatting.None);
DefaultColumns = new List<string>() { "ReminderName", "ReminderNotes", "ReminderStopDate", "ReminderStartDate" };
DefaultSortBy = new Dictionary<string, string>() { { "ReminderStopDate", "-" } };
//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>();