Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Pass FlowFilter from RDLC report to flowfield

(0) ShareShare
ReportReport
Posted on by 2,496

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;

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,081 Super User 2024 Season 1 on at
    RE: Pass FlowFilter from RDLC report to flowfield

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

  • Samantha73 Profile Picture
    Samantha73 2,496 on at
    RE: Pass FlowFilter from RDLC report to flowfield

    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
    Nitin Verma 21,081 Super User 2024 Season 1 on at
    RE: Pass FlowFilter from RDLC report to flowfield

    Hi,

    What is the your question?

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,759 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,468 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans