Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

CRM Error Tracing

$
0
0

Experiencing the above pop-up when saving a case. Is there any kind of error tracing or logging for this? The problem is caused by what we're testing below:

We currently need a way to get a value from a field within an iframe to the CRM entity that the iframe is embedded within. The iframe is currently dynamically set which is currently working. We have alsoun-checked the “Restrict cross-frame scripting, where supported”.

We successfully did this in the CRM 4.0 environment (For a different iframe / field combination) with the following code whereby a checked box triggered an Onchange event which brought the values into fields we added within the CRM entity:

 crmForm.all.pll_user_no_hide.DataValue = crmForm.all.IFRAME_(redacted).Document.form1.txtUserID.value;  ** this worked perfectly

However, this format did not convert using any Jscript converter in the CRM 2011 environment. In searching other forums we have found the following for the CRM 2011 environment to try and solve the issue addressed above (to pull an iframe field value within CRM 2011 entity)

 function iframe_onsave()

{

var iframe_value = Xrm.Page.ui.controls.get("IFRAME_case").getObject("ct100_c_we_ct193_wc_val_txt").contentWindow.document;

 alert(iframe_value);

}

This is a first attempt to just see if we can view the value with a pop-up; upon Saving the entity we receive the following error:

We also tried this on an onchange event and received a similar warning.

Any suggestions?


Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>