Hi NAV Guru,
I have created a custom Option field "Vendor Invoice Term" in Vendor table.
Then I created a custom table which contains Vendor No, Vendor Name and Vendor Invoice Term (Option - exactly same option as the field in Vendor Table). Then I create a page referencing the table so that information can be keyed in from the Page.
In C/AL code, I have a code to auto update the Vendor Invoice Term based on Vendor No.
IF VendNo <> '' THEN BEGIN
IF VendNo <> Vend."No." THEN BEGIN
Vend.GET(VendNo);
VALIDATE("Vendor Name",Vend.Name);
VALIDATE("Vendor Invoice Term", Vend."Vendor Invoice Term");
END ELSE
CLEAR(Vend);
END;
The code works in Development environment (with Partner license), however, when I promoted the new table in the client environment, the code doesn't work.
The way I test it, I go into the Page, and then populate the Vendor No, and press enter to see whether the field for Vendor Invoice Term is populated correctly.
Please advise whether additional access needs to be given for the lookup.
Thanks.
Susy