This commit is contained in:
2020-02-27 18:57:42 +00:00
parent cf77a2d462
commit f650d5a104
2 changed files with 29 additions and 8 deletions

View File

@@ -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

View File

@@ -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(