This commit is contained in:
@@ -79,15 +79,18 @@ namespace AyaNova.Util
|
||||
|
||||
//WIDGET sample form customization
|
||||
{
|
||||
?? Should the template be an object or an array at the top
|
||||
//?? Should the template be an object or an array at the top
|
||||
//In other words is it correct below or in the TEST Project FormCustom code where it's directly an array
|
||||
//verify what is coming out of the test project in json first before this
|
||||
|
||||
//According to the internet (:)) an array or an object is a valid top level json root object so it could go either way and it's a matter of preference I guess
|
||||
|
||||
|
||||
var ct = ServiceProviderProvider.DBContext;
|
||||
var fc = new FormCustom()
|
||||
{
|
||||
FormKey = "widget",
|
||||
Template = @"{
|
||||
""template"": [
|
||||
Template = @"[
|
||||
{
|
||||
""fld"": ""WidgetNotes"",
|
||||
""required"": ""true""
|
||||
@@ -122,8 +125,7 @@ namespace AyaNova.Util
|
||||
""required"": ""false"",
|
||||
""type"": ""decimal""
|
||||
}
|
||||
]
|
||||
}"
|
||||
]"
|
||||
};
|
||||
|
||||
ct.FormCustom.Add(fc);
|
||||
|
||||
Reference in New Issue
Block a user