Moonsoft Software Solutions

List Manager Support

List Manager support
Public write access is disabled. Please login
Last post
moon_241

moon_241
4 posts
---
22.01.2012 19:34

Managing list with many colomns

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




 
MSTeam

MSTeam
227 posts
---
23.01.2012 10:10
Re: Managing list with many colomns
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


Moonsoft Team
www.moonsoft.es

 
moon_241

moon_241
4 posts
---
23.01.2012 23:43
Re: Managing list with many colomns
Hello,

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

Vincent




 
MSTeam

MSTeam
227 posts
---
24.01.2012 09:59
Re: Managing list with many colomns
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()[0].value);
arrDatos<?php echo $seed;?>=JSON.parse($('<?php echo $seed;?>cb_resultado').getChildren()[1].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;?>[c]['visible']='0';


}
}

Hope this helps, best regards

Edited by MSTeam - 24.01.2012 10:04


Moonsoft Team
www.moonsoft.es