filter item from dropdown list

Hi,

I have a dropdownl list that items returns from the database. There are five items. But I want to have one time not showing in the list.

I have this:

FrmLocationMethod.LOOKUPMODE(TRUE);
IF FrmLocationMethod.RUNMODAL = ACTION::LookupOK THEN BEGIN
FrmLocationMethod.GETRECORD(LocLocationtMethod);
RecSalesHeader.“Location Code” := LocLocationtMethod.Code;
END;

CurrForm.UPDATE;

Thank you.

you could work with a temp table of same rec type. create that at runtime, fill only the items you want, use the temp table as base for the dropdown.

Thank you for your answare. I solved :slight_smile:

Hi Niels,
If Jons suggestion didn’t help you, would you mind sharing the solution that solved your problem. Just so that it might help the next member with the same problem. :slight_smile: