Versionen im Vergleich

Schlüssel

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

Nuclos report and form data source: parameters, intid, wildcards, internal parameter types (SQL/lists), SQL editor, preview.

globe with meridians Language: Deutsch · English

open book Report and form

Data sources as the basis of reports and forms – parameters, intid, wildcards and the SQL editor.

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

Panel
bgColor#F4F5F7

On this page

Inhalt
maxLevel2
minLevel2

Data source = basis of every report/form

Data sources are the basis for reports and forms. A data source defines which business objects are considered; conditions and joins restrict the data or add attributes. Parameters make a saved data source reusable.

Menu: Configuration → Data sources → Report and form

Structure of the editor

The screen has five areas:

AreaContent
Headername and description of the data source.
Table selectionsystem objects (master/transaction data), dynamic objects (BO tables) and saved queries (as sub-queries).
Table viewbusiness objects dragged in via drag&drop.
Parameter definitionname, data type and prompt per parameter. Forms require at least intid.
Column viewvisible columns (alias = later field name), sorting and conditions. After saving: SQL and preview.

Parameter definition of the data source.

The special intid parameter

Data sources for forms must define the intid parameter for the intid column of the BO to print. Nuclos fills it automatically when printing – without a dialog. A value list provider provides a picklist; the text value via '$name', the ID via '$nameId'.

intid parameter in the form.

Text parameters & wildcards

ConditionEffect
='$param'no wildcards; „=“ comparison; allows searching for % and _.
WIE '$param'wildcards allowed; LIKE condition.
='$param%'always LIKE with appended wildcard; empty value = all records.

Internal parameter types

Text list, integer list, SQL are not offered to the user but used internally in rules. SQL parameters require a VLP as a whitelist of allowed expressions.

Codeblock
languagesql
SELECT 
	T1.INTID "<primaryKey>",
	T1.INTARTICLENUMBER "articleNumber",
	T1.STRNAME "name"
FROM 
	V594_ARTICLE T1
WHERE
	$pSql
	  OR
	T1.INTARTICLENUMBER in $pListOfInteger
	  OR
	T1.STRNAME in $pListOfText
Codeblock
languagejava
List<Number> listOfInteger = new ArrayList<>();
listOfInteger.add(4711L); // Test with Long
List<String> listOfStrings = new ArrayList<>();
listOfStrings.add("4711");

Map<String, Object> params = new HashMap<>();
params.put("pListOfInteger", listOfInteger);
params.put("pListOfText", listOfStrings);
params.put("pSql", "T1.INTARTICLENUMBER > 4000");
 
DatasourceProvider.run(TestDS.class, params);

Conditions & SQL

Column conditions support comparison operators (= > < >= <= != WIE), ranges (between 'a' and 'b'), brackets and column comparisons. Parameters always start with $. If graphical modelling is not enough, activate the SQL tab and edit the SELECT statement directly; then test via check syntax and preview (incl. export to Excel/PDF/CSV).

Editing the SQL statement.

Result preview.

Related pages

open book Reports


Create reports.

Open →

memo Forms


Create forms.

Open →

file cabinet Data sources


Data sources in general.

Open →