web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Remove tool bar in embedded report in Iframe

(0) ShareShare
ReportReport
Posted on by 241

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

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    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

  • Holly Li Profile Picture
    241 on at

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

    Thanks.

    Holly Li

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Holly,

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

  • Suggested answer
    Kokulan Profile Picture
    18,054 on at

    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans