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)

Cannot maximize window when opening report in CRM

(0) ShareShare
ReportReport
Posted on by 80

Using Ribbon Workbench I have added a button to the ribbon on my Account entity, when clicked a JavaScript command is executed. It works, but in IE the window opens at a set size, which is tiny, and cannot be maximized (maximize icon is greyed out), . I can go to Task Manager and maximize the window from there, but that is sort of a hassle. Will note that it opens fine in Chrome. I tried adding a Parameter to the command (resizable=yes), but that seems to have no affect.

Please advise if you have a suggestion, thank you!!

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

           var url = "";

           var newWindow = null;

           var windowName = "_blank";

           newWindow = window.open(url, null, "titlebar=yes, resizable=yes,top=50, left=50, width=1050, height=800");

    If my response is helps you, please mark as "Verified"

  • StaceyKCRM Profile Picture
    80 on at

    Hi. Please advise if you are suggesting I add the above code to the XML in the Ribbon Workbench solution I have created. Many thanks for your time and assistance.

  • Jason M. Cosman Profile Picture
    5,234 Moderator on at

    Helly Savvy;

    It would be helpful if you were able to post the javascript you used for the ribbon button to open the report. If your able to we could show where mn mak is talking about or a different solution depending on how you are opening the report.

    Thanks!

  • Suggested answer
    Community Member Profile Picture
    on at

    create a javascript function, call the file and function on the ribbon button commands

    For reference call the javascript function from ribbon commands

    makdns.blogspot.com/.../dynamic-crm-hideshow-ribbon-button-by.html

    If my response is helps you, please mark as "Verified"

  • StaceyKCRM Profile Picture
    80 on at

    Hi Jason: Here is the JS....Thank you for your help. I am sorta a newbie to development so your assistance is appreciated :-) Again it all works fine in Google, just a matter of figuring out where to plug in code to allow the window to be maximized in IE.

    -Stacey

    function OpenAccountSummaryReport() {

       var rdlName = "Account%20Summary.rdl";

       var reportGuid = "4858FF24-79D9-E511-80DF-000C29380289";

       var entityType = "1";

       var entityGuid = Xrm.Page.data.entity.getId();  

       var url = Xrm.Page.context.getClientUrl() + "/crmreports/viewer/viewer.aspx?action=run&context=records&helpID=" + rdlName + "&id={" + reportGuid + "}&records=" + entityGuid + "&recordstype=" + entityType;

       window.open(url, null, 800, 600, true, false, null);

    }

  • StaceyKCRM Profile Picture
    80 on at

    Thank you for the example, but I am unsure how to proceed because your example references placing the function on the onChange event of a field, and that is not applicable in my case. I am just needing the Window to Maximize when a custom button is clicked in the command bar of my form. I am sure that this is simple, and my novice state is leaving me in the dust a bit. Thank you again for any help :-)

  • Verified answer
    Jason M. Cosman Profile Picture
    5,234 Moderator on at

    Hello Savvy!

    Your right in that example was for a different case; but I think he was just getting at the javascript being added to a button press on the ribbon. Which you already have covered! It's all working except this darn window size. Did you try implementing mn mark's suggestion above around the different parameters that your setting when calling the windows.open command?

    Could also look a the different parameters for the command here:

    www.w3schools.com/.../met_win_open.asp

    It looks like you had a "fullscreen=yes" for IE; or even to put the window to be resizable.

    Take a look at that url and let me now what you think! I hope this helps or gets you closer to your goal of a nice user experience! I appreciate your drive to ensure the user has a great time using your system.

  • StaceyKCRM Profile Picture
    80 on at

    Thank you Jason - something you said triggered me to look at the idea from mn mark's suggestion again, and voila I got I working :-) Many thanks to both of you for your patience and help.

  • Jason M. Cosman Profile Picture
    5,234 Moderator on at

    Hello Savvy I'm so glad you got this! Great job!

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