diff --git a/ayanova/src/views/ay-data-list-view.vue b/ayanova/src/views/ay-data-list-view.vue index d895dd48..4f360efa 100644 --- a/ayanova/src/views/ay-data-list-view.vue +++ b/ayanova/src/views/ay-data-list-view.vue @@ -172,7 +172,10 @@ v-model="item.tempFilterValue" > - fa-plus {{ item }} @@ -378,6 +381,26 @@ export default { this.obj.splice(newIndex, 0, this.obj.splice(index, 1)[0]); }, + addFilterCondition(item) { + //push tempFilter item into item.filter.items array + // tempFilterOperator: null​ + //tempFilterToken: "*yesterday*"​ + //tempFilterValue: null + /* + FilterItem.fld = "widgetstartdate"; + FilterItem.op = Util.OpEquality; + FilterItem.value = TokenYesterday; + + Dates have special values in tempFilterToken that must be handled specially + if Date tempfiltertoken is *select* then no special value token is in use like YESTERDAY + everything has special values in the tempfilterOperator of two choices *NOVALUE* or *HASVALUE*, otherwise it's a straight up filter operator + + In all other cases than above tempfilterOperator is relevant and tempFilterValue is relevant + TODO: sample fragment of each kind as are done I guess + TODO: DataTAble needs to pre-process filter to substitute tokens on the fly before sending to the server + */ + console.log(item); + }, form() { return window.$gz.form; },