locked
Filter grid based on a parent attribute in a form RRS feed

  • Question

  • Hi,

    This question is regarding crm 2011.

    I have a form related to an entity and a grid related to that corresponding parent entity

    I want to filter the grid  based on the parent entity's attribute (on change event).

    Ex: I have two entities (A and B)related to each other.In one parent entity form(entity A) i have a child grid(related to entity B).

    I would like to filter the records in the grid based on the attribute (on change event) of the parent entity.

    Thx in Advance

    Thursday, June 2, 2011 12:49 PM

All replies

  • Hi,
    
    In the list there is a div with the id "effectiveFetchXml". You can probably override this with some cross frameing javascript.
    
    I'm not sure this works as you need to request an update aswell. This might be possible aswell by executing the method "[entityname] . Refresh ( ) " which is what the refresh button calls. It also has to be called using cross frame scripting.
    
    None of this is supported but you might get it to work.
    
    The recommended way is to create a custom component in asp.net or silverlight and show it in the form.
    


    Gustaf Westerlund, CEO and Chief Architect at CRM-Konsulterna in Sweden
    Blog: http://gustafwesterlund.blogspot.com
    Swedish Dyn CRM Forum: http://www.crmforum.se
    Tuesday, June 7, 2011 1:07 PM
  • please check i am refresing grid on tab change in crm 2011 . you can implement on picklist on change

    http://www.navishjain.com/?p=82


    Navish Jain
    Tuesday, October 4, 2011 4:20 PM