As you probably know CRM customizations support IFrames – which are the only way to have true integration in the CRM UI (as per the current latest version which is 4.0). The “only way”, at least, the way I have figured to do this – is to pass this data across via the querystring, that is, append it to the URL.
var myData=crmForm.all.crm_field.DataValue;I need to explain the above script a bit.
//Append the variable to the aspx page.
// pass the URL to the IFRAME
crmForm.all.IFRAME_crm_my_form.src=URL + '&querystring=' + myData;
crm_field is a type that belongs to the entity. This might be a custom entity or a CRM one, it doesn’t matter.
IFRAME_crm_my_form is the schema name for the custom IFrame (ASPX page). We simply get the current URL so that we can append the querystring.
I'd be interested in hearing any other ways of solving this problem...