Hi Experts,
I am working on 2015 on premises and I have a scenario where a Custom entity Form will have two sub grids. Both the grids are related to system user entity, but has two different N:N relationships with different views.
So, first sub grid displays the users who have Site Executive role, and Second one displays the users who have the Sales Executive role.
When I click on '+' on the first sub grid I want to filter Site Executives records from System user entity who are not assigned to any project. So, I developed a custom JavaScript function and attached it to 'Add Existing Sub grid Associated' Ribbon button command using Ribbon Work Bench (unsupported way). it's worked fine for me.
My problem is for the second sub grid, I want to filter Sales Executive users who are not assigned to any project, For this I developed another function. But I don't know where should I add this function.
I added a custom command with the second JavaScript function and attached this command to Add Existing Sub grid Associated Ribbon button. When I click on any sub grid '+' button on this Custom entity only the first function executes but, the second one didn't executes.
Please provide me a solution for this.
Thanks in advance
harryPK