Hello - I'm trying to get familiar with debugging CRM pages. I'm able to access child properties of Xrm.Page.context through the browser Script Watch panel. However, I'm not able to access child properties of Xrm.Page.data or Xrm.Page.ui. Both of these object return null. Why would Xrm.Page.data and Xrm.Page.ui return null for me? AFAIK these object should be populated and available for me just like Xrm.Page.context? The Xrm.Page reference on msdn at http://msdn.microsoft.com/en-us/library/gg334351.aspx says this:
"The Xrm.Page object is available to JScript functions for form events and in JScript functions called by ribbon commands. However, Xrm.Page.data and Xrm.Page.ui only exist in the context of an entity form. You can use the functions available within Xrm.Page.context when writing scripts to be available for ribbon commands that do not occur within an entity form ribbon."
The description above seems unclear to me. All I know is when I open an existing Phone Call in CRM and try to use Xrm.Page.data and Xrm.Page.ui in a browser Script watch on the page both Xrm.Page.data and Xrm.Page.ui return null. Can you explain to me why this is?