Flow Field - why doesn't it filter on the form?

Hi,

I’ve got this code; Any ideas?? NAV doesn’t seem to copy this filter across like it does for the other fields.

Table.RESET;
Table.CALCFIELDS(FlowField);
Table.SETFILTER(FlowField,Code20Field);

Form.SETTABLEVIEW(Table);
Form.RUN;

Welcome to DUG…

this is not because of your Flow filter…why do you need Table.CALCFIELDS(FlowFilterField); for flow filter?

Read help files for CALCFIELDS…

Problem with below code

Form.SETTABLEVIEW(Table);
Form.RUN;

Oops - I meant a flow field

(not a flow filter field)

try

Table.RESET;
Table.CALCFIELDS(FlowField);
Table.SETFILTER(FlowField,Code20Field);

.SETTABLEVIEW(Table);

.SETRECORD(Table);

.LOOKUPMODE(TRUE);

IF .RUNMODAL = ACTION::LookupOK THEN BEGIN

IF .RUNMODAL = ACTION::LookupOK THEN BEGIN

?? begin what?

What do you want to do after running the form?

the above code is to run the form and select a value from new form…