Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

Using RequestFiterFields while using a query object in a report

Posted on by

I am creating a report object that uses an existing query object. I like to add RequestFilterFields from some of the fields available in the query.

Is there any way?

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 70,124 Super User 2024 Season 2 on at
    RE: Using RequestFiterFields while using a query object in a report

    Hi, The RequestFilterFields property can only be applied to Data Items.

    pastedimage1652661075920v1.png

    If you insert the Query fields as a variable into the Column, it cannot be done.

    pastedimage1652661089789v2.png

    In this case, you can create a temporary table first, use this temporary table as DataItem, and insert the value of Query into this temporary table when Report runs. I think this will not be much less perfomance.

    Hope this helps.

    Thanks

    ZHU

  • Suggested answer
    Alok.kulshreshtha Profile Picture
    Alok.kulshreshtha 934 on at
    RE: Using RequestFiterFields while using a query object in a report

    may be try to add variable as filter on request page if columns are not available in report data item and pass value a filter to query.

    Regards,

    Alok Kulshreshtha

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,744 Moderator on at
    RE: Using RequestFiterFields while using a query object in a report

    Maybe you can share some code, so we can see how you have organized your report ?

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,564 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,651 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans