Customizing Dynamics NAV
Discover different ways to customize the application to give you and your colleagues access to the features, functionality, and data that you need most.
2019 release wave 2 Discover the latest updates to Dynamics 365Release overview guides and videos Release Plan | Early Access Availability
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Talent TechTalks
Hi I dont understand the logic which was implemented on the Transfer Line table in 2018.
This is the code (validate desription):
IF (STRLEN(Description) <= MAXSTRLEN(Item."No.")) AND ("Item No." <> '') THEN ItemDescriptionIsNo := Item.GET(Description);
IF ("Item No." <> '') AND (NOT ItemDescriptionIsNo) AND (Description <> '') THEN BEGIN Item.SETFILTER(Description,'''@' + CONVERTSTR(Description,'''','?') + '*'''); IF NOT Item.FINDFIRST THEN EXIT; IF Item."No." = "Item No." THEN EXIT; IF CONFIRM(AnotherItemWithSameDescrQst,FALSE,Item."No.",Item.Description) THEN VALIDATE("Item No.",Item."No."); EXIT;END;
Comming from validation on item number.
So if the item table is containing an item with the same desription in the desription field but different item number will sugtes to change to the other item.
Why and what if there is more than 2 items with same description then why would you choose FIND first?
I checked a couple of later versions and it's still there ... so i guess there is some logic i don't undersatnd, why this piece of code?
Business Applications communities