This commit is contained in:
@@ -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}}}]");
|
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
|
//parse the template
|
||||||
var jtemplate = JObject.Parse(template);
|
var jtemplate = JObject.Parse(template);
|
||||||
@@ -77,7 +77,7 @@ namespace AyaNova.DataList
|
|||||||
}
|
}
|
||||||
sb.Append("]");
|
sb.Append("]");
|
||||||
|
|
||||||
return sb.ToString();
|
return JArray.Parse(sb.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
//make sure the template parses and all the fields specified are really existant
|
//make sure the template parses and all the fields specified are really existant
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ namespace AyaNova.DataList
|
|||||||
string DefaultDataListDisplayTemplate { get; set; }
|
string DefaultDataListDisplayTemplate { get; set; }
|
||||||
|
|
||||||
object GenerateMINIListColumnsJSON();
|
object GenerateMINIListColumnsJSON();
|
||||||
string GenerateListColumnsJSONFromTemplate(string template);
|
object GenerateListColumnsJSONFromTemplate(string template);
|
||||||
|
|
||||||
bool ValidateTemplate(string template);
|
bool ValidateTemplate(string template);
|
||||||
|
|
||||||
|
|||||||
@@ -408,7 +408,7 @@ namespace AyaNova
|
|||||||
// ******************** TESTING WIPE DB *****************************
|
// ******************** TESTING WIPE DB *****************************
|
||||||
//
|
//
|
||||||
//Set this to true to wipe the db and reinstall a trial license and re-seed the data
|
//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)
|
#if (DEBUG)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user