Skip to main content
August 27, 2021
Question

How to remove the total count data in interface?

  • August 27, 2021
  • 6 replies
  • 0 views

Hi Guys,

I am using the data subset to fetch the data to interface but the total count of rows are automatically showing in the interface. It might be identifier as well not sure why the count is showing ? Please suggest how to remove the items from interface? Please find the below screenshot for reference?

   

6 replies

gayathris111098
August 27, 2021

There is the parameter called totalCount in a!gridLayout() if you are not giving it will not show.

August 27, 2021

Thanks for quick response, But I am not using gridlayout.  Please refer below screenshot 

gayathris111098
August 27, 2021

Got it. Yes its by default showing. 

I tried with page Size, instead of total count it shows paging. 

a!localVariables(
 
  local!employees: {
    a!map( id: 1, firstName: "John" , lastName: "Smith" , department: "Engineering" , title: "Director" , phoneNumber: "555-123-4567" , startDate: today()-360 ),
    a!map( id: 2, firstName: "Michael" , lastName: "Johnson" , department: "Finance" , title: "Analyst" , phoneNumber: "555-987-6543" , startDate: today()-360 ),
    a!map( id: 3, firstName: "Mary", lastName: "Reed" , department: "Engineering" , title: "Software Engineer" , phoneNumber: "555-456-0123" , startDate: today()-240 ),
    a!map( id: 1, firstName: "John" , lastName: "Smith" , department: "Engineering" , title: "Director" , phoneNumber: "555-123-4567" , startDate: today()-360 ),
    a!map( id: 2, firstName: "Michael" , lastName: "Johnson" , department: "Finance" , title: "Analyst" , phoneNumber: "555-987-6543" , startDate: today()-360 ),
    a!map( id: 3, firstName: "Mary", lastName: "Reed" , department: "Engineering" , title: "Software Engineer" , phoneNumber: "555-456-0123" , startDate: today()-240 ),
    a!map( id: 1, firstName: "John" , lastName: "Smith" , department: "Engineering" , title: "Director" , phoneNumber: "555-123-4567" , startDate: today()-360 ),
    a!map( id: 2, firstName: "Michael" , lastName: "Johnson" , department: "Finance" , title: "Analyst" , phoneNumber: "555-987-6543" , startDate: today()-360 ),
    a!map( id: 3, firstName: "Mary", lastName: "Reed" , department: "Engineering" , title: "Software Engineer" , phoneNumber: "555-456-0123" , startDate: today()-240 ),
  },

      a!gridField(
        pageSize:7,
        data:todatasubset(
          local!employees,
          fv!pagingInfo
        ),
        columns:a!gridColumn(
       
          value:fv!row.id
        )
        
      )
   
)

mikes0011
Brainy
August 27, 2021

If your grid is static in nature, with no intention to use paging / sorting functionality, you would probably be better off using an Editable Grid (and just... not having any fields be editable).

The Expression Guru