How to get Data from RecordData ?

Certified Senior Developer

Hi,

I have a recordData used to display a simple grid.
How may I take advantage of the local!data var ?  I woud need to get the TotalCount of this RecordData for example, or to copy data in a CDT list.
Have I to cast this variable ?

  local!data: a!recordData(
    recordType: 'recordType!TT_R_Vehicles',
    filters: a!queryLogicalExpression(
      operator: "AND",
      filters: {
        a!queryFilter(
          field: 'recordType!TT_R_Vehicles.fields.model',
          operator: "=",
          value: "BMW"
        )
      },
      ignoreFiltersWithEmptyValues: true
    )
  ), 
  
  a!gridField(
    label: local!labels.units,
    labelPosition: "ABOVE",
    data: local!data,
    columns: {

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Senior Developer
    in reply to Danny Verb

    Thank you Danny, you mean :

    make a first call to a!recordData (with some user filters) to define the filtered data to display in my grid, and then make a 2nd call to a!queryRecortType() with the same user filters to get my data ?

    Is it not possible to do these 2 actions with the same data object ? 

    (I mean juste use a!queryRecordType to get the data but also to connect it to the grid)

Children
No Data