This commit is contained in:
2020-01-15 21:56:46 +00:00
parent e1f92dfd5e
commit 490f637d15
2 changed files with 4 additions and 4 deletions

View File

@@ -135,7 +135,7 @@ namespace AyaNova.Biz
//Standard mini COLUMN definition
public static string GenerateMINIListColumnJSON(AyaType defaultLinkType)
public static string GenerateMINIListColumnsJSON(AyaType defaultLinkType)
{
return $"[ {{\"cm\":\"_df_\",\"dt\":0,\"ay\":{(int)defaultLinkType}}},{{\"cm\":\"Widget\",\"dt\":{(int)AyaDataType.Text},\"ay\":{(int)defaultLinkType}}}]";
}
@@ -143,7 +143,7 @@ namespace AyaNova.Biz
//Accept a json template
//return a column list suitable for api list return
public static string GenerateListColumnJSONFromTemplate(AyaType defaultLinkType, string ObjectKey, string template)
public static string GenerateListColumnsJSONFromTemplate(AyaType defaultLinkType, string ObjectKey, string template)
{
//parse the template
var jtemplate = JObject.Parse(template);

View File

@@ -330,11 +330,11 @@ namespace AyaNova.Biz
string ColumnsJSON = string.Empty;
if (listOptions.Mini)
{
ColumnsJSON = ObjectFields.GenerateMINIListColumnJSON(AyaType.Widget);
ColumnsJSON = ObjectFields.GenerateMINIListColumnsJSON(AyaType.Widget);
}
else
{
ColumnsJSON = ObjectFields.GenerateListColumnJSONFromTemplate(AyaType.Widget, ObjectFields.WIDGET_KEY, MOCK_WIDGET_DISPLAY_TEMPLATE_JSON);
ColumnsJSON = ObjectFields.GenerateListColumnsJSONFromTemplate(AyaType.Widget, ObjectFields.WIDGET_KEY, MOCK_WIDGET_DISPLAY_TEMPLATE_JSON);
}
//TODO: BUILD THE RETURN LIST OF DATA ITEMS