List Manager Forum

Managing list with many colomns

User moon_241 2012-01-22 19:34:31

hi,

Is it possible to have many views of the same table, I've a table with 50 colomns, I thought it would be easier to have 5 lists with 10 colomns than 1 with 50 colomns.

Thanks

Moonsoft support 2012-01-23 10:10:16

Hello,
you can have multiple views of the same table, using for example module view, but the configuration parameters of the columns visible belong to the table, so they will remain the same for all the views created.
Maybe we should think about new configuration parameters to handle this possibility, but at this time, the only way to get this is to make some coding at the view, changing the flag of visible columns according to the article or module where the list is located.

Best regards
Moonsoft Team

User moon_241 2012-01-23 23:43:23

Hello,

Thanks for your answer, could you tell me the files as have to modify to manage the "visible" flag myself.

Vincent

Moonsoft support 2012-01-24 09:59:26

Hello,
you can try to modify the view, where the headers are recovered into an arry. Check this file

joomla/modules/mod_listmanager/tmpl/content.php

and search for the function 'recogeDatos'


function recogeDatos<?php echo $seed;?>(){
arrCabeceras<?php echo $seed;?>=JSON.parse($('<?php echo $seed;?>cb_resultado').getChildren().value);
arrDatos<?php echo $seed;?>=JSON.parse($('<?php echo $seed;?>cb_resultado').getChildren().value);

//HERE YOU CAN CHANGE THE FLAG VISIBLE FOR THE HEADERS, THEY COME INDEXED
//FROM 0 TO THE TOTAL NUMBER, ORDERED AS YOU DID AT BACK-END.


for(var c=0;c<arrCabeceras<?php echo $seed;?>.length;c++){

if(...........)
arrCabeceras<?php echo $seed;?>='0';


}
}

Hope this helps, best regards

Edited by MSTeam - 24.01.2012 10:04

...
Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!
...
Support/development

Perfect for small code changes or to correct any bug at your site

Buy now!