if it helps i am using jsreport online and in header is "jreport prod49 production"
Posts made by Arcus16
-
RE: Update data file via API
-
RE: Update data file via API
Thank you. I successfully create data file via API. Now i can not save reseurces on template. I select some data file, click save, then close template window and reopen it and all data files are unselected. Any advice ?
-
Update data file via API
Hello,
is there a way to update content of data file via API?I tried to create it with following post
POST /odata/data HTTP/1.1 Host: XXXX.jsreportonline.net Content-Type: application/json cache-control: no-cache Postman-Token: XXX { "name":"Test", "content":{ "title": "hello" } }
It created data file with specified name, but with no content. In response i did not get any error message. I also tried patch with edit link i get from post, but with no success.
PATCH /odata/data('XXX') HTTP/1.1 Host: XXX.jsreportonline.net Content-Type: application/json Authorization:XXX cache-control: no-cache Postman-Token: XXX { "content": { "test": "test" } }
-
RE: Google charts
https://playground.jsreport.net/w/anon/hhVAb~Jm
if you leave the graph2 function commented, it will work, but i need somehow pass data.
-
Google charts
Hello,
Is there way to use google charts? I tried this but its not working, i can't pass data to functionScript
google.charts.load('current', {'packages':['corechart']}); function graph(element, data){ google.charts.setOnLoadCallback( function() { drawPieChart(element, data); }); } function drawPieChart(element,rdata) { console.log('Draw chart') var data = google.visualization.arrayToDataTable(rdata); var options = { pieHole: 0.5, pieSliceTextStyle: { color: 'black', }, legend: 'none' }; var chart = new google.visualization.PieChart(document.getElementById(element)); chart.draw(data, options); }
Template
<body> <script> graph('returnRate',{{returnRateGraphData}} ); </script> <div id="returnRate" style="width: 900px; height: 500px;"></div> </body>