Resources for IT Professionals > Dynamics Forums > CRM Development > How can I load a view form a navbar item
Ask a questionAsk a question
 

AnswerHow can I load a view form a navbar item

  • Friday, November 06, 2009 4:34 PMBILL_TETRAULT Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Have the code that does load view but there is an error and my guess is somewhere with
    areaCampaignResponsesFrame

    What I am trying to do is issue load that only shows a filtered view of campaign responses.
    Any ideas would be appreciated.

    leftNavRename(

    'nav_mdv_campaign_campaignresponse_accepted', 'Campaign Responses', 'Accepted');

    if

    (document.getElementById('nav_mdv_campaign_campaignresponse_accepted') != null) {
    document.getElementById(
    'nav_mdv_campaign_campaignresponse_accepted').onclick = function() {
    loadArea(
    'areaCampaignResponses');
    document.frames(
    'areaCampaignResponses').document.onreadystatechange = areaCampaignResponsesFrame_OnReadyStateChange;
    }
    }

Answers

  • Monday, November 09, 2009 1:48 PMTanguy T Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    As the view displayed in this case is always an associated view (which is only ONE UNIQUE view), I think that what you try to achieve is not possible...

    Or you have to code a specific form that displays the records you want...

    My blog : http://mscrmtools.blogspot.com You will find: Form Javascript Manager (export/import javascript from forms) ISV.Config Manager (graphical ISV.config edition - export/import) View Layout replicator (customize one view and replicate to others) And others (use tool tag on my blog)

All Replies

  • Sunday, November 08, 2009 7:28 PMMayankP Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    please have a read of following article and see if it helps resolve this issue..

    http://blogs.msdn.com/crm/archive/2008/01/10/creating-a-custom-search-button.aspx
  • Monday, November 09, 2009 1:42 PMBILL_TETRAULT Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Not realy what I'm looking for.  The look I'm trying for is.

    When in a Campaign on the left you see Campaign responses and when you click on NavBar Campaign responses you see a list of Campaign responses in a grid in the divDataArea,  I have two other NavBar items Accepted and Registered that when clicked I would link the same grid in the divDataArea as Campaign responses but only showing selected items (Accepted or Registered)
  • Monday, November 09, 2009 1:48 PMTanguy T Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    As the view displayed in this case is always an associated view (which is only ONE UNIQUE view), I think that what you try to achieve is not possible...

    Or you have to code a specific form that displays the records you want...

    My blog : http://mscrmtools.blogspot.com You will find: Form Javascript Manager (export/import javascript from forms) ISV.Config Manager (graphical ISV.config edition - export/import) View Layout replicator (customize one view and replicate to others) And others (use tool tag on my blog)