<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">This I think is just for more records per page. I want to show more columns per record. The current limit is 15, client needs to show more.<br class=""><div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div>Best Regards,<br class="">Sukhdev Mohan<br class="">———————————</div><div>Cel. (+39) 320 7020345<br class=""><a href="mailto:s.mohan@myti.it" class="">Email s.mohan@myti.it</a></div><div class=""><br class=""></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">Il giorno 16 mag 2020, alle ore 16:51, Jitu <<a href="mailto:jitu@secondcrm.com" class="">jitu@secondcrm.com</a>> ha scritto:</div><br class="Apple-interchange-newline"><div class="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" class="">
<div class=""><p class="">If i change here</p><p class="">if (selectedFieldsEles.length > 15) {
app.helper.showErrorNotification({message:app.vtranslate('JS_ADD_MAX_15_ITEMS')});<br class="">
return false;
<br class="">
}
</p><p class="">this does not effect in selection of columns at create or edit
filter. <br class="">
</p><p class="">We can define globally this value in config.inc.php like page per
record <br class="">
</p>
<div style="color: #d4d4d4;background-color: #1e1e1e;font-family: 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback';font-weight: normal;font-size: 14px;line-height: 19px;white-space: pre;" class=""><div class=""><span style="color: #9cdcfe;" class="">$list_max_entries_per_page</span><span style="color: #d4d4d4;" class=""> = </span><span style="color: #ce9178;" class="">'20'</span><span style="color: #d4d4d4;" class="">;</span></div></div>
<div class="moz-cite-prefix"><br class="">
</div>
<div class="moz-cite-prefix"><br class="">
</div>
<div class="moz-cite-prefix"> 5/16/20 10:29 PM, Alan Lord wrote:<br class="">
</div>
<blockquote type="cite" cite="mid:r9otbo$217f$1@ciao.gmane.io" class="">This
bit of code in Vtiger_List_Js (from line 2352) could be better
IMHO.
<br class="">
<br class="">
if (selectedFieldsEles.length > 15) {
app.helper.showErrorNotification({message:app.vtranslate('JS_ADD_MAX_15_ITEMS')});<br class="">
return false;
<br class="">
}
<br class="">
<br class="">
I see 2 issues:
<br class="">
<br class="">
1. The limit is hardcoded here AND it is hardcooded in the
CustomView_JS class as below (there should be only ONE place this
is set.
<br class="">
<br class="">
2. The translation label above basically means you can't change
the value if you wanted to anyway as the value is also hardcoded
into the translatable message label.
<br class="">
<br class="">
<br class="">
Al
<br class="">
<br class="">
<br class="">
<br class="">
On 16/05/2020 15:12, Alan Lord wrote:
<br class="">
<blockquote type="cite" class="">And here then:
<br class="">
<br class="">
<a class="moz-txt-link-freetext" href="https://code.vtiger.com/vtiger/vtigercrm/blob/master/layouts/v7/modules/Vtiger/resources/List.js#L2352">https://code.vtiger.com/vtiger/vtigercrm/blob/master/layouts/v7/modules/Vtiger/resources/List.js#L2352</a>
<br class="">
<br class="">
This parameter should only be in one place at least (if not
configurable) and not in multiple locations...
<br class="">
<br class="">
Al
<br class="">
<br class="">
<br class="">
On 16/05/2020 14:13, Jitu wrote:
<br class="">
<blockquote type="cite" class="">check this file
layouts/v7/modules/CustomView/resources/CustomView.js
<br class="">
<br class="">
/**
<br class="">
* Function which will register the select2 elements for
columns selection
<br class="">
*/
<br class="">
registerSelect2ElementForColumnsSelection:function() {
<br class="">
varselectElement= this.getColumnSelectElement();
<br class="">
vtUtils.showSelect2ElementView(selectElement,{maximumSelectionSize:15});
<br class="">
},
<br class="">
On 5/16/20 5:01 PM, Alan Lord wrote:
<br class="">
</blockquote>
</blockquote>
<br class="">
<br class="">
_______________________________________________
<br class="">
<a class="moz-txt-link-freetext" href="http://www.vtiger.com/">http://www.vtiger.com/</a>
<br class="">
<br class="">
<br class="">
</blockquote>
</div>
_______________________________________________<br class=""><a href="http://www.vtiger.com/" class="">http://www.vtiger.com/</a></div></blockquote></div><br class=""></body></html>