Make your own Date Filters in AL and Business Central

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ก.พ. 2025

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

  • @shammylevva
    @shammylevva 10 หลายเดือนก่อน

    Excellent video as always. This seems really powerful, sadly every example online is for just dates. but the DateTime one OnResolveDateTokenFromDateTimeFilter seems odd as the signature is
    local proceedure MyFilter(DateToken: Text; var DateFilter: Date; var Handled: Boolean)
    So unlike the simple date example where you had a from date and a to date the datatime version seems to have a single DateFilter variable of type Date. So I am struggling to see how you can set DateFilter when you have two datetimes.
    My use case is I want to create a filter thismonth and lastmonth but on datetime fileds not date fields. It feels like it should be simple but I cannot get it to work. Any ideas?

  • @mauriciovillatoro9361
    @mauriciovillatoro9361 ปีที่แล้ว

    Thanks for this amazing video, Erik.
    I have seen the "handled" variable all over the Base App Code. Could you tell me how it works?.
    Thanks

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

      Handled is used when you want to disable the regular Microsoft process and replace with your own.

    • @mauriciovillatoro9361
      @mauriciovillatoro9361 ปีที่แล้ว

      @@Hougaard Thanks, that will be useful.

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

    Hi Erik
    I have tried same coding in my environment but if I give party in date filter.. the condition I snot going inside the function loop
    Do you have any idea y so

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

      Whar?

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

      @@Hougaard the same coding is not working in my environment

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

      @@bharath70 What version? Cloud?

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

      @@Hougaard BC18 and on premise

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

      Did you find any specific reason for not working the code?

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

    This is cool as long as the users use the right posting date for the transactions relating to the party. Also would be helpful to be able to set the “events” up in BC without code 😳😉 Ordering your book today, thanks for the reminder.

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

      ... if only someone was working on a "Simple Object Designer" kinda app??

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

      @@Hougaard YES! But then I’d say just use a dimension to report on. #tocodeornottocode

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

    Cool feature! I will use it right way ;)

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

    Yes, some users type texts like p1 for January into date filters, but most users type full dates and date ranges into BC the same way they do it in Excel. The thank me for my training effort but say having to remember two methods for two apps is too much.

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

    Wow! Nice one!

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

    Powerful stuff indeed