How to get the current value of a filter selection (on a RecordType)

Certified Senior Developer

Hi,

I have a very simple RecordType with a user filter (example : year). I've created an interface based on this recordType.

When I test it from the interface, I enter a year in the field, then the grid is correctly filtered by the year.

Question : you to get the filter value the user has selected (to use it later in an Expression rule for example) ?

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Senior Developer
    in reply to Peter Lewis

    Thank you for your reply Peter... But my need is as simple as it ;-) ...

    We just need to use the current selection filter value (let's say it is a year value) to pass it to another ER.

    From my example, let's admit that the "Year" field is in the data of RecordType grid,

    If I use this kind of code below to get the Data of the RecordType, maybe can I get this "year" value from one of the row, as a workaround ?

    local!data: a!recordData(
        recordType: recordType!CJT_R_Vehicles,
    ),

    I could do something lke that ? (with a correct cast)

    myYearValue: local!data[1].year

Children