locked
Display Account form RRS feed

  • Question

  • Hi Experts,

    We have a requirement on Account. We have a self relationship with Account and Account have 1:N relationship with products. Requirement is:

    There are Two Accounts called, Account-A and Account-B. Account-A is a parent of Account-B. Account-B has associated with 4 products called Product-1, Product-2, Product-3 and Product-4.

    When i directly open Account-B, then only Product-1, Product-2 and Product-3 should display in Products sub-grid. If i open Account-B from Account-A, then only Product-4 should display in products sub-grid.

    I tried to workout this requirement with record URL by using "window.location.href" statement. but i am getting the same URL everytime(either in direct record or from parent record).

    Did any one worked on this requirement and let me know any possible ways.

    Regards,

    Kumar


    • Edited by Kumar_R Monday, August 7, 2017 6:52 AM .
    Monday, August 7, 2017 6:08 AM

All replies

  • This seems like a strange requirement, and I don't think you'll be able to fulfil it completely.

    I don't think you can reliably determine from where a record was opened. Also, there are many permutations that are possibly ambiguous (for example opening the record from the most-recently used list).

    I think you should rethink the requirement and possibly the data structures to get something that is possible - what's the reason behind this requirement ?


    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    Monday, August 7, 2017 3:35 PM
    Moderator