Hi!
I need to send selected records ids to my custom application when i click in a ribbon buttom.
I'm using this code:
var ids = window.dialogArguments.window.document.getElementById("crmGrid").control.get_selectedIds();
this code is working fine.
the problem is when i get the ids from crmgrid inside of relationship entity.
scenario:
Contact Entity -> Click ribbon button -> work fine.
Account Entity -> Click Contact relationship -> click ribbon button -> dons't work.
have any code wich work for both scenario?