nerdexam
Microsoft

MB-820 · Question #111

Drag and Drop Question You develop a table named Contoso Setup and a page. You plan to use No. Series to automatically assign a unique number to data entries. You set up No. Series on the Vendor…

The correct answer is if "No." <> '' then begin; ContosoSetup.Get();; ContosoSetup.SetRange(ContosoSetup."Vendor Nos.", xRec."No. Series");; NoSeriesManagement.InitSeries(ContosoSetup."No. Series", xRec."Vendor Nos.", 0D, "No. Series");; ContosoSetup.TestField("Vendor Nos."). You've hit your limit · resets 5:20am (America/New_York)

Develop by using AL

Question

Drag and Drop Question You develop a table named Contoso Setup and a page. You plan to use No. Series to automatically assign a unique number to data entries. You set up No. Series on the Vendor Nos. field of the Contoso Setup table. You need to apply the No. Series Design Pattern to the trigger OnInsert(). Which four code segments should you use to develop the solution? To answer, move the appropriate code segments from the list of code segments to the answer area and arrange them in the correct order. Answer:

Exhibit

MB-820 question #111 exhibit

Answer Area

Drag items

ContosoSetup.Get();ContosoSetup.SetRange(ContosoSetup."Vendor Nos.", xRec."No. Series");NoSeriesManagement.InitSeries(ContosoSetup."No. Series", xRec."Vendor Nos.", 0D, "No. Series");ContosoSetup.TestField("Vendor Nos.");NoSeriesManagement.InitSeries(ContosoSetup."Vendor Nos.", xRec."No. Series", 0D, "No. Series");if "No." = '' then beginif "No." <> '' then begin

Correct arrangement

  • if "No." <> '' then begin
  • ContosoSetup.Get();
  • ContosoSetup.SetRange(ContosoSetup."Vendor Nos.", xRec."No. Series");
  • NoSeriesManagement.InitSeries(ContosoSetup."No. Series", xRec."Vendor Nos.", 0D, "No. Series");
  • ContosoSetup.TestField("Vendor Nos.");

Explanation

You've hit your limit · resets 5:20am (America/New_York)

Topics

#No. Series#design patterns#OnInsert trigger#AL coding

Community Discussion

No community discussion yet for this question.

Full MB-820 Practice