Look Mom, I'm creating charts without PowerBI with AL in Business Central

Поделиться
HTML-код
  • Опубликовано: 9 ноя 2024

Комментарии • 44

  • @DenisErmakov-m2h
    @DenisErmakov-m2h Год назад +2

    Hi Erik, thank you very much for the video. Very helpful and detailed. And I especially like your approach to naming videos )

  • @tamilmovies9878
    @tamilmovies9878 Год назад

    Your videos were very helpful to fix all my Business Central development challenges! Millions of thanks!
    Keep posting new videos... (I subscribed your channel! ;) )

  •  4 года назад +2

    Hi Erik.
    Great tutorial.
    A sugestion as far as performance is concern, if you allow me.
    Instead of:
    if rec.findset(false,false) then begin
    repeat
    rec.calcfields(field1,field2....);
    until rec.next() = 0;
    end;
    Use this:
    rec.setautocalcfields(field1,field2....);
    if rec.findset(false,false) then begin
    repeat
    until rec.next() = 0;
    end;
    It's much more effective.

    • @Hougaard
      @Hougaard  4 года назад

      Great suggestion, have you tried doing an actual performance comparison on that?

    •  4 года назад +1

      @@Hougaard Yes, with the item record and a lot of records in it.
      It's not as awesome as the one you proved with TextBuilder, instead of Text concatenation, but it's ok.
      Ta Erick......
      By the way....... I love your videos..... Keep doing them

    • @Hougaard
      @Hougaard  4 года назад +1

      That for the feedback, I'll make sure to mention setautocalcfields in a later video :)

    • @gertlynge
      @gertlynge 4 года назад +1

      I'm sure you guys already knows, but if anyone is reading this and wondering why setautocalcfields could be a lot faster, I believe it is because the calculation is done as part of the initial findset query on the sql server. The calcfields solution will do an extra query to the sql server per record for calculating the fields. In a huge table (many records) it will make a huge difference.... 1 sql query vs 1+n queries...

  • @Noctornal
    @Noctornal 6 месяцев назад

    Thank you very much for this video. I got the implementation of Business Charts assigned as my qualification's final project and the lack of documentation really threw me off.
    After a little digging, I believe the bubble chart type is not even considered in the underlying .js file, so it's not like you had any chance except breaking it with that option.
    Did you ever figure out what the second parameter is used for?

  • @sdgfdsfdsgsdgd
    @sdgfdsfdsgsdgd 26 дней назад

    This dude is a bloody legend!

  • @saikick77
    @saikick77 2 года назад

    Erik your videos are incredibly helpful. Thank you.

    • @Hougaard
      @Hougaard  2 года назад

      Glad you think so!

  • @BusinessCentralMusings
    @BusinessCentralMusings 4 года назад

    Nice work! Reminds me of a special chart on a very special role center :)

  • @mauriciovillatoro9361
    @mauriciovillatoro9361 2 года назад

    Wow Erik. That is awesome.

  • @anishchand6441
    @anishchand6441 4 года назад +1

    I would love to see how you create dictionary behind the scene for the json data

  • @kitcat3653
    @kitcat3653 4 года назад

    Hi Erik, Thanks for sharing your know-how to us! Great tutorial - I wanted to enhance this by applying filters (e.g. Date Filter) but failed. I found the CurrPage.Chart.Refresh(), but in using it in validating the filter kills more or less the session. Do you have an advice?

    • @Hougaard
      @Hougaard  4 года назад +1

      I believe you can call buffer.update(CurrPage.Chart) multiple times.

    • @kitcat3653
      @kitcat3653 4 года назад

      @@Hougaard True, thanks for the hint. As I didn't manage to call the Buffer outside the usercontrol, I put the whole code in a local procedure which I'm now able to call whenever needed. Works great :-)
      Greetings from Austria,
      Stefan

  • @kish100100
    @kish100100 Год назад

    Hi Erik. Nice Video. How to add a chart label name to that graph?

  • @rinku9528
    @rinku9528 8 месяцев назад

    Hi Erik Sir, Thank you very much for this video, Video is very helpful, And I Request Pls Create New Chart For Location Wise Sales Amount And Show Amount On Column Chart on Column...,
    Pls I Request...,

    • @rinku9528
      @rinku9528 8 месяцев назад

      Sir When will you Provide the Video ?

  • @bendolman6419
    @bendolman6419 Год назад

    Hey Erik, is there a way to create a 'Horizontal' Bar (Column) Chart? Cheers.

    • @Hougaard
      @Hougaard  Год назад

      Not with that control. Check the video on the Google one...

  • @venkannababu-s6l
    @venkannababu-s6l Год назад

    Hi Erik, thank you very much for the video, it helped me a lot to understand and work on charts in BC and I want to know how to filter the records based on Option or Enum field. For example i have 2 options In progress and Resolved with these status some records are there and against that some balance i need to show. I tired and able to get the chart but option names are not coming how to get them, can you please help me out to achieve that.

    • @Hougaard
      @Hougaard  Год назад

      There a several videos on the channel about setting filter with both SetFilter and SetRange, check them out :)

  • @viveksharma-zw5zk
    @viveksharma-zw5zk 10 месяцев назад

    Hi Erik ,I'm Vivek from India. its so amazing to see your videos. Your Videos are very helpful for us. I just want to ask that I want to make a chart of customer and I want to see the details of his ship to address value in chart. can we do it with code.

    • @Hougaard
      @Hougaard  9 месяцев назад +1

      nto sure I understand, what chart will show a ship to address, you mean a map?

    • @viveksharma-zw5zk
      @viveksharma-zw5zk 9 месяцев назад

      @@Hougaard thanks for your time. I want to create a chart on customer card page and I want customer invoice details according to their ship to code location. I have seen how many invoices have been created from different ship to customer codes.

  • @YannSaintLaurent
    @YannSaintLaurent 4 года назад

    Loved it buy would like to see the version using power bi with on-prem server. Thanks

    • @Hougaard
      @Hougaard  4 года назад

      You mean, just using PowerBI to connect to your local BC?

    • @YannSaintLaurent
      @YannSaintLaurent 4 года назад

      I have that part figured out. Thanks. What I want is to show the Power BI inside BC

    • @Hougaard
      @Hougaard  4 года назад

      Then you need to use the on-premises data gateway docs.microsoft.com/en-us/azure/analysis-services/analysis-services-gateway

    • @YannSaintLaurent
      @YannSaintLaurent 4 года назад

      Erik Hougaard I have that!

    • @Hougaard
      @Hougaard  4 года назад

      So what happens when you click "Get started with PowerBI" from a rolecenter? (Are your users AAD connected)?

  • @stefanviehauser9906
    @stefanviehauser9906 4 года назад +1

    Hi Erik, is it possible to change the colors of the Chart?

    • @Hougaard
      @Hougaard  4 года назад +4

      I believe the colors are chosen by BC to stay within the great color scheme of BC.

  • @jaouahdouhosni6934
    @jaouahdouhosni6934 Год назад

    Hi Erik
    When i use colum there is no color, all are gray

    • @Hougaard
      @Hougaard  Год назад +1

      depends on in the series, but all the colors are dull...

    • @jaouahdouhosni6934
      @jaouahdouhosni6934 Год назад

      Hi Erik
      Thanks for your response youare helpfull

  • @testdagustin7077
    @testdagustin7077 4 года назад

    Hi Erik, could you show a Generic Chart here? I'm sorry if it is a silly question

    • @Hougaard
      @Hougaard  4 года назад

      First of all, there are no silly questions, only silly answers (follow me on twitter @ehougaard for that) - By "generic" do you mean a function that takes a random recordref and produces a chart, that would be a fun idea for a video :)

    • @testdagustin7077
      @testdagustin7077 4 года назад

      @@Hougaard yes, I follow you on twitter ;-) - By generic chart I mean the old charts that were shown in the role center in NAV 2013...2018, it would be possible to use them in Business Central OnPrem?