Jump to content
We've recently updated our Privacy Statement, available here ×

sarino

Members
  • Posts

    4
  • Joined

  • Last visited

sarino's Achievements

  1. If it is an option, try appending a header with basic authentication. In this header you will only have to send the user and password in base64.
  2. I couldn't find a way to do it using a table component, so I ended up doing a bit of a hack and styled a couple of textfields together with borders.
  3. Is it necessary to use a Bean? From what I understand, I should be able to use a JRQuery object to get the data, correct?
  4. I have a JSON datasource I want to feed to a table. Following the steps in http://community.jaspersoft.com/wiki/why-first-record-missing-my-subreport I have created a parameter to store the datasource and set the table with said parameter. To set the parameter, I have written a small scriptlet. public class Scriptlet extends JRDefaultScriptlet { private JRDataSource dataSourceOriginal; @Override public void beforeReportInit() { dataSourceOriginal = (JRDataSource) this.parametersMap.get("REPORT_DATA_SOURCE").getValue(); setData(this.parametersMap, this.fieldsMap, this.variablesMap, this.groups); } @Override public void setData(Map parameters, Map fields, Map variables, JRFillGroup[] groups) { parameters.put("DATASOURCE", dataSourceOriginal); super.setData(parameters, fields, variables, groups); }}[/code]While I can use the Data Source stored in $P{DATASOURCE} but it is missing the first record as well. What am I doing wrong?
×
×
  • Create New...