CoreBOSBB
Filters - set a default 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: Filters - set a default order (/showthread.php?tid=842)

Pages: 1 2 3 4


Filters - set a default order - rslemer - 01-10-2018

Today is possible set, thru Global Variables, with de filters is showed in ascending or descending order.

But i wish set a field in filters list, for this classification.

For example, when I create a filter with date field, I wish this registry is showed from the earliest date to the earliest date

How I can do that?


RE: Filters - set a default order - joebordes - 01-10-2018

Currently, filters do not have sort order. You can only have one default order and it is set in the code:

https://github.com/tsolucio/corebos/blob/master/vtlib/ModuleDir/ModuleFile.php#L97


RE: Filters - set a default order - kapsule - 01-10-2018

Hi @rslemer,

I have made the modification you indicate. This way I can configure any column order for any module using the global variables module.

Do you usually modify code? I'm just saying that to let you know what changes I've made.

Thanks


RE: Filters - set a default order - rslemer - 01-11-2018

No, I never made any code changes, yet.

I will glad with you share with me, how I can do that.

Smile


RE: Filters - set a default order - rslemer - 01-12-2018

(01-10-2018, 02:17 PM)joebordes Wrote: Currently, filters do not have sort order. You can only have one default order and it is set in the code:

https://github.com/tsolucio/corebos/blob/master/vtlib/ModuleDir/ModuleFile.php#L97

But this global variable not change for asc or desc order?  Application_ListView_Default_Sort_Order




RE: Filters - set a default order - kapsule - 01-12-2018

(01-12-2018, 01:09 AM)rslemer Wrote:
(01-10-2018, 02:17 PM)joebordes Wrote: Currently, filters do not have sort order. You can only have one default order and it is set in the code:

https://github.com/tsolucio/corebos/blob/master/vtlib/ModuleDir/ModuleFile.php#L97

But this global variable not change for asc or desc order?  Application_ListView_Default_Sort_Order


Hi rslemer,


In my case, the code I have implemented is to make that variable work. Besides to contemplate the order that the user clicks. I hope to upload the changes in my repository so you can see it.

Follow us on the Telegram channel (https://t.me/coreboscrm)


RE: Filters - set a default order - rslemer - 01-19-2018

Hi @Kapsule

You can share your code with me?


RE: Filters - set a default order - rslemer - 01-29-2018

Hi @Kapsule,

You can share thats code too?


RE: Filters - set a default order - rslemer - 03-24-2018

(01-10-2018, 02:17 PM)joebordes Wrote: Currently, filters do not have sort order. You can only have one default order and it is set in the code:

https://github.com/tsolucio/corebos/blob/master/vtlib/ModuleDir/ModuleFile.php#L97

Why don't use the same value of Application_ListView_Default_Sort_Order for ordering listview too? ( suggesting... )


RE: Filters - set a default order - joebordes - 03-25-2018

Because the correct solution is to have each filter sort depending on their own conditions