all apparently working and cleaned up

This commit is contained in:
2020-06-10 21:40:05 +00:00
parent 0a43e53ab7
commit 3dd7e05549
9 changed files with 12 additions and 985 deletions

View File

@@ -904,7 +904,6 @@ 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);
//format of a date token filter
//[{"fld":"widgetname"},{"fld":"widgetstartdate","filter":{"items":[{"op":"=","value":"*past90days*","token":true}]}},{"fld":"widgetenddate"}]
@@ -916,7 +915,6 @@ function untokenizeListView(lvJson) {
return lvJson;
}
// console.log("WE HAVE TOKENS...PROCESSING...");
//we have one or more tokens, substitute them in the filter array
let ret = [];
let lv = JSON.parse(lvJson);
@@ -984,8 +982,7 @@ function untokenizeListView(lvJson) {
ret.push(reto);
//end of iterate lv loop
}
// 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>