This commit is contained in:
2020-02-10 22:23:21 +00:00
parent 97ebb7c191
commit 3c5890bc7b
2 changed files with 17 additions and 102 deletions

View File

@@ -520,12 +520,12 @@ function buildRecords(listData, columndefinitions, filters) {
break;
case 10: //enum
//TODO: Need enum translator
//AuthorizationRoles.128
//window.$gz.local.enumLocalized(enumType, enumValue)
//(in locale) check if have that type already featched, if not fetches the whole list and caches it locally
//also a method to return the list of enumerated types in ID order with localized names
//window.$gz.local.enumList(enumType) - returns a list usable on edit forms
/* enums: {
//AuthorizationRoles.128
//window.$gz.local.enumLocalized(enumType, enumValue)
//(in locale) check if have that type already featched, if not fetches the whole list and caches it locally
//also a method to return the list of enumerated types in ID order with localized names
//window.$gz.local.enumList(enumType) - returns a list usable on edit forms
/* enums: {
AuthorizationRoles0:"No role",
AuthorizationRoles1:"Business admin limited"
etc
@@ -536,7 +536,7 @@ function buildRecords(listData, columndefinitions, filters) {
This way entirely bypasses locale stuff
//big object so maybe it's own thing, not part of locale at all or locale fronts for it??
*/
window.$gz.enums.getEnumList(columndefinitions[iColumn].et);
window.$gz.enums.getEnumList(columndefinitions[iColumn].et);
display = columndefinitions[iColumn].et + "." + display;
break;
default: