How to get data from a filtered RecordType?

Certified Senior Developer

Hi,

I have an interface that contains a Grid based on a RecordType. So the latter can be filtered as need the users.

After being filtered, how may I get the datasubset of this RecordType ?

For example, on a 200 rows table, if the filtered RecordType displays only 5 rows, I need these 5 rows to be retrieved in my datasubset.

I need to work with this datasubset at anytime.

    

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    Certified Senior Developer
    in reply to cedric01

    As my initial question was "How to get data from a filtered RecordType", how would you get the number of records of this RecordType ?

    I do not have access to the subdataset.totalCount attribute.

      local!data : a!recordData(
        recordType: recordType!R_MyContracts,
        filters: a!queryLogicalExpression(
          operator: "AND",
          filters: {
            a!queryFilter(
              field: recordType!R_MyContracts.fields.status,
              operator: "=",
              value: "OK"
            ),
          },
          ignoreFiltersWithEmptyValues: true
        )
      ),