CoreBOSBB
Modify record default view order - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17)
+--- Forum: Administrator Support (https://discussions.corebos.org/forumdisplay.php?fid=8)
+--- Thread: Modify record default view order (/showthread.php?tid=16)



Modify record default view order - polanskiman - 05-23-2014

As the title says, how can I modify the default view order of records.

Presently it resets itself when the user logs off. At loggon the default view order is reset to the account_no (organizations module) or contact_id (contact module). I assume this applies to all other modules too.


Re: Modify record default view order - joebordes - 05-23-2014

See if this helps:

<!-- m --><a class="postlink" href="http://corebos.org/documentation/doku.php?id=en:devel:develtips#modify_record_default_view_ord">http://corebos.org/documentation/doku.p ... t_view_ord</a><!-- m -->


Re: Modify record default view order - polanskiman - 05-23-2014

Thanks you. That's what I needed.


Re: Modify record default view order - joebordes - 05-23-2014

<!-- sSmile --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="Smile" title="Smile" /><!-- sSmile -->

Have a wonderful weekend


Re: Modify record default view order - polanskiman - 05-26-2014

The happy moment here (which is a rarity) is that by default the Account and Contact modules are ordered respectively by the 'accountname' and 'lastname'. Since I wanted the default order to be exactly that, I didn't even need to modify each module's main script but only modify line 27 of the config.performance.php file from:
Code:
'LISTVIEW_DEFAULT_SORTING' to false
to
Code:
'LISTVIEW_DEFAULT_SORTING' to true