This commit is contained in:
@@ -4,7 +4,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
internal class EventDataList : DataListProcessingBase
|
||||
{
|
||||
public EventDataList()
|
||||
public EventDataList(long translationId)
|
||||
{
|
||||
//NOTE: used this type because it's full BizFull and read only Bizrestricted only which is appropriate and there is no event type
|
||||
DefaultListAType = AyaType.Global;
|
||||
@@ -13,6 +13,7 @@ namespace AyaNova.DataList
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "eventcreated", "event", "object", "AyaType", "username", "textra" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "eventcreated", "-" } };
|
||||
|
||||
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
@@ -48,7 +49,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "object",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "aevent.ayid",
|
||||
SqlValueColumnName = $"AYGETNAME(aevent.ayid, aevent.ayatype,{CurrentUserTranslationId})",
|
||||
SqlValueColumnName = $"AYGETNAME(aevent.ayid, aevent.ayatype,{translationId})",
|
||||
SqlATypeColumnName = "aevent.ayatype"
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user