I want to use javascript to extract the values of the selected datasets in a subgrid.
could someone help me?
I'm looking forward to your answers.
Reagrds!
Hi Partner,
Please check my anwser yesterday,
in addition, a full code to extract lookup field value and collect them into an dataset array could be below:
var dataset = [];
var rows = Xrm.Page.getControl("Sessions").getGrid().getSelectedRows();
rows.forEach(function (row, i) {
dataset.push(row.getData().getEntity().attributes.get("msevtmgt_event").getValue()[0].name);
});
then call any specific records with dataset[i]; // i is index
Regards,
Clofly
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156