Hi,
on a text box in the request form I run a lookup of a table.
And then i store the record selected as follow in the lookup event of the text box.
IF FORM.RUNMODAL(FORM::"Sales List",Fatture) = ACTION::LookupOK THEN
XXX := Fatture."No.";
I need to retrieve anyway any filters that the user could have applied to the lookup form.
Is there a possibility to the filters that users applied on the "sales list" form ?
I tried getfilters, but the fatture.getfilters does not work. it does not return the filters applied
Many thanks in advance
Fabrizio :?:
0
Comments
Then you do following:
clear(YourFormVariable);
YourFormVariable.lookupmode(true);
YourFormVariable.settableview(YourRecVariable);
If YourFormVariable.runmodal = Action::LookupOK then begin
YourTextVariable := YourFormVariable.GetSelectedOrFilteredRecs); //<- this is a function on form which return you the getfilters or the selected (blue marked lines) lines. (check as example form 22)
end;
Regards