This commit is contained in:
2021-02-10 18:26:49 +00:00
parent 8a57d10759
commit b28e1a10eb
4 changed files with 26 additions and 15 deletions

View File

@@ -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<Search.SearchIndexProcessObjectParameters> 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

View File

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

View File

@@ -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);
}

View File

@@ -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);
}
}