December 2019
Beginner to intermediate
770 pages
16h 14m
English
You might have already inspected all the application code of our demo extension on GitHub, and as such you might have seen that few UI elements triggered by code need a handler function. Actually, there is only one to be found in the DoGiftCheck function of the 50101 GiftManagement_PKT codeunit:
if (SalesLine.Quantity < GiftCampaign.MinimumOrderQuantity) and (GiftCampaign.MinimumOrderQuantity - SalesLine.Quantity <= PacktSetup."Gift Tolerance Qty")then Message( GiftAlert, SalesLine."No.", Format(GiftCampaign.MinimumOrderQuantity), Format(GiftCampaign.GiftQuantity));
Getting it triggered is not as simple as the other examples, as a lot of conditions need to be met. For that reason, it appears here the fourth, and ...
Read now
Unlock full access