Hi,
I have two custom entities Legal entity and ownership entity, legal entity contains the subgrids of ownership entity and I am using ownership subgrid two times on the legal entity because I have two lookups of legal entity on the ownerhsip form, one is parent legal entity(Ownership), second is child legal entity(subsidiary). so using these two relationship I have added two subgrid of ownership entity on legal entity level.
I have created two QC form of ownership entity, for ownership subrgid I will open the ownership QC form and for subsidiary subgrid I will open the subsidiary QC form. To achieve this I have created two custom buttons on the ownership entity subgrid level and added two js function to open the QC forms and that is completely working fine, each button is opening the respective QC form.
Requirement: I need to show only ownership button on ownerhsip subgrid and Hide the subsidiary button, and need to show the subsidiary button on subsidiary subgrid and hide the ownership button. I have created two enables rules for this to handle the show hide.
Issue: Both button is visible on both the subgrid. as I have added the condition with subgrid name and view id as well but still the same condition is getting true for both the subgrids even after checking the particular subgrid name as well.
Please provide any solution for this or any alternative way to achieve this functionality.