diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 5112d57b..bfbdf197 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -9,18 +9,9 @@ MISC ITEMS THAT CAME UP ## CLIENT MISC ITEMS - -todo: Date input shows higher than other components in forms - date only input read only format see CSR form created field - -todo: test errors on widget form for all controls - Have a test route at server on an update to return all the errors for all the fields possible as well as server generalerror - this way can see at a glance that all the controls are properly displaying their errrors - -todo: all picklists of objects htat have tags should by default include tags as the last field - this is to support choosing by tag as the feature isn't very useful if you can't see the tags that come back - todo: search form object list add service bank + should open to data-table list of that item + todo: Attachments button should indicate attachments: Flags hasattachments status visually, do it! (Says add attachment when none) @@ -33,7 +24,16 @@ todo: WHEN HAVE WORKORDER FORM customer popup notes need to pop pop pop, forgot ## SERVER MISC ITEMS - +todo: all the GetSearchResultSummary functions need to use the getasync or at least no tracking: + public async Task GetSearchResultSummary(long id) + { + var obj = await ct.ServiceBank.SingleOrDefaultAsync(z => z.Id == id); + var SearchParams = new Search.SearchIndexProcessObjectParameters(); + DigestSearchText(obj, SearchParams); + return SearchParams; + } +todo: all picklists of objects htat have tags should by default include tags as the last field + this is to support choosing by tag as the feature isn't very useful if you can't see the tags that come back todo: userbiz validate can delete has funky error todo: bugbug filter on a phone number field results in error at server as unsupported type make sure all types are supported diff --git a/ayanova/src/api/open-object-handler.js b/ayanova/src/api/open-object-handler.js index b1cb1c0e..f620915e 100644 --- a/ayanova/src/api/open-object-handler.js +++ b/ayanova/src/api/open-object-handler.js @@ -263,6 +263,12 @@ export default { params: { recordid: tid.id } }); break; + case ayatype.ServiceBank: + vm.$router.push({ + name: "service-bank-edit", + params: { recordid: tid.id } + }); + break; default: window.$gz.eventBus.$emit( diff --git a/ayanova/src/views/ay-data-list-column-view.vue b/ayanova/src/views/ay-data-list-column-view.vue index 8902263a..e116ba7a 100644 --- a/ayanova/src/views/ay-data-list-column-view.vue +++ b/ayanova/src/views/ay-data-list-column-view.vue @@ -380,10 +380,11 @@ async function populateFieldDefinitions(vm) { // async function fetchTranslatedFieldNames(vm) { let columnKeys = []; - for (let i = 1; i < vm.fieldDefinitions.length; i++) { + for (let i = 0; i < vm.fieldDefinitions.length; i++) { let cm = vm.fieldDefinitions[i]; columnKeys.push(cm.tKey); } + await window.$gz.translation.cacheTranslations(columnKeys); } diff --git a/ayanova/src/views/home-search.vue b/ayanova/src/views/home-search.vue index 29d6bc98..64194207 100644 --- a/ayanova/src/views/home-search.vue +++ b/ayanova/src/views/home-search.vue @@ -357,7 +357,8 @@ async function fetchTranslatedText(vm) { await window.$gz.translation.cacheTranslations([ "TooManyResults", "NoResults", - "Object" + "Object", + "ServiceBank" ]); } @@ -369,9 +370,12 @@ async function populateSelectionLists(vm) { if (res.error) { vm.formState.serverError = res.error; window.$gz.form.setErrorBoxErrors(vm); - // window.$gz.errorHandler.handleFormError(res.error, vm); } else { vm.selectLists.objectTypes = res.data; + //ServiceBank will appear in search results but is not a Core biz object so won't be added to list by server + //and needs to be added manually here + vm.selectLists.objectTypes.push({ name: vm.$ay.t("ServiceBank"), id: 55 }); + //servicebank? window.$gz.form.addNoSelectionItem(vm.selectLists.objectTypes); } }