This commit is contained in:
@@ -23,6 +23,10 @@ namespace AyaNova.DataList
|
||||
|
||||
cm = new JObject();
|
||||
cm.fld = "ayatype";
|
||||
dlistView.Add(cm);
|
||||
|
||||
cm = new JObject();
|
||||
cm.fld = "ayatypeex";
|
||||
dlistView.Add(cm);
|
||||
|
||||
cm = new JObject();
|
||||
@@ -76,6 +80,19 @@ namespace AyaNova.DataList
|
||||
SqlValueColumnName = "afileattachment.AttachToObjectType"
|
||||
});
|
||||
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
{
|
||||
TKey = "AyaType",
|
||||
FieldKey = "ayatypeex",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
// EnumType = AyaNova.Util.StringUtil.TrimTypeName(typeof(AyaType).ToString()),
|
||||
SqlIdColumnName = "afileattachment.AttachToObjectid",
|
||||
SqlValueColumnName = "AYGETNAME(afileattachment.AttachToObjectid, afileattachment.attachtoobjecttype)",
|
||||
SqlAyTypeColumnName = "afileattachment.attachtoobjecttype"
|
||||
});
|
||||
|
||||
|
||||
FieldDefinitions.Add(new AyaDataListFieldDefinition
|
||||
{
|
||||
TKey = "FileSize",
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace AyaNova.DataList
|
||||
//CLIENT / SERVER - client display server validation purposes
|
||||
public bool IsSortable { get; set; }
|
||||
|
||||
//CLIENT / SERVER - indicates internal only meta column, don't show to user for filter settings etc
|
||||
//CLIENT / SERVER - indicates internal only meta column, don't show to user for filter settings etc
|
||||
public bool IsMeta { get; set; }
|
||||
|
||||
//CLIENT Use only for display
|
||||
@@ -46,8 +46,8 @@ namespace AyaNova.DataList
|
||||
public string SqlIdColumnName { get; set; }
|
||||
[JsonIgnore]
|
||||
public string SqlValueColumnName { get; set; }
|
||||
|
||||
|
||||
[JsonIgnore]
|
||||
public string SqlAyTypeColumnName { get; set; }//column to fetch the AyaType for this field to set it dynamically instead of preset
|
||||
|
||||
|
||||
|
||||
@@ -59,9 +59,10 @@ namespace AyaNova.DataList
|
||||
IsFilterable = true;
|
||||
IsSortable = true;
|
||||
IsRowId = false;
|
||||
IsMeta=false;
|
||||
IsMeta = false;
|
||||
//Set openable object type to no type which is the default and means it's not a link to another object
|
||||
AyaObjectType = (int)AyaType.NoType;
|
||||
SqlAyTypeColumnName=string.Empty;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace AyaNova.DataList
|
||||
|
||||
|
||||
|
||||
TODO: have to figure out how to include name and openable link to object in reminder
|
||||
// TODO: have to figure out how to include name and openable link to object in reminder
|
||||
//or do I?... outstanding for sure
|
||||
//The only efficient way to do this would be a Function that is outer joined to fetch the names
|
||||
//maybe that's an option, look into a query that joins tables to Function
|
||||
|
||||
Reference in New Issue
Block a user