[Vtigercrm-developers] Manipulate report editing function with extension

Preexo preexo at googlemail.com
Wed Jan 20 10:51:16 GMT 2016


I want to overwrite the function registerSelect2ElementForReportColumns in
the file layouts/vlayout/modules/Reports/resources/Edit2.js but I can't get
hold of it to overwrite it.
I want to change the maximumSelectionSize from 25 to 100, anyone has an idea
how to achieve this with an extension?

I was going to do this in the JS file of my custom extension module, but no
success:

if(typeof Reports_Edit2_Js != 'undefined' && Reports_Edit2_Js != null){
			Reports_Edit2_Js.registerSelect2ElementForReportColumns = function() {
				var selectElement = Reports_Edit2_Js.getReportsColumnsList();
	    		// only the number 100 is a change to the orginial function
				app.changeSelectElementView(selectElement, 'select2',
{maximumSelectionSize: 100,dropdownCss : {'z-index' : 0}});
	    	}
	    }


Thanks for any input!



--
View this message in context: http://vtiger-crm.2324883.n4.nabble.com/Manipulate-report-editing-function-with-extension-tp18231.html
Sent from the vtigercrm-developers mailing list archive at Nabble.com.


More information about the vtigercrm-developers mailing list