How to change list sorting in view

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zuzz
    Member
    • Nov 2023
    • 42

    How to change list sorting in view

    Please, how to change list sorting in view ?
    I change data: function() (headerDefs) in custom:views/AAA/record/list in Dep.extend({

    It results to sorting mark on column header, but no data was sorted
  • Zuzz
    Member
    • Nov 2023
    • 42

    #2
    My solution:
    In custom:views/ZZZZ/list, in action

    var recordView = this.getView('list');
    recordView.collection.orderBy = 'FieldToSort';
    recordView.collection.order = 'desc';​
    this.getSearchView().selectPreset('tPreset');

    iPreset isto be created by https://forum.espocrm.com/forum/deve...-espocrm-7-0-x
    Hello! I have been busy solving my own primary filters a few days ago. The existing posts were only partly of help, as the basic structure (Select Manager to Select Builder) has been changed in version 7. Attached is a little help. I hope it helps someone. My initial situation: The entity contact has got a new enum field

    Comment

    Working...