Issue upgrading custom widget to v5 with specializations
0
I have a custom widget that worked OK in v4.x, but in v5.x throws an error. TypeError: document.getElementsByName(...)[0] is undefined document.getElementsByName(addressElementName)[0].value = address; The addressElementName variable is set correctly. I wonder if this is an issue with specializations. In my domain model I have a Report entity that is a specialization of a Location entity. The addressElementName is Maps.Report/Address, but this attribute is actually an attribute of the Location entity. Is there an issue in v5 with accessing attributes in this way that are inherited from a generalization? Updated info: I restructured my model to remove the generalization/specialization, and the issue persists. Does anyone know why document.getElementsByName(addressElementName)[0].value throws an error in version 5.2?