Announcement

Collapse
No announcement yet.

Can I filter view by checkbox instead of status?

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

  • Can I filter view by checkbox instead of status?

    I have a field in a custom entity that is a checkbox. The way the status can be filtered for primarFilterName property, is it possible to that with a checkbox?

  • #2
    SelectManager class responsible for filters. Declare select there.

    Comment


    • #3
      Like this?
      PHP Code:
        protected function filterBilled(&$result) {     $result['whereClause'][] = array(         'billed' => true     ); } 
      On the client side, would it be like?
      Code:
      this.createView('dialog','Modals.SelectRecords',{
      scope:'Call',
      primaryFilterName: true
      });
      Last edited by worldmiros; 05-13-2016, 06:36 PM.

      Comment


      • #4
        yuri I tried the code above, but no success. What could I be doing wrong?

        Comment


        • #5

          try primaryFilterName: 'billed'

          Comment


          • #6
            It works. Thanks.

            Comment

            Working...
            X