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
Siv Sagar
149
Super User 2025 Season 1
Muhammad Shahzad Sh...
61
Most Valuable Professional
Daivat Vartak (v-9d...
53
Super User 2025 Season 1