Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.
Auszug
hiddentrue

Nuclos PrintoutProvider: run, OutputFormat, boId, NuclosFile, form, PDF, insertAttachment.

globe with meridians Language: Deutsch · English

open book PrintoutProvider

Run forms from rules – run(format, boId) returns a NuclosFile.

Status
colourGrey
titleReferenz
Status
colourBlue
titleDeveloper
Status
colourGreen
titleUpdated: Jul 2026
Status
colourGrey
titleapplies to Nuclos 4.2026.x

Panel
bgColor#F4F5F7

On this page

Inhalt
maxLevel2
minLevel2

What is the PrintoutProvider for?

The PrintoutProvider executes a form. Unlike a report, a form is filled with data – so besides the output format the record id is passed.

run(format, boId[, params])

Runs the form and returns a NuclosFile (e.g. as an attachment or for e-mail). Parameters can optionally be passed as a Map.

Codeblock
languagejava
public static NuclosFile run(OutputFormat format, Long boId) throws BusinessException;
public static NuclosFile run(OutputFormat format, Long boId, Map<String, Object> params) throws BusinessException;
Codeblock
languagejava
package org.nuclet.businessentity; 

import org.nuclet.printout.FormularAngebotFuerKundenPO;
import org.nuclos.api.common.NuclosFile;
import org.nuclos.api.provider.PrintoutProvider;
import org.nuclos.api.rule.UpdateRule; 
import org.nuclos.api.context.UpdateContext; 
import org.nuclos.api.annotation.Rule; 
import org.nuclos.api.exception.BusinessException; 

public class AngebotFormularRegel implements UpdateRule {

    public void update(UpdateContext context) throws BusinessException { 
        
		Auftrag a = context.getBusinessObject(Auftrag.class);
      	
		NuclosFile result = PrintoutProvider.run(FormularAngebotFuerKundenPO.Deutsch_PDF, a.getKunde);
        a.insertAttachment(result, "Kommentar: Kundenspezifisches Hinweis-Formular");
    }
}
Info
titleReport vs. form

For reports (without a record reference) see ReportProvider.

Related pages

open book ReportProvider


Run reports.

Open →

gear QueryProvider


Daten laden.

Open →

gear BusinessObjectProvider


BOs schreiben.

Open →