Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

Pass record GUID to IFRAME report - Error: The expected parameter has not been supplied

$
0
0

Hello,

I have created a report in VS with a parameter of the record ID.  I have added this to an IFRAME on an entity and works fine when the ID is manually entered on the report but when the parameter is hidden it doesn't pull the GUID.

IFRAME Properties:

URL: about:blank
Pass record object: Un-ticked
Restrict cross-frame: Un-ticked

JavaScript:

 var iframeObject = Xrm.Page.getControl("IFRAME_Customer_Report");

 if (iframeObject != null) {
  var strURL = "/CRMReports/viewer/viewer.aspx"
  + "?action=run&context=records&helpID="
  + "Customer_Report"
  + ".rdl&id=%7b"
  + "BAAA0325-B7EE-E611-80DD-00155B0A5A09"
  + "%7d&records="
  + Xrm.Page.data.entity.getId()
  + "&recordstype=1";

 //Set URL of iFrame
 iframeObject.setSrc(strURL);
 }

I'm not sure if it's the javascript above that's incorrect as I found this online.


Viewing all articles
Browse latest Browse all 46379

Trending Articles



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