From 2c647a1cc1747d9dd055bf3dc5ae071352000e8f Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 14 Jan 2020 18:55:53 +0000 Subject: [PATCH] --- ayanova/src/views/ay-customize.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ayanova/src/views/ay-customize.vue b/ayanova/src/views/ay-customize.vue index 42f72919..38c0bd41 100644 --- a/ayanova/src/views/ay-customize.vue +++ b/ayanova/src/views/ay-customize.vue @@ -358,10 +358,10 @@ function ensureTemplateIsInStore(vm) { //////////////////// // function initDataObject(vm) { - //http://localhost:7575/api/v8/FormCustom/AvailableFields/widget + //http://localhost:7575/api/v8/ObjectFields/ObjectFields/widget var url = - API_BASE_URL + "AvailableFields/" + vm.$route.params.formCustomTemplateKey; + "ObjectFields/ObjectFields/" + vm.$route.params.formCustomTemplateKey; return window.$gz.api.get(url).then(res => { if (res.error) { throw res.error; @@ -369,7 +369,7 @@ function initDataObject(vm) { //set vm.obj to the combined synthesized snapshot array of template and availble fields for working data for this form // - {key, ltdisplay, hideable, custom, required, hide, type} - //Iterate formAvailableFields + //Iterate ObjectFields //create a new object based on the f.a.f. item and any existing template values for that item for (var i = 0; i < res.data.length; i++) { @@ -409,7 +409,7 @@ function initDataObject(vm) { ); } - // vm.formAvailableFields = res.data; + }); } @@ -443,7 +443,7 @@ UI: List of fields in a grid: LTDisplay [FieldKey] , Visible, Required, DataType (if custom) -(Some items will have their visible or required read only because they are stock and can't be changed see FormAvailableFields.cs in server) +(Some items will have their visible or required read only because they are stock and can't be changed see ObjectFields.cs in server) (A required field by default can't be hidden, setting to required automatically toggles hidden=false here but reverse doesn't do the opposite) TODO: