访问jsreport模板中的Restful API数据

时间:2021-05-09 22:56:50

I am using loopback API to get data in JSReport I want to draw DC charts using templates and I need Recipe html of jsreport, so that I can embed it in my dashboard graphs. API for a jsreport can be different every time. i.e. at runtime we don't know the properties of over API, so how can I bind this API data with DC charts in jsreport template with 'html'

我正在使用loopback API来获取JSReport中的数据我想使用模板绘制DC图表,我需要jsreport的Recipe html,这样我就可以将它嵌入我的仪表板图形中。 jsreport的API每次都可以不同。即在运行时我们不知道over API的属性,那么如何使用'html'将此API数据与jsreport模板中的DC图表绑定

2 个解决方案

#1


3  

I was facing almost same problem and I was also using loopback. The following link gives you solution for this problem link

我遇到了几乎相同的问题,我也在使用环回。以下链接为您提供此问题链接的解决方案

Also you can ask your problems on Active google group too. Google group for jsreport

您也可以在Active google群组中询问您的问题。谷歌组为jsreport

#2


0  

http://jsreport.net/blog/ Hope this will solve your problem

http://jsreport.net/blog/希望这能解决您的问题

#1


3  

I was facing almost same problem and I was also using loopback. The following link gives you solution for this problem link

我遇到了几乎相同的问题,我也在使用环回。以下链接为您提供此问题链接的解决方案

Also you can ask your problems on Active google group too. Google group for jsreport

您也可以在Active google群组中询问您的问题。谷歌组为jsreport

#2


0  

http://jsreport.net/blog/ Hope this will solve your problem

http://jsreport.net/blog/希望这能解决您的问题