setting filters based on tab selected.

I have created tabs on the job card that are department specific. Is there a way that I can set filters based only on which tab the user selects.

Yes, with a workaround. There’s no trigger fired when switching tabs, but you can “misuse” the OnFormat trigger of one of the textboxes on the tab to put your filtersetting code in. If you want to put a filter on the Customer table when switching to a tab to show customers in Holland only, you do: OnFormat(VAR Text : Text[250]:wink: if GETFILTER(“Country Code”) <> ‘NL’ then begin setfilter(“Country Code”,‘NL’); currform.update(false); end; John