-->
Welcome, Guest
Username: Password: Remember me
You can also tweak your setup of Dolibarr by setting hidden configurations found in Dolibarr Setup Other

TOPIC: How to sort & filter a complementary field

How to sort & filter a complementary field 4 days 12 hours ago #36950

  • vec
  • vec's Avatar
  • OFFLINE
  • Newcomer
  • Posts: 2
  • Karma: 0
Hi
We created 2 new extra fields in dolibarr/societe/admin/societe_extrafields.php.
Both are result of computed piece of PHP filled in the field "computed field". One is formatted as a "Price" and the other one an "Integer".
Computation works fine on both fields BUT the in the result view where those 2 fields are shown, I don't have the capability to sort by or filter by those fields.
How may I make my new extra fields sortable and filterable (I can see any option in the creation screen)?

thanks in advance
The administrator has disabled public write access.

How to sort & filter a complementary field 3 days 22 hours ago #36955

  • nazeer
  • nazeer's Avatar
  • OFFLINE
  • Expert
  • Posts: 102
  • Thank you received: 9
  • Karma: 2
If you know php coding and can modify then look for answers in ../societe/list.php
The administrator has disabled public write access.

How to sort & filter a complementary field 3 days 17 hours ago #36956

  • vec
  • vec's Avatar
  • OFFLINE
  • Newcomer
  • Posts: 2
  • Karma: 0
Thank you Nazeer for your answer.
Actually we used to tweak the whole list.php. We used to create our fields there and then, their filter and sort capabilities.
We decided to dig more into the extrafields solution in order to better maintain our extra fields along the new releases of doibarr.
Therefore, getting back to modify the php file is not an option for us.

I wonder why some of our extra fields can be sorted and filtered while some others cannot.

Bests
The administrator has disabled public write access.
Time to create page: 0.113 seconds