My need is to check the value in another table to determine if the user is allowed to lookup the associated table from any form.
So far, my SO Line form does not allow any lookup at all, here is my code in Table 36:
Currency Code - OnLookup()
UserSetup.GET(USERID);
IF UserSetup.“Team Filter” = ‘’ THEN BEGIN //Any characters in this field will stop any lookup/view
LCurr.SETRANGE(“Allow Selection in NAV” , TRUE);
IF lcurr.FINDSET THEN BEGIN
LFormCurrencies.SETTABLEVIEW(LCurr);
LFormCurrencies.SETRECORD(LCurr);
LFormCurrencies.LOOKUPMODE(TRUE);
END;
END;
Any ideas please?