I need to implement a more complex control field type with the data than simply storing a converted value. The conversion function that exists in DataField works perfectly, but what I need is to handle the data load.
The field I'm creating is a late load control, so I need to handle the data load.
At that point I implemented the "defineAccessor" function to allow you to insert a load function.
The problem occurs when the container fetches the data, in the Model.js, 1281 line, it fetches the complex data, from the "data" property, and not from the object itself, so it does not use the property schema to load the data. With this it does not call the function "get" implemented in the function "defineAncestor".
If you modify the line to "return ObjectHelper.getPath(this, dataSource);", everything works as expected.
I can't tell if it's the best implementation, but that's how I found the solution.
Is there any other way to solve this?