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

    Ok if you want to ensure the type matches, you should be able to set this up by adding the casting on the append as well as the difference. Also, make sure you use the list type to cast it correctly:

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

Children