Filters, filter and more filters in AL and Business Central.

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

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

  • @tariqueaziz8198
    @tariqueaziz8198 3 года назад

    Thanks Erik for your wonderful session...

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

    Wow!
    Love it... will have to watch again and again....

  • @NickyLi
    @NickyLi 4 месяца назад

    Your video is very helpful!
    Questions:
    Is it possible to make a dynamic filter based on first four number of a varchar field in a query or API?
    For example, if an varchar field's content was made with year-description, such as 2024-product, how do I filter anything produces in recent five years?

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

      2024*|2025*|2026*

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

    Hi Erik
    In this video, I didn't find any information about filtering a specific value at a specific location in a field value.
    For example:
    I need to select all Sales Hader in which the symbol "1" is in the third place in the "No." field.
    I think it will be useful for someone:
    SalesHeader.SetFilter("No.", '??1*');

  • @artemkeller2571
    @artemkeller2571 10 месяцев назад

    Hi!
    How can i filter inside page ui for two fields? For example on posted invoice do something like this: "Amount Including VAT" "Remaining Amount"

    • @Hougaard
      @Hougaard  10 месяцев назад

      You cannot filter like that...

  • @joshanglesea9017
    @joshanglesea9017 3 года назад

    Can you apply a filter for a calculated page field by using the MARK method? Would you set these filters OnOpenPage for the examples you showed so an action isn't needed? Or would it have to be OnAfterGetRecord?

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

      You would typically do that by calling page.run(id,RecWithFilers);

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

    Hi Erik
    Thanks for this session. I have a question regarding table filters.
    Can we modify standard filters in a table
    Ex: Table 1003 Job Planing Line
    No field
    TableRelation = IF (Type = CONST(Resource)) Resource
    ELSE
    IF (Type = CONST(Item)) Item WHERE(Blocked = CONST(false))..New filter
    ELSE
    IF (Type = CONST("G/L Account")) "G/L Account"
    ELSE
    IF (Type = CONST(Text)) "Standard Text";

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

      Answer is coming in a future video, stay tuned to the channel ;)

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

    Dear Eric,
    Is there any way to filter inside the filter pane?
    for example: when we put filter on some invoices, and navigate to the report to print the invoices, in the request page all invoices appears.
    So, is there any method to get only the filtered invoices other than the on lookup method, to avoid opening the page.

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

      Yes, you can pass a record variable with filters on to report.run

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

      @@Hougaard thank you, it is working
      Appreciate your support❤️❤️❤️

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

    EH, what if I need to filter records based on more than one field and for more than one condition? E.g. If an employee applies for leave and I'd like to check who else is on leave within that date range - which involves a few periodicity checks to refine it. Cheers.

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

      You can set one filter per field, you can create a combined filter on a single field (like 1|2|3 , or 1000...3000|5000..6000)

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

      @@Hougaard Will give it a go, Cheers.

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

    Erik why can't we filter on @(chair) it gives an error something to do with the parenthesis

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

      What's the exact error you're getting?

  • @ricksciorra220
    @ricksciorra220 11 месяцев назад

    Hi Erik,
    New to AL coding. I am extending the customer card and adding "Global Dimension 2". I would like to filter the pulldown so that only a few items show. My code which does not work is as follows:
    field("Global Dimension 2 Code"; Rec."Global Dimension 2 Code")
    {
    ApplicationArea = all;
    TableRelation = "Dimension Value".Code where("Global Dimension No." = Const(2), Code = filter(0003 | 0005));
    }

    • @Hougaard
      @Hougaard  11 месяцев назад

      Are there spaces on each side of the | sign

    • @ricksciorra220
      @ricksciorra220 11 месяцев назад

      @@Hougaard Good catch, I removed the spaced and it still does not work. Am I missing some additional properties?

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

    19:56 What is the best way to pass those filters to a report? Awesome video!

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

      You can pass filters to a report in the Report.Run(....., Record) parameter, or you can create a procedure in the report that takes the filters, and the create the report as a variable.

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

    Great Video. Is it possible to filter by barcode?. I have the barcode for an item in ' Item References '

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

      Relational filtering is not possible.

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

      @@Hougaard Ok. Thanks. Your videos are helping a lot. Keep up the good work. You got a new follower here.

  • @lucianstinga1587
    @lucianstinga1587 3 года назад

    Nice. Thanks 👍

  • @faiselahmad-1M
    @faiselahmad-1M 2 года назад

    Make a video on Document Page

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

    Teacher
    Rec.Reset
    Rec.Init
    What is the difference
    who use this and that

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

      Reset clears filter, company, and fields... Init initialize all fields to the init value