CurrForm.Contact.EDITABLE("Primary Contact No." = ''); CompanyInfo.GET; IF CompanyInfo."Use External BIDS" THEN BEGIN CurrForm."Customer Contact Information".VISIBLE(FALSE); CurrForm.ContactList.VISIBLE(TRUE); END; CurrForm.Name.ACTIVATE; IF COMPANYNAME = '...' THEN BEGIN CurrForm.Region.VISIBLE := TRUE; CurrForm."Freight is Taxable".VISIBLE := TRUE; END; IF CompanyInfo."Use External BIDS" THEN BEGIN CurrForm."Customer Contact Information".ENABLED(TRUE); CurrForm.ContactList.ENABLED(TRUE); END; MemberOf.SETRANGE(MemberOf."User ID",USERID); MemberOf.SETRANGE(MemberOf."Role ID",'NTL CUST, EDIT'); IF MemberOf.FINDFIRST THEN CurrForm.NTLCustCode.ENABLED(TRUE);
SETRANGE("No."); CurrForm.Name.ACTIVATE;
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
If "they" want the default NAV behaviour then "they" should also switch back to the default form. Meaning moving ALL subforms from tabs to separate forms called by menu buttons, deleting all code "modifications" and rearranging the form controlls acording to NAV standards.
I figured they were stuck, but I thought I would see if anyone knew a workaround.