This commit is contained in:
2020-01-23 20:44:02 +00:00
parent 4267b4682d
commit 932255d0d1
3 changed files with 4 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ namespace AyaNova.DataList
return JArray.Parse($"[ {{\"cm\":\"df\",\"dt\":0,\"ay\":{(int)DefaultListObjectType}}},{{\"cm\":\"Widget\",\"dt\":{(int)AyaUiFieldDataType.Text},\"ay\":{(int)DefaultListObjectType}}}]");
}
public string GenerateListColumnsJSONFromTemplate(string template)
public object GenerateListColumnsJSONFromTemplate(string template)
{
//parse the template
var jtemplate = JObject.Parse(template);
@@ -77,7 +77,7 @@ namespace AyaNova.DataList
}
sb.Append("]");
return sb.ToString();
return JArray.Parse(sb.ToString());
}
//make sure the template parses and all the fields specified are really existant

View File

@@ -29,7 +29,7 @@ namespace AyaNova.DataList
string DefaultDataListDisplayTemplate { get; set; }
object GenerateMINIListColumnsJSON();
string GenerateListColumnsJSONFromTemplate(string template);
object GenerateListColumnsJSONFromTemplate(string template);
bool ValidateTemplate(string template);

View File

@@ -408,7 +408,7 @@ namespace AyaNova
// ******************** TESTING WIPE DB *****************************
//
//Set this to true to wipe the db and reinstall a trial license and re-seed the data
var TESTING_REFRESH_DB = true;//#######################################################################################
var TESTING_REFRESH_DB = false;//#######################################################################################
#if (DEBUG)