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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Open a Web Page in a new Window

(0) ShareShare
ReportReport
Posted on by

Hello All,

I have a requirement to open a Web Page in a new Window.   

I have an Portal Entity Form which display a Dynamics Entity Form.  On the Dynamics form there are several sub-grids.   So I have added an Entity Metadata record for each sub-grid.

On one sub-grid in particular, we need to open the details of the related record in a new pop-up web page, leaving the original page.

Is this possible, and if so, any suggestions on how to implement?

Thank you

Tom

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi Tom,

    Under the metadata >> subgrid configuration, You could try 'Target Type' as 'Entity Form' instead of Web page. tHis will open the edit page as popup.

    gridconfig.png

    Hope this helps.

  • Tom Thompson Profile Picture
    on at

    Hi Ravi, thank you for the comment.

    I should have mentioned in my original post that this is how we originally configured the sub-grid.  So it was related entity record was opening the edit page as a popup.  However,  the requirement has changed in that the users would like to see the edit page in a new browser window with its own navigation.

    So ideally, we would like the related entity record to open it an independent web page so that users could view both records side by side.

    Thank you

    Tom

  • Suggested answer
    Nicholas Hayduk Profile Picture
    2,863 on at

    Hi Tom,

    I think you'll need a bit of custom jQuery that adds the target="_blank" attribute to the links, along with the "Webpage" option.

    Here some jQuery to get you started:

    (function ($) {

    $(document).ready(function() {

    $('.entity-grid').on("loaded", function () {

    $("td[data-attribute='ticketnumber']").each(function() {

    $(this).find('a').attr("target", "_blank");

    });

    });

    });

    }(jQuery));

    Nick

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hello,

    You can get help from below link.

    msdn.microsoft.com/.../jj602956.aspx;MSPPError=-2147217396

    Also you can write unsupported way -make sure this was not recommended by Microsoft.

    function (url, title) {

          var w = screen.width - 75;

          var h = screen.height - 200;

          var left = (screen.width / 2) - (w / 2);

          var top = (screen.height / 2) - (h / 2);

          var newWindow = window.open(url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, copyhistory=no, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left);

          if (window.focus) {

              newWindow.focus();

          }

  • Tom Thompson Profile Picture
    on at

    HI.. the link appears to be invalid

  • Bob@idbokx Profile Picture
    15 on at

    @Nicholas Hayduk : simple and efficient - and still working in 2021 ! Thanks

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans