This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
|
||||
― Marcus Aurelius, Meditations
|
||||
|
||||
|
||||
|
||||
MISC ITEMS THAT CAME UP
|
||||
|
||||
## CLIENT MISC ITEMS
|
||||
@@ -42,9 +44,6 @@ todo: WHEN HAVE WORKORDER FORM customer popup notes need to pop pop pop, forgot
|
||||
However, I also find that incredibly annoying but I guess that's the point :)
|
||||
|
||||
## SERVER MISC ITEMS
|
||||
todo: In FormFieldReference there are fields that are default Required and can't be hidden, not sure if there is any reason to show them in the customization form
|
||||
it would be cleaner if they just weren't there at all, definitely in the spirit of more whitespace
|
||||
investigate if there is any bit of code that relies on them even when not there (maybe datalist grid stuff? not sure)
|
||||
|
||||
todo: OOPS, FormFieldReference has a potentially major issue:
|
||||
RequiredFieldsValidator expects the FieldKey property to be the exact name of the business object property, but I've been just tossing anything in there willy nilly
|
||||
|
||||
@@ -16,7 +16,11 @@ function addDataKeyNames(obj) {
|
||||
}
|
||||
|
||||
export default {
|
||||
// cache the form customization data if it's not already present
|
||||
////////////////////////////////
|
||||
// Cache the form customization data if it's not already present
|
||||
// NOTE: FORM KEY **MUST** BE THE AYATYPE NAME WHERE POSSIBLE, IF NO TYPE THEN AN EXCEPTION NEEDS TO BE CODED IN
|
||||
//SERVER FormFieldReference.cs -> public static List<string> FormFieldKeys
|
||||
//
|
||||
async get(formKey) {
|
||||
if (
|
||||
!window.$gz.util.has(window.$gz.store.state.formCustomTemplate, formKey)
|
||||
|
||||
@@ -691,6 +691,8 @@ export default {
|
||||
// NOTE: that in a form this should only be used with non stock-required fields, if they are already required they cannot be hidden
|
||||
//
|
||||
showMe(vm, formCustomTemplateFieldName) {
|
||||
//TODO: CHILD COLLECTION MOD handle dot notation path indexed collection etc
|
||||
// possibly it will just work since the key will match but double check
|
||||
//special check for wiki field
|
||||
//if read only then can't add any content and if no content then no reason to show it at all
|
||||
if (formCustomTemplateFieldName == "wiki") {
|
||||
|
||||
Reference in New Issue
Block a user