CRM 2013 window.location.href does not work from javascript on html webresource for navigating between views for different entities RRS feed

  • Question

  • I have a html webresource in CRM 2013  which has some links on it , the html page opens fine click on the menu bar . I want to open different entity views when clicking on those links , I am using javascript function to do window.location.href=url  , But instead of navigating the content panel to the requested view its just keep on refreshing the current view, window.open(url) works fine but it opens in new browser window and I loose my top menu so that's not helpful, I  want to do href and navigate to the new view
    Tuesday, January 21, 2014 6:28 PM

All replies

  • I know there were problems trying to navigate to different URLs in 2013, even from within an IFrame, I believe due to some "black magic" implemented to try keep you within the same window. I'm unsure if there is a hotfix or update rollup scheduled to fix this.

    Let me ask this first though, when you say you want to open different "entity views" do you mean open up a form (i.e. 1 record) or do you mean a grid view (i.e. a list of records)? The reason I ask is the former is much easier to obtain using the the Xrm.Utility.openEntityForm (see here: http://msdn.microsoft.com/en-us/library/jj602956.aspx). I'm not sure how you would achieve the latter though.

    Wednesday, January 22, 2014 12:15 AM
  • Thanks for your response Conor Gallagher , I know Xrm.Utility.openEntityForm , but you are right it can be used to open form or webresource ie 1 record , I want to open a list of records of some entity. lets hope Microsoft comes back with some fix.
    Wednesday, January 22, 2014 1:13 AM