locked
addCustomView on incident owner lookup not working RRS feed

  • Question

  • Hi All,

    We have a requirement to add a custom view on owner look up of incident form ( incident has N : 1 OOB relationship with team entity)

    (Or in another words)

    We have a requirement to override Owner look up behavior, so that we can show Look up dialog window directly to the user by skipping “Confirm Assignment” intermediary window.

    When I use below code (addCustomView) and when I click on owner look up still the below intermediary window is coming (Confirm Assignment), which is taking me to OOB user view.

    Xrm.Page.getControl("ownerid").addCustomView(viewId, "team", viewDisplayName, fetchXml, layoutXml, true);

    Can anyone guide me to override OOB owner look up behavior ? Is it achievable ? or any workaround ?

    Thanks in Advance

    Shaikshavali Mohammed,

    Thursday, April 11, 2013 8:22 AM

All replies

  • Hello,

    I had the same issue during one project and the only applicable solution was to create own lookup control and use html webresource to filter records.


    Freelance Developer for Dynamics CRM 4.0/2011

    Thursday, April 11, 2013 10:23 AM
    Moderator
  • addCustomView method does not work with Owner look up. 
    The same has been updated now in latest SDK 
    
    http://msdn.microsoft.com/en-us/library/dn198205.aspx
    
    Below is the remark in SDK changes:
    
    Xrm.Page.ui Control Methods (Added a remark to the addCustomView method to show that this method does not work with Owner lookups)

    Tuesday, July 2, 2013 6:54 AM