This commit is contained in:
2020-01-21 23:18:29 +00:00
parent 7bb23fedd3
commit aac48abf0c
6 changed files with 24 additions and 25 deletions

View File

@@ -11,6 +11,12 @@ namespace AyaNova.DataList
SQLFrom = "from awidget left outer join auser on (awidget.userid=auser.id)";
AllowedRoles = AuthorizationRoles.AllInternalStaff;//anyone but clients and subcontractors (just for test)
DefaultListObjectType = AyaType.Widget;
DefaultDataListDisplayTemplate = @"
{
""full"":[""widgetname"",""widgetserial"",""widgetdollaramount"",""widgetroles"",""widgetstartdate"",""widgetactive"",""username""],
""mini"":[""widgetname"",""widgetserial""]
}
";
//NOTE: Due to the join, all the sql id and name fields that can conflict with the joined (in this case User) table need to be specified completely
FieldDefinitions = new List<AyaDataListFieldDefinition>();