on 02-05-2016 7:18 PM
I use the following to add i5chart to my sapui5 page in MII :
var i5SPC = new com.sap.xmii.chart.hchart.i5SPCChart("<Display Template>", "<Query Template>");
i5SPC.setChartWidth("640px");
i5SPC.setChartHeight("400px");
but the sapui5 app freez for one min until the i5chart is loaded, is there any load event for the i5spc chart so that I can use the busy loading indicator for the page and when the i5spc loaded I will stop the busy loading ?
According to the help docs there are some events available you may be able to use:
Regards,
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Momen,
It should be:
i5SPC.registerUpdateEventHandler(function(oEvent){
console.log("test", oEvent);
});
In document, the method was mentioned wrong. Even I tried registerEventUpdateHandler, but it didn't worked. I tried to debug and actual method is registerUpdateEventHandler. Now, it works fine for me.
Check this snippet for more info:
I request SAP team ( / ) to update the document i5SPCChart Events - SAP Manufacturing Integration and Intelligence - SAP Library. Thank you!
Regards,
Sai Vellanki.
Yes now it works and I don't see the error,
but I can't get any log msg from console anymore ?!
So I can't see the oEvent log from below:
console.log("test", oEvent);
And the console also stop logging anything from any other functions I have.
I noticed this log msg that appear first from i5chart then after that no log msg appears:
Script console debug logs(INFO/LOG level) allowed: false
then I will get the following errors which has no effect on the chart or the sapui5 app:
Any idea about how to get the console log ? is there a way to change the debug to true ?
Hi Momen,
The log level console messages are disabled by i5SPCChart js library. You could however turn on the log messages by toggling the flag which controls this by using the below line of code:
com.sap.xmii.common.util.DEBUG_MODE_ON = true;
This line should be called before the i5SPCChart constructor call.
Alternatively, you could also use console.debug if it suffices.
Thanks and Best Regards,
Ria
User | Count |
---|---|
9 | |
7 | |
3 | |
2 | |
2 | |
2 | |
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.