Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

SSRS Report Format based on Parameter

(0) ShareShare
ReportReport
Posted on by 45

Hi Team,


I am seeking support for the following.


There are two report formats and I want to run the report based on a parameter. Kindly see the controller class as well. I have defined the controller logic as per below screen shot.


Report Parameter

pastedimage1671426638425v1.png

Report Formats

pastedimage1671426672810v2.png

Controller Class

pastedimage1671426698475v3.png

  • Verified answer
    GirishS Profile Picture
    27,825 Moderator on at
    RE: SSRS Report Format based on Parameter

    If it's solved your issue, please mark the answers as verified so others can make use of it. It's done by clicking Did this answer your question? > Yes on the particular reply.

    Thanks,

    Girish S.

  • Suggested answer
    Bibin TV Profile Picture
    45 on at
    RE: SSRS Report Format based on Parameter

    Hi Girish,

    Thank you, now it is working fine.

  • Suggested answer
    GirishS Profile Picture
    27,825 Moderator on at
    RE: SSRS Report Format based on Parameter

    Hi Bibin,

    Have you mention the controller class in the menu item?

    Also remove the super call on the "preRunModifyContract" method and check.

    Thanks,

    Girish S.

  • Bibin TV Profile Picture
    45 on at
    RE: SSRS Report Format based on Parameter

    Hi Haig,

    Thank you for answering. I have tried with your solution, Still the report design is not changing.

  • Suggested answer
    Haig Liu Profile Picture
    Microsoft Employee on at
    RE: SSRS Report Format based on Parameter

    Hi Bibin TV,

    You can try changing the conditional statement to:

    if(enum2str(_contract.ParmAbuiDhabi()) == "Yes")

    Here's the link to my reference: https://dhruvrthakar.blogspot.com/2018/07/change-ssrs-report-design-based-on.html

    The enum2str function converts the specified enumerated text to a character representation.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 32 Super User 2025 Season 1

#2
Sahra Profile Picture

Sahra 21

#3
Zain Mehmood Profile Picture

Zain Mehmood 15 Moderator

Overall leaderboard

Product updates

Dynamics 365 release plans