Announcement

Collapse
No announcement yet.

Sort Side and Bottom Panel Activities in Ascending Date Order

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Sort Side and Bottom Panel Activities in Ascending Date Order

    Espocrm V8.4

    Can anyone tell me how to change the default order in which activities are displayed in side and bottom panels?

    I would like to see activities in ascending date order - i.e the soonest start date will be first in the list. At present, both history and activities are shown in descending date order. That's fine for history but not upcoming activites.


    Click image for larger version

Name:	image.png
Views:	62
Size:	24.0 KB
ID:	112251

    Interestingly activities are shown in ascending order in the dashlet:

    Click image for larger version

Name:	image.png
Views:	43
Size:	22.3 KB
ID:	112252

    I've tried adding the following code to the .../custom/resources/metadata/clientDefs/Contact.json file without success:

    "relationshipPanels":{
    "activities": {
    "filterList": [
    "all"
    ],
    "orderBy": "dateStart",
    "asc": true
    }


  • #2
    Currently not easy to make the change. because the orderBy and order is set in back-end without ability to sync with front-end.

    In principle to be able to have the apply an ascending order you would need to create a custom activities panel and extends the existing activities and then in your entity clientDefs you need to define the activities panel with the new custom one you created.
    Rabii
    Web Dev

    Comment


    • #3
      Thanks for your advice Rabii. For me, it would be a "nice to have" rather than a "must have". I'll repost it as a feature request.

      Comment


      • rabii
        rabii commented
        Editing a comment
        I have shared a PR on github and Yuri will look into it. As mentioned it is just backend is set to default (dateStart) - (DESC). keep an eye on github.
    Working...
    X