i'm trying to fetch attribute value of "major" from "Checklist" subgrid by using below code.... but it is showing the below code as not a function error"Xrm.Page.getControl(...).getGrid(...).getRows(...).get(...).getData(...).getEntity(...).getAttribute is not a function
this is the code i used..
Xrm.Page.getControl("Checklist").getGrid().getRows().get(i).getData().getEntity().getAttributes().get("major").getValue();
Hello Abhilash,
I see that you are not using the formContext(docs.microsoft.com/.../clientapi-grid-context) , I would try to fix that first, if that doesn't fix the error, then I would do the following:
Could you please split the code used in a variables, so is more readable and will help you to find where the error is.
You could also type step by step these script in the console panel on web developer tools on browser.
So, something like this:
any sugestions let me know
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