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

tadaskrisciunas

Members
  • Posts

    4
  • Joined

  • Last visited

tadaskrisciunas's Achievements

  1. Hi, I have a rather tricky question. There is a report which will later be exported into PDF and CSV formats. Of course, I do not need for any titles/page headers/etc. to appear on the CSV, and I have disabled them by adding the following lines to the source of my report: <property name="net.sf.jasperreports.export.csv.exclude.origin.band.1" value="title"/><property name="net.sf.jasperreports.export.csv.exclude.origin.band.2" value="columnFooter"/><property name="net.sf.jasperreports.export.csv.exclude.origin.band.3" value="pageHeader"/><property name="net.sf.jasperreports.export.csv.exclude.origin.band.4" value="pageFooter"/><property name="net.sf.jasperreports.export.csv.exclude.origin.band.5" value="lastPageFooter"/><property name="net.sf.jasperreports.export.csv.exclude.origin.band.6" value="columnHeader"/>[/code]I need, however, that the title band would always appear together with a certain group header band. If the text in the group header wasn't necessary for the CSV file, or if I didn't need the CSV file, the solution would be obvious: to attach the contents of the title band to the group header band, and/or disable the band from being exported into CSV. But this doesn't work, because I actually need the group header to be visible in the CSV export. A few hours of trying to figure out a possible solution didn't take me anywhere. Is there any clever hack I don't know of?
  2. I have solved my own issue. If you have the same issue, go to the XML view and search for 'markup'. You will find something like this: <textElement textAlignment="Center" verticalAlignment="Middle" markup="">[/code]Change it to this: <textElement textAlignment="Center" verticalAlignment="Middle" markup="none">[/code]
  3. Hi, I am designing a report using Jaspersoft Studio, and it all works fine until I use "Arange in Container" > "Horizontal Layout" from the context menu in a container. After I do this, report generation (in all formats I have checked: PDF, Java, HTML) starts to throw an error: no markup processor factory specified for '' markup[/code]with details as follows net.sf.jasperreports.engine.JRRuntimeException: No markup processor factory specifyed for '' markup. at net.sf.jasperreports.engine.fill.JRFillTextElement.getMarkupProcessor(JRFillTextElement.java:1034) at net.sf.jasperreports.engine.fill.JRFillTextElement.processMarkupText(JRFillTextElement.java:1018) at net.sf.jasperreports.engine.fill.JRFillStaticText.<init>(JRFillStaticText.java:52) at net.sf.jasperreports.engine.fill.JRFillObjectFactory.visitStaticText(JRFillObjectFactory.java:645) at net.sf.jasperreports.engine.base.JRBaseStaticText.visit(JRBaseStaticText.java:95) at net.sf.jasperreports.engine.JRAbstractObjectFactory.getVisitResult(JRAbstractObjectFactory.java:89) at net.sf.jasperreports.engine.fill.JRFillElementGroup.<init>(JRFillElementGroup.java:83) at net.sf.jasperreports.engine.fill.JRFillElementContainer.<init>(JRFillElementContainer.java:90) at net.sf.jasperreports.engine.fill.JRFillBand.<init>(JRFillBand.java:92) at net.sf.jasperreports.engine.fill.JRFillObjectFactory.getBand(JRFillObjectFactory.java:505) at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:467) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:89) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:104) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:62) at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:179) at net.sf.jasperreports.engine.fill.BaseFillHandle.<init>(BaseFillHandle.java:75) at net.sf.jasperreports.engine.fill.AsynchronousFillHandle.<init>(AsynchronousFillHandle.java:98) at net.sf.jasperreports.engine.fill.AsynchronousFillHandle.<init>(AsynchronousFillHandle.java:87) at net.sf.jasperreports.engine.fill.AsynchronousFillHandle.createHandle(AsynchronousFillHandle.java:189) at com.jaspersoft.studio.editor.preview.view.control.ReportControler$4.run(ReportControler.java:330) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)[/code]I need the report to work quite urgently, so please, help me! I am working on Ubuntu 14.04 with the latest version of Jaspersoft Studio. Thanks!
  4. Hi, I am having a hard time figuring out a pressing issue related to setting input controls via JasperReports Server Web Services. I want to use the web service accessible by http://<host>:<port>/jasperserver[-pro]/rest_v2/reports/path/to/report/inputControls/<ic1>;<ic2>;.../values/ , and I wrote some code closely following the specification of the service (from JasperReports Server Web Services Guide, Release 5.6, pg. 86). I use Java with Jersey client, and have the following code: public static Client login( String username, String password ) { Client client = ClientBuilder.newClient(); //Now setup authentication HttpAuthenticationFeature feature = HttpAuthenticationFeature.basic(username, password); client.register(feature); return client; } public static String setInputControls( Client client, String report, String[]... args ) throws Exception { //Target JasperReports Server, our report String api_link = "http://localhost:8091/jasperserver-pro/rest_v2/reports/" + report + "/inputControls/"; for (String[] arg : args) { api_link = api_link + arg[0] + ";"; } api_link = api_link.substring(0, api_link.length() - 1) + "/values/"; WebTarget target = client.target(api_link); String json_param = "{n"; for (String[] arg : args) { json_param = json_param + """ + arg[0] + "": ["; for (int i = 1; i < arg.length; i++) { json_param = json_param + """ + arg[i] + "", "; } json_param = json_param.substring(0, json_param.length() - 2) + "],n"; } json_param = json_param + "}"; Response response = target.request().post(Entity.entity(json_param, MediaType.APPLICATION_JSON)); return "HTTP STATUS: " + response.getStatus() + "<br><br>" + response.readEntity(String.class); } [/code]to run the program as follows Client client = login("jasperadmin", "jasperadmin");return setInputControls( client, report, new String[] {"week_1", "9", "15", "27", "11"}, new String[] {"day_name_1", "friday "} )[/code]The code seems to do exactly what it is supposed to do, but when I download the report I tried to change the input control values of, I always get the same old version with the default input control values. Even though my query always returns HTTP status 200 and a renewed JSON of input control values, exactly as it should on success. What did I do wrong? I have spent almost a day trying to figure it out, but the code seems to do what it should...
×
×
  • Create New...