This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user