I work with Dynamics CRM 2011 Online and am trying to refactor the code that works on the Quote> Add Product page to also work on Order> Add Product. The problem is that when the page loads, I get the error message "Unable to get getValue property" from undefined or null reference. "
I went into the IE console (tried both IE 9 and 10) and typed in what, in my opinion, was a breaking line:
Xrm.Page.getAttribute('ati_clin').getValue()
He complains that "Object does not support the property or method getAttribute." I also tried
document.getElementById('ati_clin')
but that also fails.
This does not make sense to me, because I can use the HTML representation of the developer console to find the object on the page, and it is clearly there (no typo either). It also does not make sense that this operator fails in the console on both pages, although one of the pages works correctly at run time and the other does not. Should it not work on a page that runs at runtime?
After some research, I think that the following publication is the most relevant, but I am afraid that this does not lead to an answer, seeing how I feel about it: Xrm.Page.data is null
My question is, why does the console return this error if the item explicitly exists?
source share