This commit is contained in:
2020-06-22 13:15:54 +00:00
parent 2e6f00e824
commit 69bd580865
2 changed files with 33 additions and 16 deletions

View File

@@ -842,21 +842,38 @@ function loadFormSettings(vm) {
}
}
//process TEMP form settings
if (formSettings.temp) {
if (formSettings.temp.page) {
vm.dataTablePagingOptions.page = formSettings.temp.page;
}
// //process TEMP form settings
// if (formSettings.temp!=null) {
// if (formSettings.temp.page) {
// vm.dataTablePagingOptions.page = formSettings.temp.page;
// }
//check for cached local copy of saved list view in use
if (vm.listViewId > 0) {
//0=no list view, -1=unsaved list view so any number greater than zero means there sb a cached local copy of a saved list view
if (formSettings.temp && formSettings.temp.cachedListView != null) {
vm.listView = formSettings.temp.cachedListView;
} else {
//fetch it and cache it
return fetchListView(vm, vm.listViewId);
}
// //check for cached local copy of saved list view in use
// if (vm.listViewId > 0) {
// //0=no list view, -1=unsaved list view so any number greater than zero means there sb a cached local copy of a saved list view
// if (formSettings.temp && formSettings.temp.cachedListView != null) {
// vm.listView = formSettings.temp.cachedListView;
// } else {
// //fetch it and cache it
// return fetchListView(vm, vm.listViewId);
// }
// }
// }
//process TEMP form settings
if (formSettings.temp && formSettings.temp.page) {
vm.dataTablePagingOptions.page = formSettings.temp.page;
}
//check for cached local copy of saved list view in use
if (vm.listViewId > 0) {
//0=no list view, -1=unsaved list view so any number greater than zero means there sb a cached local copy of a saved list view
if (formSettings.temp && formSettings.temp.cachedListView != null) {
vm.listView = formSettings.temp.cachedListView;
} else {
//fetch it and cache it
return fetchListView(vm, vm.listViewId);
}
}
}