JSON in AL for beginners - Essential development knowledge for Business Central

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 พ.ย. 2024

ความคิดเห็น • 28

  • @svendheinesen2606
    @svendheinesen2606 4 ปีที่แล้ว

    An absolute gem for us old Navigator coders that can barely spell to JSON ;)

  • @eduschimu
    @eduschimu 2 ปีที่แล้ว

    Thank you for this video. Very helpful to get into the subject. I will look at other json videos you did, before I ask some questions...🙂

  • @vallsjose
    @vallsjose 4 ปีที่แล้ว +1

    Awesome explanations Erik, thanks a lot!

  • @davidbaldwin3140
    @davidbaldwin3140 2 ปีที่แล้ว +1

    Very educational and very helpful demonstration. Should you ever decided to revisit this topic, it would be helpful to cover some examples that treated BC record handling--e.g., working with master and detail BC records in and out of json structures; how json works with RecordRef situations. Also: in what types of scenarios are the Type of a Token actually unknown? Thanks again.

  • @ibrahiemrasoelbaks5124
    @ibrahiemrasoelbaks5124 4 ปีที่แล้ว

    Great video once again Erik. One of my favorites!!

  • @mmizgiris
    @mmizgiris 2 ปีที่แล้ว

    Great video Eric. Thanks a lot!

  • @JosepPages7
    @JosepPages7 2 ปีที่แล้ว

    Thank you Master, great explanations and interesting as always!!

  • @DannyDailyTech
    @DannyDailyTech 4 ปีที่แล้ว

    Great video on Jason

  • @RubenParente
    @RubenParente 2 ปีที่แล้ว

    Hi Erik, would you be kind to demonstrate how can we have a JsonObject and store it in a blob field. thank you

  • @bjarkihall2876
    @bjarkihall2876 4 ปีที่แล้ว

    Do you know when to use Dictionary/List instead of a JsonObject/JsonArray,
    is there a significant performance difference between these models (a reason not to just always use Json types)?
    You also did a video on TextBuilder vs Text for big concats of strings which made a huge difference. Is there a similar example for Json structures? The Base app has some old codeunits that manage read/write of Json structures with some kind of a TextBuilder, would that make sense or is JsonObject.Add (n-times) + WriteTo(txt) better than JsonBuilder.Add (n-times) + ToText?
    Have you done any benchmarks on those? :)

    • @Hougaard
      @Hougaard  4 ปีที่แล้ว

      The datatype in Dictionary/List are only the primitive type, so that reduces the usefulness of them. For complex structures json is the way to go.

    • @bjarkihall2876
      @bjarkihall2876 4 ปีที่แล้ว

      ​@@Hougaard yes, that's why I'm wondering about where they shine, since compared to the Json types they are very limited. Do you know what the tradeoff is?
      Thanks for the regular content btw. it's always fun to watch :)

    • @Hougaard
      @Hougaard  4 ปีที่แล้ว

      @@bjarkihall2876 I have begun using dictionaries as "alternative" keys, like for a "HasSeen" structure. In BCCL I keep all data internally as JSON but use Dictionaries for list od fields etc...

    • @bjarkihall2876
      @bjarkihall2876 4 ปีที่แล้ว

      @@Hougaard I've been using them the same way but I had been wondering if it really had any benefits. I guess it's the type validation and ease of use (e.g. you can declare them as Dictionary of [Guid, Boolean], so nothing else gets in) and potentially it has some performance benefits too, as long as we don't need to convert the structure to/from text/json/stream (though, it's possible to do it with a loop).

  • @greycatstechllp3545
    @greycatstechllp3545 3 ปีที่แล้ว

    Hi Erik, I need assistance if you could help me out or guide. I have added a repeater in the sales order form. Now, whatever inputs i give in particular cells, the same values get reflected even in the next sales order that is going to be filled in. :(

    • @Hougaard
      @Hougaard  3 ปีที่แล้ว +1

      I need a bit more information to be able to help you, what is the sourcetable of the page that has the repeater element?

    • @greycatstechllp3545
      @greycatstechllp3545 3 ปีที่แล้ว

      The source table is sales order

    • @greycatstechllp3545
      @greycatstechllp3545 3 ปีที่แล้ว

      @@Hougaard Thankyou Erik, i would like to know if there is a way to initialize a whole repeater?

  • @LandscapeInMotion
    @LandscapeInMotion 3 ปีที่แล้ว

    Thanks - how to add new form fields to existing forms with AL?

    • @Hougaard
      @Hougaard  3 ปีที่แล้ว +1

      Good suggestion, keep watching the channel.

    • @LandscapeInMotion
      @LandscapeInMotion 3 ปีที่แล้ว

      @@Hougaard also, what’s the easiest way to export business central online data to a SQL data warehouse with live data feeds?

    • @Hougaard
      @Hougaard  3 ปีที่แล้ว +1

      @@LandscapeInMotion All data export has to be done with OData web services right now. I have an alternative solution in the works, but not ready to be revealed :)

    • @LandscapeInMotion
      @LandscapeInMotion 3 ปีที่แล้ว

      @@Hougaard great! Odata will only export the entities, but not the raw sql tables right?

    • @Hougaard
      @Hougaard  3 ปีที่แล้ว +1

      @@LandscapeInMotion Well, if you get all records and all fields (if you create API pages to do that), then it equal to raw SQL.

  • @anujchaudhary6985
    @anujchaudhary6985 3 ปีที่แล้ว

    Please make a video on How to Integrated Currency exchange rate service with XE.com