A better solution might therefore be to have the contact image display in the header section of the form (or perhaps footer) so that it remains in view as long as the form is open as illustrated below.
There are probably other ways of configuring this option (e.g. html page web resources), but I ended up using an IFrame.
Add an IFrame to the header section with the following settings:
Then in the form onload jscript pass in the URL that points to the image. You can obviously build the URL dynamically based on your needs. I don't believe there is currently a way to access the header elements via the standard Xrm navigation, so you can do so using document navigation:
document.getElementById("IFRAME_Image").src = url;
No comments:
Post a Comment