Hello,
Not so long ago I've started using DS SDK. After some time playing around with sample code and trying to put my own components together some questions arrived that I cannot solve myself. Could you please have a look and share your point on some of them? Many thanks!
1. Is there any way to debug component code in Eclipse while executing it on Design Studio? Any kind of output console?
2. What is the jQuery version used in Design Studio? In \Design Studio\plugins\ I can find these:
com.sap.ui5.core_1.18.8.jar
\META-INF\resources\sap\ui\thirdparty\jquery\
- jquery-1.8.1.js
- jquery-1.7.1.js
- jquery-1.10.1.js
\META-INF\resources
- jquery-1.7.1.js
com.sap.ip.bi.zen.dt.userguide.doc_13.0.0.jar
\html\js\
- jquery-1.10.1.min.js
com.sap.ip.bi.zen.dt.chartguide_13.0.3.201405141058.jar
\help_docs\resource\js\ui5\sap\ui\thirdparty\jquery\
- jquery-1.8.1.js
- jquery-1.7.1.js
- jquery-1.10.1.js
I suspect that it is using 1.7.1 version for some reason because it is crashing when I use some newer version of ChartJS (>= 13.1.5) in my components. And it is both for 1.2 and 1.3 ver of DS. Only difference is that in 1.3 you get additional file jquery-1.10.1.js but I guess it is not used...
Now the question is how to change it? And how to get feedback from the system what is the version on jQuery in use (some kind of alert)?
3. Custom SAPUI5 components. I'm a little bit lost here. SAPUI5 is a part of Design Studio 1.2/1.3 right? So why I cannot use some of the js that are part of SAPUI5? This is what comes up when I try to use
sap.viz.ui5.Donut.extend("my.sample.chart.Donut2", ....
i get:
!MESSAGE Error message: Unable to get property 'ui5' of undefined or null reference Line Number: 1 Pos: 1 Function: sap.viz.ui5.Donut.extend(
4. When I put :
handlerType="sapui5"
in my component definition in component.xml - Eclipse says :
Attribute : handlerType
Specifies the technology that implements this extension component. Currently the value "div" is supported only.
Data Type : HandlerTypes
Default Value : div
Enumerated Values :
- div
- sapui5
So does it mean that sapui5 is not supported or is it my Eclipse that don't have some plugin/lib installed?
5. Apart from my sapui5 questions above it would be great to see end to end example of SDK extensions using SAPUI5. I mean really basic, for example: "..lets have a Donut chart implemented, here is how it goes: - 1. start your Eclipse, 2. In your component.xml you have to do this and this 3. in component.js you have to do this and this....4. now lets have data attached to this thing... 5. Fire your chart in Design Studio and see how great it is.."
That would be a timesaver! Do you know of any such tutorial online?
5. It is more about Design Studio. Is it possible to embed my DS report in some existing web page? I want to have 5 reports developed in DS to be part of my web application so users can see those reports displaying when they choose some menu item or something.. If this is possible how it is with passing credentials/session id or cross domain requests issues? Do you have some experience with that?
best,
Pawel