This commit is contained in:
@@ -3,6 +3,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using AyaNova.Biz;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace AyaNova.DataList
|
||||
{
|
||||
@@ -44,6 +45,10 @@ namespace AyaNova.DataList
|
||||
public Newtonsoft.Json.Linq.JArray GenerateListColumnsJSONFromListView(JArray listViewArray)
|
||||
{
|
||||
|
||||
//custom fields handling
|
||||
var ct = AyaNova.Util.ServiceProviderProvider.DBContext;
|
||||
var FormCustomization = ct.FormCustom.AsNoTracking().SingleOrDefault(x => x.FormKey == AyaType.Widget.ToString());
|
||||
|
||||
var ListViewFieldKeys = GetFieldListFromListView(listViewArray);
|
||||
|
||||
//Generate JSON fragment to return with column definitions
|
||||
@@ -71,7 +76,12 @@ namespace AyaNova.DataList
|
||||
sb.Append(",");
|
||||
sb.Append("{");
|
||||
//Build required part of column definition
|
||||
sb.Append($"\"cm\":\"{o.LtKey}\",\"dt\":{(int)o.UiFieldDataType}");
|
||||
if (!o.IsCustomField)
|
||||
sb.Append($"\"cm\":\"{o.LtKey}\",\"dt\":{(int)o.UiFieldDataType}");
|
||||
else
|
||||
{
|
||||
//insert specific type for this custom field
|
||||
}
|
||||
|
||||
//Has a AyObjectType? (linkable / openable)
|
||||
if (o.AyaObjectType != 0)
|
||||
|
||||
Reference in New Issue
Block a user