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