Interfaces & Enums in AL Language | Dynamics 365 Business Central

Поділитися
Вставка
  • Опубліковано 8 січ 2025

КОМЕНТАРІ • 10

  • @ant1d0te
    @ant1d0te 2 роки тому +5

    28:04 you implemented simple case enumerating with calling procedures. This breaks whole interfaces idea.
    To use interfaces correctly you need to write the following code:
    trigger OnAction()
    var
    InterfaceVar: Interface InterfaceExam;
    begin
    InterfaceVar := Rec."Interface Values";
    Message('%1',InterfaceVar.PrintMessage());
    end;
    That's it. When other extension (or even existing one) adds values to the given enum, developer has just to add new codeunit handling PrintMessage and nothing is needed to change in the initial code.

  • @indranijayakody3381
    @indranijayakody3381 2 роки тому +1

    very good video. thank you very much!!

  • @KrishnaKumar-cz9un
    @KrishnaKumar-cz9un 2 роки тому +1

    Very useful video sir ,Thank You👍

  • @sowmyasridhar77
    @sowmyasridhar77 3 роки тому

    Nice video!! You have made it so easy!!

  • @mehuls1676
    @mehuls1676 3 роки тому

    Thank you Sir, this is very good video. Also, can you please help posting something or sharing any link/content on Barcode from BC Extension.

  •  3 роки тому +3

    Sorry but it's wrong
    You are not using the interface.
    What you did, you could have done it without an interface.
    The way you did it, you can't create another intgerface to extend yours, and your code is uninextensible.

    • @GoDigit
      @GoDigit  3 роки тому

      Thank you for your comment, I understand your point, but while creating this content my whole idea was to explain the concept of "What interface is"? in an easy way. And once the conceptual understanding is done, you can explore to any extent.

  • @TheKhabu
    @TheKhabu 3 роки тому

    Hi Kapil.. I am new to Dynamics and want to learn Dynamics from you how can I connect with you..

    • @GoDigit
      @GoDigit  3 роки тому

      Hi. You can mail me @ planjourney22@gmail.com