on 08-05-2015 2:27 PM
Dear Experts.
I am facing an issue in web scripting of i5SPC Display Template in MII 15.0.
When I am running from the Display Template itself, it is giving the correct result like this.
But, when I am calling it from a JavaScript page and drawing it into irpt, it is showing no data.
Here is the Web Script I am using :
var i5SPC = new com.sap.xmii.chart.hchart.i5SPCChart("DisplayTemplate", "QueryTemaplate"); |
i5SPC.setChartWidth("740px");
i5SPC.setChartHeight("500px");
i5SPC.draw("chart");
The output in irpt page...
The following warning message I am getting in the firebug the i5SPC library is getting loaded.
Is there any way to overcome this problem?
Please help
Is the query template you configured returning any data?
Did you assign a model for the data and filled it in with respect to the chart you're trying to draw?
If the data chain is broken, getRows can't return anything, hence the error that a variable/method there is undefined.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Paul,
Thanks, but the Issue is fixed, I tried running the display Template in MII SSCE, and from the source code I found this.
try{ | ||||||
jQuery.sap.require("sap.viz.library"); | ||||||
var SPCChart = new com.sap.xmii.chart.hchart.i5SPCChart("DisplayTemplate","QueryTemplate"); | ||||||
SPCChart.draw("chart"); | ||||||
}catch(err){ | ||||||
sap.ui.core.BusyIndicator.hide(); | ||||||
console.log("An error has occured: " + err.name + "-" + err.message); | ||||||
} |
It is working now, I think there was some problem with the i5SPC Library.
Hi Ushinar,
var i5SPC = new com.sap.xmii.chart.hchart.i5SPCChart("DisplayTemplate", "QueryTemaplate");
Check your spelling QueryTemaplate --> QueryTemplate
I guess that was causing the issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
7 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.