Hello,
I would like to open a custom page dialog that should include a sub-grid, and the data of the sub-grid will be filtered based on the current record id vs a unique id related from another table.
Example: When I click the below button in the ribbon "Navigate to Ticket" a dialog should appear and show me in the grid the line-items that are related to this account:

It is very similar to how we can see the related contacts of the accounts based on the above screenshot, but the only difference is that we're launching a custom dialog onSelect of the button to show the related record(s) in a grid view.
I also thought about another option: (I don't know if it is feasible)
-If the user clicked the Navigate button it will take him directly to the needed table but the question is will it be possible to filter a View dynamically to show only the records that are related to this "Account" that is based on the accountid that I clicked the button from?
Which option is better to achieve the above requirements? Could you please provide an example or some articles that might help?
Any assistance is highly appreciated.
Best regards,
EBMRay