diff --git a/ayanova/src/components/custom-fields-control.vue b/ayanova/src/components/custom-fields-control.vue index f0f1fef5..e3b6bd07 100644 --- a/ayanova/src/components/custom-fields-control.vue +++ b/ayanova/src/components/custom-fields-control.vue @@ -16,22 +16,28 @@ @@ -52,11 +58,15 @@ * * 2) Generate the controls dynamically based on the template * Possible types are: - * ret.Add(AyDataType.Date); - ret.Add(AyDataType.Text); - ret.Add(AyDataType.Integer); - ret.Add(AyDataType.Bool); - ret.Add(AyDataType.Decimal); + * + public const string Currency = "currency"; + public const string Date = "date"; + public const string Time = "time"; + public const string DateTime = "datetime"; + public const string Text = "text"; + public const string Number = "number"; //decimal regardless + public const string Bool = "bool"; + TEMPLATE: [ { "fld": "WidgetNotes", "required": "true" }, { "fld": "WidgetCustom1", "hide": "false", "required": "false", "type": "date" }, { "fld": "WidgetCustom2", "hide": "false", "required": "true", "type": "text" }, { "fld": "WidgetCustom3", "hide": "false", "required": "false", "type": "int" }, { "fld": "WidgetCustom4", "hide": "false", "required": "false", "type": "bool" }, { "fld": "WidgetCustom5", "hide": "false", "required": "false", "type": "decimal" } ]