EasyUI Forum
May 15, 2024, 09:57:22 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Pivot to always count  (Read 3848 times)
ahybits
Newbie
*
Posts: 26


View Profile
« on: January 20, 2017, 07:36:50 AM »

I have a Pivot Grid with the following setup:
Code:
      pivot:{
                rows:['Team'],
                columns:['Factor'],
                values:[
                    {field:'Username',op:'count'}
                ]
            },

When I use the layout, if I put anything else in the Values, it always sets it to Sum.
How can it so that no matter what field is put into values that it will always do a Count instead of a Sum
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: January 21, 2017, 04:00:33 AM »

Please set the 'defaultOperator' property to 'count'. Make sure to download the newest plugin from http://www.jeasyui.com/extension/pivotgrid.php
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!