Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Remove tool bar in embedded report in Iframe

Posted on by 235

We are using CRM 365 V9 on premise. I have a report that display the record summary in an iframe on the form. I use the javascript to set the report URL. The problem is that I got a "Edit Filter" button and report toolbar on top of the report that I don't know how to remove. Any help? Thanks.su.png

var orgUrl = Xrm.Page.context.getClientUrl();

var action = "run";

var context = "records";

var reportId = "8158b6c6-b354-e911-a2c5-005056933618";

var recordid = Xrm.Page.data.entity.getId().replace("{", "").replace("}", "");

var etc = Xrm.Page.context.getQueryStringParameters().etc;

var url = orgUrl +

"/crmreports/viewer/viewer.aspx?action=" + encodeURIComponent(action) +

"&context=" + encodeURIComponent(context) +

"&id=%7b" + encodeURIComponent(reportId) + "%7d" +

"&records=%7b" + encodeURIComponent(recordid) + "%7d" +

"&recordstype=" + encodeURIComponent(etc););

iframeObject.setSrc(url);

*This post is locked for comments

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: Remove tool bar in embedded report in Iframe

    If you are only concerned about end users dont like the edit filter button, you could look into controlling this by permission

    docs.microsoft.com/.../edit-default-filter-report

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Remove tool bar in embedded report in Iframe

    Holly,

    It's not supported but you will not achieve result you want to get in other way.

  • Holly Li Profile Picture
    Holly Li 235 on at
    RE: Remove tool bar in embedded report in Iframe

    in CRM 365, getElementById is not supported. Is there a replacement method for that?

    Thanks.

    Holly Li

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Remove tool bar in embedded report in Iframe

    Hello,

    I believe you can use approach similar to one that I used in this post - butenko.pro/.../ms-crm-2011-embed-context-report-to-left-navigation-pane

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans