This commit is contained in:
@@ -133,6 +133,14 @@ namespace AyaNova.Biz
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Standard mini COLUMN definition
|
||||
public static string GenerateMINIListColumnJSON(AyaType defaultLinkType)
|
||||
{
|
||||
return $"[ {{\"cm\":\"_df_\",\"dt\":0,\"ay\":{(int)defaultLinkType}}},{{\"cm\":\"Widget\",\"dt\":{(int)AyaDataType.Text},\"ay\":{(int)defaultLinkType}}}]";
|
||||
}
|
||||
|
||||
|
||||
//Accept a json template
|
||||
//return a column list suitable for api list return
|
||||
public static string GenerateListColumnJSONFromTemplate(AyaType defaultLinkType, string ObjectKey, string template)
|
||||
@@ -149,8 +157,8 @@ namespace AyaNova.Biz
|
||||
|
||||
sb.Append("[");
|
||||
//_df_ First column is always the _df_ column
|
||||
sb.Append($"{{\"cm\":\"_df_\",\"dt\":{(int)defaultLinkType}}}");
|
||||
|
||||
sb.Append($"{{\"cm\":\"_df_\",\"dt\":0,\"ay\":{(int)defaultLinkType}}}");
|
||||
|
||||
foreach (string s in fullFields)
|
||||
{
|
||||
ObjectField o = fields.FirstOrDefault(x => x.Key == s);
|
||||
|
||||
Reference in New Issue
Block a user