This commit is contained in:
2020-03-04 00:17:09 +00:00
parent 2b5f210f4a
commit 1631e6b39b
2 changed files with 68 additions and 76 deletions

View File

@@ -320,6 +320,8 @@
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* Xeslint-disable */
////////////////////////////////////////////////////////////////////////////////////////////////////////////
import relativeDatefilterCalculator from "../api/relative-date-filter-calculator.js";
export default {
data() {
return {
@@ -897,6 +899,16 @@ function loadFormSettings(vm) {
}
}
/*//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); */
////////////////////
//
function untokenizeListView(lv) {
@@ -911,6 +923,8 @@ function untokenizeListView(lv) {
//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));
//console.log(JSON.parse(lv));
console.log("test:yesterday");
console.log(relativeDatefilterCalculator.tokenToDates("*yesterday*"));
}
</script>