From 00cc32577c717e7c8a8eedda5f2f62c30b081158 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 4 Mar 2020 19:11:28 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 5 ++++- ayanova/src/components/gz-data-table.vue | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 7749eb97..689e5cf4 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -44,9 +44,12 @@ CURRENT TODOs @@@@@@@@@@@ ROADMAP STAGE 1 and 2: -todo: grid relative date tokens need to be substituted before query sent to server +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 + - This does *not* occur if I don't save it and it uses the unsaved cache instead + - It only "takes" if I switch to another listview or none then back again in teh drop down box, it's HARD caching the original value not refreshing it - maybe it thinks because it has an ID and that ID is the same that it doesn't need to refresh? - or maybe the cached local copy of that datalistview is not set (if there is one for saved dlv?) diff --git a/ayanova/src/components/gz-data-table.vue b/ayanova/src/components/gz-data-table.vue index bf97317a..4068215d 100644 --- a/ayanova/src/components/gz-data-table.vue +++ b/ayanova/src/components/gz-data-table.vue @@ -940,6 +940,10 @@ function untokenizeListView(lvJson) { var reto = {}; //copy over field name to return object reto.fld = lvo.fld; + //sort? + if (lvo.sort) { + reto.sort = lvo.sort; + } //does it have a filter? if (lvo.filter) { //yes, so copy / transform as required