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
  • 0
    Appian Employee
    in reply to cedric01

    Nice! There's also one other way to set it up if you need a list (if you're on 20.3 or later). There is a new function called a!listType() which will cast any type to a list without needing to add "?list" to the end. 

    selectionSaveInto: {
      local!selection,
      a!save(
        ri!case, append(
          ri!case, cast(
            a!listType('type!{urn:com:appian:types:PDL}PDL_Client'),
            fv!selectedRows
          )
        )
      ),
      a!save(
        ri!case, 
        difference(
          ri!case, 
          cast(
            a!listType('type!{urn:com:appian:types:PDL}PDL_Client'),
            fv!deselectedRows
          )
        )
      )
    }

Children