Klasse Trigger

java.lang.Object
com.inet.report.Trigger
Alle implementierten Schnittstellen:
Serializable

public class Trigger extends Object implements Serializable
A trigger is a runtime value that will be evaluated at runtime and can be accessed after a report has rendered. The state of the trigger will not be saved with the rpt file. Sample usage:
     Fields fields = eng.getFields();
     FormulaField formula = fields.addFormulaField( "trigger", "23 >= 24", FormulaField.FORMULA_PROPERTY );
     Trigger trigger = eng.getTrigger();
     trigger.setFormula( formula );
     eng.execute();                      //render the report
     eng.getPageCount();                 //wait until finish
     Boolean value = trigger.getValue(); //request the trigger value
Seit:
11.1
Siehe auch:
  • Methodendetails

    • setFormula

      public void setFormula(FormulaField formula)
      Set the formula of the trigger. This formula will be evaluated from the runtime once the report is finished rendering. Note that this is run-time only: This value will not be saved with the report template.
      Parameter:
      formula - a new formula
      Seit:
      11.1
      Siehe auch:
    • getFormula

      public FormulaField getFormula()
      Get the formula of this trigger. Will be null if not set.
      Gibt zurück:
      the formula
      Seit:
      11.1
      Siehe auch:
    • getValue

      public Boolean getValue()
      The value of the trigger. The value will be null if the report rendering was not finished.
      Gibt zurück:
      the value or null
      Seit:
      11.1
    • getResult

      public Object getResult()
      The result of the trigger formula. The value will be null if the report rendering was not finished.
      Gibt zurück:
      the value or null
      Seit:
      14.1