From 2b5f210f4aaf16fd48a3d976ccbef1915e0b65cd Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 4 Mar 2020 00:05:56 +0000 Subject: [PATCH] --- ayanova/src/api/relative-date-filter-calculator.js | 13 +++++++++++++ ayanova/src/components/gz-data-table.vue | 2 ++ 2 files changed, 15 insertions(+) diff --git a/ayanova/src/api/relative-date-filter-calculator.js b/ayanova/src/api/relative-date-filter-calculator.js index 595f6682..153ab22d 100644 --- a/ayanova/src/api/relative-date-filter-calculator.js +++ b/ayanova/src/api/relative-date-filter-calculator.js @@ -1,5 +1,18 @@ // //TODO: Replace all this server code with equivalent client code + +//EXAMPLE FROM INTEGRATION TEST OF BETWEEN TWO DATES +// dynamic fitem = new JObject(); +// fitem.op = Util.OpGreaterThanOrEqualTo; +// fitem.value = new DateTime(2019, 3, 12, 10, 0, 0).ToOffsetAdjustedUniversalTime(); +// items.Add(fitem); + +// fitem = new JObject(); +// fitem.op = Util.OpLessThanOrEqualTo; +// fitem.value = new DateTime(2019, 3, 12, 11, 0, 0).ToOffsetAdjustedUniversalTime(); +// items.Add(fitem); + + // namespace AyaNova.DataList // { // public static class DataListFilterSpecialToken diff --git a/ayanova/src/components/gz-data-table.vue b/ayanova/src/components/gz-data-table.vue index 7884f3d4..7eec16c8 100644 --- a/ayanova/src/components/gz-data-table.vue +++ b/ayanova/src/components/gz-data-table.vue @@ -908,6 +908,8 @@ function untokenizeListView(lv) { if (lv.indexOf('"token":true') == -1) { return; } + //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(lv); console.log(JSON.parse(lv)); }