locked
Filter Add Existing Button on N:N relation RRS feed

  • Question

  • Hi,

    I have a problem after filtering the add existing button on N:N relation which is the Add button which is in lookup form is getting disabled when I click on any record resulted from the filtering view..!!

    It is really a strange problem .. Anyone can help me ?

    thank you.


    Zarour

    Sunday, May 6, 2012 10:23 AM

Answers

  • Thank you Ashish,

    I have found the problem it was because I was passing an invalid attribute name to the Id of the grid layout, so that when I was selecting a record in the grid, crm tries to read the id of that record which must be the primary attribute id of that entity, and in that way it will be null so the number of selected records will always be 0 and the "Add" button is disabled.

    Thank you again :).


    Zarour

    • Marked as answer by zarour Monday, May 7, 2012 6:02 AM
    Monday, May 7, 2012 6:02 AM

All replies

  • Hi,

    I am assuming, the user has also the permissions to that N entity.

    Is that only happening for a single user or all users? Also is it happening for all N:N relations or only for that one? Even for the relation where it is happening, is it happening every time or only intermittently.

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


    Ashish Mahajan, CRM Developer, CSG (Melbourne)
    My Personal Website: http://www.ashishmahajan.com
    My Blogs: http://ashishmahajancrm.blogspot.com.au and http://ashishmahajancrm.wordpress.com
    My Youtube Channel: http://www.youtube.com/user/ashishmahajanmscrm

    My Linkedin: View Ashish Mahajan's profile on LinkedIn
    My Twitter: https://twitter.com/#!/ashishmahajan74

    Monday, May 7, 2012 2:25 AM
  • Thank you Ashish,

    I have found the problem it was because I was passing an invalid attribute name to the Id of the grid layout, so that when I was selecting a record in the grid, crm tries to read the id of that record which must be the primary attribute id of that entity, and in that way it will be null so the number of selected records will always be 0 and the "Add" button is disabled.

    Thank you again :).


    Zarour

    • Marked as answer by zarour Monday, May 7, 2012 6:02 AM
    Monday, May 7, 2012 6:02 AM