f6bdd76dcd25e61f46f0830441f162cd2c921c28
FAQ/Questions/Using-ReportParts.md
| ... | ... | @@ -74,4 +74,29 @@ The data-report tag references the complete name of the report and the data-part |
| 74 | 74 | |
| 75 | 75 | The result of the HTML example is shown below. |
| 76 | 76 | |
| 77 | - |
|
| ... | ... | \ No newline at end of file |
| 0 | + |
|
| 1 | + |
|
| 2 | +###What if my custom dashboard is in a separate virtual directory from Izenda? |
|
| 3 | + |
|
| 4 | +If you are trying to implement report parts on a page that exists in a separate virtual directory from Izenda's response server (rs.aspx), you will likely have trouble rendering those report parts, as the JavaScript files will not be retrieved. You must add a tag to your ASPX or HTML page to embed the necessary scripts: |
|
| 5 | + |
|
| 6 | +In ASPX: |
|
| 7 | + |
|
| 8 | +```html |
|
| 9 | +<body> |
|
| 10 | + <form id="form1" runat="server"> |
|
| 11 | + <div> |
|
| 12 | + <cc1:ReportPart id=ReportPartID1 runat="server" Report="ord" Part="Chart" ResourcesInclusion="Embedded" CombineScripts="true"/> |
|
| 13 | + </div> |
|
| 14 | + </form> |
|
| 15 | +</body> |
|
| 16 | +``` |
|
| 17 | + |
|
| 18 | +Pure HTML: |
|
| 19 | + |
|
| 20 | +```html |
|
| 21 | +<body> |
|
| 22 | + <div class="report-part" data-report="Sales" data-part="chart" data-embedscripts="true"></div> |
|
| 23 | +</body> |
|
| 24 | +``` |
|
| 25 | + |