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)

Open View with navigation bar

(0) ShareShare
ReportReport
Posted on by

Hi all,

I want to open from a custom link a certain view within the system. I use the following code as found on MSDN:

var url = context.getClientUrl() +
"/main.aspx?etn=" + entityName + "&pagetype=entitylist&viewid=%7b" + viewId + "%7d&viewtype=1039";
window.open(url);

This code works fine but the view is shown without navigation bar on top which is not what we want. How can I open the page with the navigation bar?

Thanks in advance.

Robin

*This post is locked for comments

I have the same question (0)
  • NatrajY Profile Picture
    3,040 on at

    Add additional parameter navbar and set it to on

    msdn.microsoft.com/.../gg328483.aspx

  • Robin De Bondt Profile Picture
    on at

    When the parameter is not defined the default value is always on. Nevertheless I tried adding the parameter and it's still not working.

    This looks like a bug in my opinion.

  • Royal King Profile Picture
    27,686 on at

    add parameter navbar=on in url that will open view with navbar.

    http://msdn.microsoft.com/en-us/library/gg328483.aspx

    navbar

    This capability was introduced with the CRM Online Spring '14 and CRM 2013 Service Pack 1 releases.

    Controls whether the navigation bar is displayed and whether application navigation is available using the areas and subareas defined in the sitemap.

    • on 

      The navigation bar is displayed. This is the default behavior if the navbar parameter is not used.

    • off 

      The navigation bar is not displayed. People can navigate using other user interface elements or the back and forward buttons.

    • entity 

      On an entity form, only the navigation options for related entities are available. After navigating to a related entity, a back button is displayed in the navigation bar to allow returning to the original record.
  • Aileen Gusni Profile Picture
    44,524 on at

    Hi Robin,

    Do you use CRM 2013 SP1 or Springwave update for CRM Online?

    Because the navbar parameter is only available for CRM with those version:

    "This capability was introduced with the CRM Online Spring '14 and CRM 2013 Service Pack 1 releases."

  • Robin De Bondt Profile Picture
    on at

    @Chitra, the property is not working like I stated before.

    @Aileen, we are on CRM Online with Spring Wave updates installed.

  • Verified answer
    NatrajY Profile Picture
    3,040 on at

    You are correct. I tried this and it doesn't work. I logged the issue on Connect. Please vote up.

    connect.microsoft.com/.../navbar-parameter-doesnt-work

  • Robin De Bondt Profile Picture
    on at

    Thanks Natraj, I voted. Please everybody vote for this bug on connect please. :)

  • luoyong Profile Picture
    on at

    Yes, you are right. We have found the same problem in Dynamics CRM 2015 too.

  • Community Member Profile Picture
    on at

    Yes, We have found the same problem in Dynamics CRM 2016 On-premise too.

  • Community Member Profile Picture
    on at

    var url = context.getClientUrl() +

    "/main.aspx?etn=" + entityName + "&pagetype=entitylist&viewid=%7b" + viewId + "%7d&viewtype=1039&navbar=on";

    window.open(url);

    I put navbar=on still it is not working.

    Looks like it is a bug.

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