
Hi
Can we use column name dynamically in the setfilter method
Below is the code.
Procedure CheckFilter(Field: FieldRef; value: Text[50])
Begin
table1.setfilter(Field, 'value') >> It is showing the error (must be a memberAL)
End
You can use SETVIEW Function :
Filter := STRSUBSTNO('WHERE(%1=CONST(%2))',FieldRef.NAME,value);
Table1.SETVIEW(Filter);