This commit is contained in:
2020-03-04 19:14:38 +00:00
parent 00cc32577c
commit b4e9f9f1d1
2 changed files with 5 additions and 15 deletions

View File

@@ -44,7 +44,7 @@ CURRENT TODOs
@@@@@@@@@@@ ROADMAP STAGE 1 and 2:
todo: order by not working?
todo: when making change to listview filter for saved datalistview and then returning to datatable it's *not* using the latest changes
- This is if I SAVE it after editing it in the listview editor

View File

@@ -751,16 +751,6 @@ async function fetchEnums(columnData) {
}
}
// /////////////////////////////////
// //
// //
// function initForm(vm) {
// return populatePickLists(vm);
// // //rehydrate last form settings
// // loadFormSettings(vm);
// // vm.loading = false;
// // vm.getDataFromApi();
// }
/////////////////////////////////
//
@@ -914,7 +904,7 @@ function loadFormSettings(vm) {
function untokenizeListView(lvJson) {
//if it has one or more tokens
//iterate the array and build a new array with substituted tokens with the correct date and time in them
console.log(lvJson);
//console.log(lvJson);
//format of a date token filter
//[{"fld":"widgetname"},{"fld":"widgetstartdate","filter":{"items":[{"op":"=","value":"*past90days*","token":true}]}},{"fld":"widgetenddate"}]
@@ -926,7 +916,7 @@ function untokenizeListView(lvJson) {
return lvJson;
}
console.log("WE HAVE TOKENS...PROCESSING...");
// console.log("WE HAVE TOKENS...PROCESSING...");
//we have one or more tokens, substitute them in the filter array
var ret = [];
var lv = JSON.parse(lvJson);
@@ -994,8 +984,8 @@ function untokenizeListView(lvJson) {
ret.push(reto);
//end of iterate lv loop
}
console.log("After processing:");
console.log(JSON.stringify(ret));
// console.log("After processing:");
// console.log(JSON.stringify(ret));
return JSON.stringify(ret);
} //[{"fld":"widgetname"},{"fld":"widgetstartdate","filter":{"items":[{"op":"=","value":"*past90days*","token":true}]}},{"fld":"widgetenddate"}]
</script>