diff --git a/ayanova/src/components/gz-data-table.vue b/ayanova/src/components/gz-data-table.vue index 1997ef61..fab49444 100644 --- a/ayanova/src/components/gz-data-table.vue +++ b/ayanova/src/components/gz-data-table.vue @@ -456,6 +456,20 @@ export default { refresh() { this.getDataFromApi(); }, + getRowIds() { + //get selected row id's if there are selections else get all row id's + //called into from parent for things like reporting or bulk ops + if (this.selected.length > 0) { + //return row id's of selected items only + } + if (this.records.length > 0) { + //return row id's of all items + } + //no data, just return an empty array + return []; + // console.log("records:", this.records); + // console.log("selected:", this.selected); + }, handleSelectChange() { //due to making own template for items need to handle singleselect which only affects if select all checkbox at top is visible when making own item template if (this.singleSelect) { diff --git a/ayanova/src/views/ay-report-edit.vue b/ayanova/src/views/ay-report-edit.vue index b491e0f1..da87fc18 100644 --- a/ayanova/src/views/ay-report-edit.vue +++ b/ayanova/src/views/ay-report-edit.vue @@ -135,6 +135,9 @@ decision: how to handle opening report templates in the UI - should every report working widget template +Immediately render last report code needs proper implementation for both widget and widgets + currently it's nonsense + print / preview coded to work with saved report and renders build release for joyce to play with and give feedback diff --git a/ayanova/src/views/widget.vue b/ayanova/src/views/widget.vue index feee1738..75fa173a 100644 --- a/ayanova/src/views/widget.vue +++ b/ayanova/src/views/widget.vue @@ -630,7 +630,7 @@ async function clickHandler(menuItem) { break; case "report": if (m.id != null) { - //last report selected + //last report selected is in m.id m.vm.$router.push({ name: "ay-report", params: { recordid: m.id, ayatype: window.$gz.type.Widget } @@ -704,7 +704,7 @@ function generateMenu(vm) { }); } - //STUB REPORTS + //REPORTS //Report not Print, print is a further option menuOptions.menuItems.push({ title: "Report", diff --git a/ayanova/src/views/widgets.vue b/ayanova/src/views/widgets.vue index 5ea3bde2..9aac929b 100644 --- a/ayanova/src/views/widgets.vue +++ b/ayanova/src/views/widgets.vue @@ -1,5 +1,6 @@