Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.
Navigation links pointing to custom views

Voorgesteld antwoord Navigation links pointing to custom views

  • dinsdag 10 april 2012 8:42
     
      Bevat code

    I have an issue in dynamics crm 2011.

    A campaign can have multiple campaign responses (1:n) relationship. I created several views for campaign responses depending on the value in an option set.

    How do I add links in the left side navigation of the Campaign screen that will open my custom filtered views of campaign responses ? I tried using this approach, modifying the customizations.xml from the exported solution, but it's not working.

    http://blogs.infinite-x.net/2011/04/18/crm-2011-adding-a-view-to-the-sitemap/

    My xml for the link is:

    <NavBarItem Id="aaaa" Icon="$webresource:my_icon.png" Url="/_root/homepage.aspx?etn=campaignresponse&amp;viewid=%7bDCA90502-AF80-E111-8FC1-984BE11098B3%7d" Area="Sales" Sequence="1003">
       <Titles>
           <Title LCID="1033" Text="zzzzzzzzzzz" />
       </Titles>
    </NavBarItem>
    

    Note: My objective is to click the custom link from the left side navigation section of the campaign form and open the custom view for filtered campaign responses, of the current campaign.

    If anyone succeeds in doing this, I would be grateful for an explanation and souce code used.

    Side note: instead of using <NavBarItem>, did anyone manage to use <NavBarByRelationshipItem>, using a custom ViewId ? I couldn't make either of these work.

Alle reacties

  • vrijdag 11 mei 2012 0:12
     
     

    Hi Daniel,

    That seems quite surprising as I have more than 4 such links in my left nav with different custom views and they all work fine, I have used similar xml tag in sitemap as you have mentioned above. I would help if you can explain what error you are getting or embed a screenshot.

  • vrijdag 11 mei 2012 0:24
     
     Voorgesteld antwoord

    Hi Daniel,

    The URL seems to be correct. I think you also need to specify values for Description as well.

    See this link for details.

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

    I hope this helps. If my response answered your question, please mark the response as an answer.


    Dimaz Pramudya - CRM Developer - CSG (Melbourne) www.xrmbits.com http://twitter.com/xrmbits