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

tinagoepp

Members
  • Posts

    8
  • Joined

  • Last visited

tinagoepp's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. @hozawa I#ve hasked if it is possible to include an java Script file in an ireport?
  2. Hello togehter, I want to use instead of my Java Libary, the same functionality coded in Java Script. Is it possible to include an JavaScript in to the report like the Java jar.-File? When it is possible could i do this wit this code: package smt.berechnungen; import java.math.BigDecimal;import java.util.ArrayList;import net.sf.jasperreports.engine.JRAbstractScriptlet;import net.sf.jasperreports.engine.JRScriptletException;import net.sf.jasperreports.engine.fill.JRFillField;/** * * @author 1234 */public class Berechnungen extends JRAbstractScriptlet { ArrayList positiveStatustypen; BigDecimal statTypB; int statTyp; BigDecimal upper; BigDecimal lower; @Override public void beforeReportInit() throws JRScriptletException { positiveStatustypen = new ArrayList(); fillListe(); statTypB = (BigDecimal) getFieldValue("STATUSTYPE_NUMMER"); statTyp = statTypB.intValue(); upper = (BigDecimal) getFieldValue("ZIELE_REAKTION_UPPER"); lower = (BigDecimal) getFieldValue("ZIELE_REAKTION_LOWER"); } [...] private void fillListe() { positiveStatustypen.add(1); positiveStatustypen.add(2); } //für die Grenzwertvariable "ZIELE_REAKTION_LOWER" public boolean VergleichROT(BigDecimal b) throws JRScriptletException { if (positiveStatustypen.contains(statTyp)) { if (b.doubleValue() > lower.doubleValue() || lower == b) {return false;} else {return true;} } else { if (b.doubleValue() < lower.doubleValue() || b == lower) {return false;} else {return true;} } } public boolean VergleichGRUEN(BigDecimal b) throws JRScriptletException { if (positiveStatustypen.contains(statTyp)) { if (b.doubleValue() < lower.doubleValue()) {return false;} else {return true;} } else { if (b.doubleValue() > lower.doubleValue()) {return false;} else {return true;} } } public boolean VergleichROT_upper(BigDecimal b) throws JRScriptletException { if (positiveStatustypen.contains(statTyp)) { if (b.doubleValue() > lower.doubleValue() || lower == b) {return false;} else {return true;} } else { if (b.doubleValue() < lower.doubleValue() || b == lower) {return false;} else {return true;} } } public boolean VergleichGRUEN_upper(BigDecimal b) throws JRScriptletException { if (positiveStatustypen.contains(statTyp)) { if (b.doubleValue() < lower.doubleValue()) {return false;} else {return true;} } else { if (b.doubleValue() > lower.doubleValue()) {return false;} else {return true;} } }}Thank you for your answer.
  3. Thank you but the problem is that I want to check more than one condition, like in java. ... if (value >= lowerPoint) : colour = green else if (value == null) : colour = grey else colour = red ... Is it in any way possible to do this, with an java code, because the styles aren't working in that way. And please explain how to do this :)! Thank you verry much!
  4. Hello together, i want to colorize some fields in a report in addiction to the value the have. I want to colorize the whole field (first example) or colorize the value of the field (2nd example) Here the examples: Is this possible and how can I do this? Thank you for your help.
  5. Excatly hozawa, this is almost the chart I would like to create. The bars should be vertical and the line horizontal. Ist this also possible?
  6. Hello together, I've got a question I'd like to create a report where I could type in the ID at first (Parameter) and then the report appears. All values of the report depend on the ID. Is this possible and how could I implement this? Thank you for your help!
  7. Excatly hozawa, this is almost the chart I would like to create. The bars should be vertical an the line horizontal. Ist this also possible?
  8. Hello together, my problem is I want to display data in a multiple axis chart, due to the fact I only want one, not two or three, y-axis. The chart must display in a barchart some values and in a line chart only a defined line with always the same value. Both hast the same x axis values and should have the same y-axis. Is this possible? Thank you for your help :) !
×
×
  • Create New...