This commit is contained in:
2020-01-14 18:55:53 +00:00
parent ad0f5ca8c3
commit 2c647a1cc1

View File

@@ -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: