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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Pass FlowFilter from RDLC report to flowfield

(0) ShareShare
ReportReport
Posted on by 3,247

Hi

I have flowfilter (date) defined in a flowfield. I'm trying to pass the the date filter when running a report so based on the date selected by end user, the flow field data is filtered:

Flow Fields on table

        field(60003; Balance; Decimal)

        {

            FieldClass = FlowField;

            CalcFormula = sum("G/L Entry".Amount

                                                            WHERE(

                                                                  "Global Dimension 2 Code" = FIELD(Code),

                                                                  "Posting Date" = field(DateFilterP1)

 

                                                            ));

            Caption = 'Balance';

        }

 

        field(60400; DateFilterP1; date)

        {

            Caption = 'Date Filter';

            FieldClass = FlowFilter;

        }

 

Report

 

                    trigger OnAfterGetRecord()//GL Entry

                    var

                        DimValue: Record "Dimension Value";

 

                    begin

                        begin

                           

                        end;

                        begin

                            DimValue.SetRange(Code, "Global Dimension 2 Code");

                            DimValue.SetFilter(DateFilterP1, '%1..%2', 20220501D, 20220610D);//'%1..%2',

                            if DimValue.FindFirst() then

                                DimValue.CalcFields(Balance);

 

                            StartDim2Balance := DimValue.Balance;

                        end;

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,698 Moderator on at

    Hi,

    What is the your question?

  • Samantha73 Profile Picture
    3,247 on at

    the above code doesn't work or I cannot pass the flowfilter from report to flowfield. Couldn't find a standard report with an example - perhaps someone can point me to a standard report

  • Suggested answer
    Nitin Verma Profile Picture
    21,698 Moderator on at

    what is the error you are facing? please share your report here.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,229

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,867 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,153 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans