Skip to main content

Notifications

Announcements

No record found.

Supply chain | Supply Chain Management, Commerce
Unanswered

Filter record dynamically by using sysQueryForm

Posted on by 45

Hi Team,

I want to create a single report from different module (Sales Quotation and Project Items Trans). the query filter also should come as per the parameter value. Is it possible to have dynamic query as per the parameter value.

Kindly see the below sample.

0755.pastedimage1681718678005v2.png

  • GirishS Profile Picture
    GirishS 27,832 Super User 2024 Season 1 on at
    RE: Filter record dynamically by using sysQueryForm

    Hi Bibin,

    As per my understanding ye you can create dynamic query via code, you can create two separate methods for Sales quotation and Project Item trans with the respective dynamic query logic.

    On the process report you can call the respective methods based on the parameter selection.

    Thanks,

    Girish S.

  • Bibin TV Profile Picture
    Bibin TV 45 on at
    RE: Filter record dynamically by using sysQueryForm

    My key objective was to set different query as per the parameter selection on the SysQueryForm. Kindly see the below example.

     

    Example

    Parameter 1 : Sales Quotation(Sales and Marketing)

    Parameter 2 : Material Issue(Project)

     

    Query filter should change as per the parameter selection. If Parameter 1 is selected, the query should use the table Sales Quotation otherwise Project Item Transaction table.

    As per your explanation, I understand that, I have to use the same query and assign different data source. Is there any example you can give for the quick understanding??

    Thank you.

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,280 Super User 2024 Season 2 on at
    RE: Filter record dynamically by using sysQueryForm

    Hi Bibin,

    Can you explain what exactly you want to achieve? A report has one query. A query can have multiple data sources (tables). Is your report requirement about querying data to be summarized in one report? Or do you try to get two different reports in one?

  • huijij Profile Picture
    huijij 19,811 on at
    RE: Filter record dynamically by using sysQueryForm

    Hi Bibin,

    Can you able to explain business requirements? Do you want to customize the sysQueryForm?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans