Let me first explain how it works in the Contacts module. When a search is done, each entry has the “Name” column hyperlinked to the detailView of that “Name.”
I have a custom module that I have created. When I do a search I see all the custom fields that I have created and their respective information. However there is no way for me to go to the DetailView window. Unlike the Contacts module, none of my columns are hyperlinks.
I’m new to writing in Sugar. Can someone please advise me on how to do this?
Also, I’ve been unable to find any good resources for development. I’m well equipped with PHP knowledge but I don’t understand the infrastructure of Sugar and I can’t find any well written docs anywhere. Any suggestions?
You need to define the field as a link in the
listviewdefs.phpfile for you module. Since it is a custom module, the file should be located in this folder/custom/modules/<my_module>/metadata/listviewdefs.php. Find the field and insert'link' => true, so it looks something like this:For documentation you’re pretty much on your own, unfortunately. In my experience it is very sparse and scattered, and the official SugarCRM documentation lacks a lot when it comes to the architecture and inner workings of Sugar. Usually a search engine is your best friend when it comes to Sugar.