Posts: 855
Threads: 238
Joined: Nov 2015
Reputation:
96
I was just wondering (I searched the docs but couldn't find anything) if we have an application kind of way (like a business map or global variable) that would allow me to change the columns on the related lists. Use case: I'd like to show the serial no. in the related list for Assets without modifying the Assets.php file.
Posts: 855
Threads: 238
Joined: Nov 2015
Reputation:
96
04-06-2018, 09:14 AM
(This post was last modified: 04-06-2018, 09:19 AM by Guido1982.)
That's fantastic! I was doing a search for 'related', that's why I couldn't find it. Exactly what I needed. By the way, if I have custom modules where I want to use this, do I need to alter any of my code?
And also, if I wanted to do this for the related view on all parent modules, is there a way to set this? Or do I just leave 'parentmodule' empty for this purpose? (Or do I need to create a BM for every parent module?)
Posts: 51
Threads: 2
Joined: Apr 2015
Reputation:
13
Hi Guido1982. You do not need to modify any of your code to adapt the business maps. If the module you have created is based on a standard of corebos there is no problem.
For related views you can also apply the same concept. Simply create a map for each of the lists you need to modify.
Posts: 3,564
Threads: 36
Joined: Apr 2014
Reputation:
49
The list columns business maps should work even with really old vt5.4 vtlib modules (if those work at all anymore), but you should update your modules to get all the new functionality
One list columns business map per module is all you need as you can define different layouts per parent module inside that one map.
Joe
TSolucio
Posts: 855
Threads: 238
Joined: Nov 2015
Reputation:
96
Think it would be wise to check out the commits on the moduleDir right? To see what the recent changes have been. Maybe would be nice to have a changelog in the docs somewhere. I could setup a forum post that would get that started.
Posts: 3,564
Threads: 36
Joined: Apr 2014
Reputation:
49
The base module files are mostly empty, the only file with some functionality is the main class file and even that one is mostly empty. Any changes in that directory for a long time have been to move the code to the base functionality files in modules/Vtiger, so I don't think it would very useful to comment anything there.
Joe
TSolucio