So first post on suitecrm.
I had to create a new module that had a dropdown field (populated from another db table). I didn’t want to create a dropdown field so I used the textfield as backend storage and replaced the html control in editviewdef.php. The blank html dropdown was shown.
The next problem was to populate the data. The modules\AOS_Invoices\views\view.edit.php has a method called populateInvoiceTemplates which does something similar so I used it as an example and the data was shown.
Everything is working as expected but my question is, where do controllers fit into all this? Surly the view should not be doing database calls?