web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Modify DataItemTableView in Standard Report

(0) ShareShare
ReportReport
Posted on by 948

I want to add another const value in report 214. Is it possible to modify data item filters in AL Code

I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

    We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist. If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    dynamicsuser.net/.../developers

    I will open this up to the community in case they have something to add.

    Thanks.

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,165 Moderator on at

    To add a constant value i guess you do not need to modify a filter?

    You can create a report extension and then add the constant value as a column in the report.

    Or did i misunderstand you?

  • ShanAbeywicrema Profile Picture
    948 on at

    Hi  Inge M. Bruvik,

    This report already has a dataitemproperty filter. Type=Item, I need to add Type= Item | G/L Account.

    This is the challenging part.

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,165 Moderator on at

    You can not do that as en extension to the current report. But if you create a copy of the 214 report it will be possible to implement a work around giving you the result you want.

  • Suggested answer
    Dallefeld Profile Picture
    229 User Group Leader on at

    There are new options and capabilities coming in 2022 Wave 1 that I saw demonstrated this week for easily adding fields. (version 20)

  • Suggested answer
    YUN ZHU Profile Picture
    99,598 Super User 2026 Season 1 on at

    Hi, Unfortunately, the property 'DataItemTableView' cannot be customized now.

    pastedimage1649380349355v1.png

    So if you want to do it now, just copy it to create a new report.

    Hope this will help.

    Thanks.

    ZHU

  • MazlumMomo Profile Picture
    12 on at

    Hello shan abeywicrema 

    I had similiar issue. Just removed all filters and added manually specific filters I need for the data item:

    pastedimage1680537131536v1.png

    Make sure that you assign all the necessary filters and not only the one you wanted to change.

    Hope this helps.

    CU,

    Mazlum Momo

  • Suggested answer
    KB-22080944-0 Profile Picture
    15 on at
    Thx MazlumMomo
     
    I,ve managed to do it even without the clear/reset by using filtergroup(2). Now i don't loose all other filters that might be set in the request page.
     
        dataset
        {
            modify("Sales Header")
            {
                trigger OnAfterPreDataItem()
                begin
                    "Sales Header".FilterGroup(2);
                    "Sales Header".setfilter("Document Type", '%1|%2', "Document Type"::Order, "Document Type"::Quote);
                    "Sales Header".filtergroup(0);
                end;
            }
        }
  • Suggested answer
    Bjoern Waninger Profile Picture
    4 on at
    Just wondering: Now we have version 23.5. and it seems to be still not possible to change the DataItemTableView with a reportextension?
    It is a huge pain duplicating a standard report only for the purpose of changing the sorting of dataitems :-(

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,065 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,132 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 703 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans