From f650d5a104b1fdec0b0ce29a3cf36160f334aa00 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 27 Feb 2020 18:57:42 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 9 +------- ayanova/src/components/gz-data-table.vue | 28 ++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 8 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index c4d03850..70573091 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -42,14 +42,6 @@ CURRENT ROADMAP CURRENT TODOs =-=-=-=-=-=-= - - - - -TODO: show current filter as text fragment in grid at bottom? (what does this bring?) - -todo: tags in ui shows equals seems to imply that all tags must equal selected value, sb contains instead I think becuase that's how it seems to act from user perspective - todo: tags in datatable display - remove the array brackets and the quotation marks - In wide format the column is really narrow for some reason which is increasing the row height quite a bit @@ -92,6 +84,7 @@ TODO: Add test for *NULL* and not *NULL* in datalistfilter tests as there curren TODO: ay-data-list-view initform code shows proper way to initialize and await each step - Take that model and look at all the other forms and ensure they work the same way TODO: Tag picker a bit buggy, when you type to search it retains the typed text in the entry box after selecting, it shouldn't + - possibly when type then make selection the typed part sb cleared after selection TODO: Custom fields test it out with grid, will likely need some field type code etc or is that already in the columns, not sure TODO: Tags in grid display, currently shows as an array of raw text with quotes, could be better displayed diff --git a/ayanova/src/components/gz-data-table.vue b/ayanova/src/components/gz-data-table.vue index d5f54ee6..cf90643e 100644 --- a/ayanova/src/components/gz-data-table.vue +++ b/ayanova/src/components/gz-data-table.vue @@ -550,6 +550,26 @@ function buildRecords(listData, columndefinitions) { var dataType = columndefinitions[iColumn].dt; var display = column.v; + /* + public enum UiFieldDataType : int + { + NoType = 0, + DateTime = 1, + Date = 2, + Time = 3, + Text = 4, + Integer = 5, + Bool = 6, + Decimal = 7, + Currency = 8, + Tags = 9, + Enum = 10, + EmailAddress = 11, + HTTP = 12, + InternalId = 13 + + } + */ switch (dataType) { case 1: //datetime format to shortdatetime display = window.$gz.locale.utcDateToShortDateAndTimeLocalized( @@ -583,6 +603,14 @@ function buildRecords(listData, columndefinitions) { languageName, currencyName ); + break; + case 9: //tags + if (display && display.length > 0) { + display = display.join(", "); + } else { + display = ""; + } + break; case 10: //enum display = window.$gz.enums.get(