SetFilter in enum Flowfiter

Hi,

I am trying to Copy an enum Value from the GenJournalBatch to a Flowfilter Field in the GenJournalLine.

I tried so far something like:

trigger OnOpenPage()

var
GenJnlBatch: Record General Journal Batch

begin

Rec.SetFilter(“Transaction Type Filter”, ‘%1’, GenJnlBatch.“Transaction type”::Value1)

end

However it only seems to work with text filter.

Anybody has an idea?

Thanks!!