Xrm.Page is being deprecated and one needs to pass the executionContext to the javascript function to get at the data that was available from Xrm.Page. But, how do you test your function from the browser’s debbuger?
What I do is I create my own executionContext variable and then pass it to my js function to see how it would work.
fakeExecutionContext = { getFormContext: function(){return Xrm.Page;}, context: Xrm.Page.context } |
and you would call it like this:
myTestDynamicsFunction(fakeExecutionContext);
No comments:
Post a Comment
Remember, if you want me to respond to your comment, then you need to use a Google/OpenID account to leave the comment.