Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Filters - set a default order
#1
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?
Ranieri
eCRM Web
Reply
#2
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
Joe
TSolucio
Reply
#3
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
Reply
#4
No, I never made any code changes, yet.

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

Smile
Ranieri
eCRM Web
Reply
#5
(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

Ranieri
eCRM Web
Reply
#6
(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)
Reply
#7
Hi @Kapsule

You can share your code with me?
Ranieri
eCRM Web
Reply
#8
Hi @Kapsule,

You can share thats code too?
Ranieri
eCRM Web
Reply
#9
(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... )
Ranieri
eCRM Web
Reply
#10
Because the correct solution is to have each filter sort depending on their own conditions
Joe
TSolucio
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)