This commit is contained in:
2019-01-15 19:57:09 +00:00
parent b8e9e5ef48
commit e94d7be977
2 changed files with 3 additions and 43 deletions

View File

@@ -25,6 +25,8 @@ SERVER
- Resource localization edit wherever possible to change "Common*" such as "CommonActive" to remove the "common" part wherever possible.
- Also check if used anywhere in client or at server and rename there too
- Error messages from the API, shouldn't they be localized??
- CUSTOM FIELDS?!
- CUSTOM FIELDS (case 3426)

View File

@@ -184,49 +184,7 @@ namespace AyaNova.Biz
var ValidFormFields = FormAvailableFields.FormFields(inObj.FormKey);
try
{
var v = JArray.Parse(inObj.Template);
/*
Example:
{template:[{fld:"ltkeyfieldname",hide:"true/false",required:"true/false", type:"bool"},{fld:"ltkeyfieldname",hide:"true/false",required:"true/false", type:"text"]}
*/
//Validate the following:
//All fields specified are valid values
//Field is allowed to be hidden if hidden
//Type is one of the valid types:
/*
public const string Date = "date";
public const string Text = "text";
public const string Integer = "int";
public const string Bool = "bool";
public const string Decimal = "decimal";
*/
//TODO: validate the json
/*
- JSON FRAGMENT holds items that differ from stock, no "core" fields allowed
- FieldKey
- Hide
- Required
- Type (checkbox, date, date time, decimal, number, picklist(FUTURE), and text)
{[
{
"fld": "WidgetCustom1",
"hide": false,
"required": true,
"type": "date"
},
{
"fld": "WidgetCustom2",
"hide": true,
"required": false,
"type": "bool"
}
]}
*/
var v = JArray.Parse(inObj.Template);
for (int i = 0; i < v.Count; i++)
{