From fd5b9b418ad37332eec383759b56a3ded8040375 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 23 Oct 2020 15:00:59 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 7 +++---- ayanova/src/components/gz-data-table.vue | 2 +- ayanova/src/views/widgets.vue | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 7dade73b..b195c64d 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -3,13 +3,12 @@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ -todo: export from grid to xls, csv etc. - Decide, do we need this now? V.Next? - What purpose does it serve our potential customers? - Isn't it really just used to get out of AyaNova into another package? +todo: export from grid to xls, csv etc. PLAN: Export via extensions menu system Export as either json or csv supported + todo: client data list and server biz object get id's code remove "report" terminology and replace with neutral terms + getReportDataOptions -> getDataListSelection todo: Modify extensions to automatically assume *all* record ID's from the grid list just as report does when nothing selected so it shouldn't say zero items selected, it should say "All records in list" instead todo: Modify extensions that exist to work with all id's in the datalist instead if none selected (just like report does, re-use report code) diff --git a/ayanova/src/components/gz-data-table.vue b/ayanova/src/components/gz-data-table.vue index 00d1a7a1..ee5553f4 100644 --- a/ayanova/src/components/gz-data-table.vue +++ b/ayanova/src/components/gz-data-table.vue @@ -456,7 +456,7 @@ export default { refresh() { this.getDataFromApi(); }, - getReportDataOptions(ayaType) { + getDataListSelection(ayaType) { let vm = this; //called when parent form needs the selected id's or the list view options needed to rehydrate the entire list of id's in the same order and filter //i.e. for reporting, bulk operations etc diff --git a/ayanova/src/views/widgets.vue b/ayanova/src/views/widgets.vue index fba31ffd..42d519d6 100644 --- a/ayanova/src/views/widgets.vue +++ b/ayanova/src/views/widgets.vue @@ -80,7 +80,7 @@ async function clickHandler(menuItem) { //general report selector chosen let res = await m.vm.$refs.reportSelector.open( - m.vm.$refs.gzdatatable.getReportDataOptions(window.$gz.type.Widget) + m.vm.$refs.gzdatatable.getDataListSelection(window.$gz.type.Widget) ); //if null for no selection