NucletUtils Nuclet – nuclet: nucletutils. |
Language: Deutsch · English
Data sheet and documentation entry point for the NucletUtils Nuclet (utility functions and helpers reusable across Nuclets).
On this page |
This page was machine-translated from German as a first draft and is currently under review. The authoritative source remains the German original (see the language switch above). |
| Version | Date | Notes | Compatibility |
|---|---|---|---|
| 1.0.0 | 12.03.2021 | First published version | ab Nuclos 4.46.1 |
This Nuclet is a collection of many frequently needed Java methods, data sources and resources that support Nuclet development and standardise Nuclet behaviour.
All methods presented here are static.
Some methods use constants, such as the format pattern 'HH:mm:ss' for formatting the time. Most of these constants are Nuclet parameters and can be adjusted accordingly.
After adjusting the Nuclet parameters, the job Initialisiere NucletUtils must be run once, otherwise the changes may only take effect after the next server start.
| Class | Description |
|---|---|
NucletBOUtils | This class contains helpful methods around business objects, e.g.
|
NucletDateUtils | This class contains helpful date functions, e.g.
|
NucletDialogUtils | This class contains helpful dialog functions, e.g.
|
NucletExcelUtils | This class contains helpful methods for working with Excel lists, e.g.
|
NucletFileUtils | This class contains helpful methods for file handling, e.g.
|
NucletFormatUtils | This class contains helpful methods for formatting tasks, e.g.
|
NucletHtmlUtils | This class contains helpful methods for HTML formatting, e.g.
|
NucletImageUtils | This class contains helpful methods for images, e.g.
|
NucletLoggingUtils | This class contains helpful methods for logging, e.g.
|
NucletMigrationUtils | This class contains helpful methods for migrations, e.g.
|
NucletNumberUtils | This class contains helpful mathematical methods. Many of them do not return an error if a BigDecimal argument == null, but instead return null.
|
NucletParameterUtils | This class contains helpful methods for Nuclet parameters, e.g.
|
NucletStringUtils | This class contains helpful methods for strings, e.g.
|
NucletUserUtils | This class contains helpful methods for users and user groups, e.g.
|
NucletUtilsInitialisieren | Job rule that activates updated Nuclet parameters for the rules. Otherwise the changed parameters may only take effect after the next server restart. |
| Data source | Description |
|---|---|
EntityRules | Returns all insert, insertFinal, update and updateFinal rules that are executed for a specified BO |
Nuclet parameters | Returns the name of a Nuclet parameter for its uid |
Resource | Returns the resource (content) for the specified name |
StatesForModel | Returns all states that belong to the specified state model (name) |
ModelForState | Returns the name of the state model to which a specified state (uid) belongs |
Transitions | Returns all incoming and outgoing state transitions for a particular state (model, numeral) |
Usage in Datasources | Returns all usages of a given database field in Nuclos data sources and database objects. This is very helpful when you want to rename or delete such a field |
Find Table for id | Finds all tables in which the specified intid is used |
Find Table for struid | Finds all tables in which the specified struid is used |
| Data source | Description |
|---|---|
Usage in Datasources | Returns all usages of a given database field in Nuclos data sources and database objects. This is very helpful when you want to rename or delete such a field |
Find Table for id | Finds all tables in which the specified intid is used |
Find Table for struid | Finds all tables in which the specified struid is used |
| Data source | Description |
|---|---|
InitialisiereNucletUtils | This job should be run when something in the Nuclet parameters of NucletUtils has been changed. |
| Data source | Description |
|---|---|
Migration log | Here Nuclos can remember whether migrations that should not be run multiple times have already taken place (see also the Utils class NucletMigrationUtils) |
Parameter | Global parameters can be stored here, similar to Nuclet parameters. The advantage here is that they can be grouped into lists, which is clearer when you have very many parameters. |
System/Tabelle/* | These are virtual BOs that make system tables readable. Helps in searching for system objects and in determining properties in rule code. |
| Database object | Description |
|---|---|
LB20_CA_AMPEL | Returns a correspondingly coloured traffic light for the arguments 'G'(reen), 'Y'(ellow) and 'R'(ed), and a grey traffic light for all other values |
LB20_FN_GET_PARAMETER | Returns a parameter value for a parameter list and a parameter name, see also BO Parameter |
| Data source | Description | Note |
|---|---|---|
Traffic lights | Here there are traffic lights in various colours, which are used e.g. by the database function LB20_CA_AMPEL are used | |
Emojis | Some standard emojis | |
Checkbox | Checkbox symbols, e.g. for display in a PDF | |
CSS template | CSS template with a collection of frequently used CSS code blocks for use in the system parameter "WEBCLIENT CSS" or as a client extension in the Nuclet. Copy the required CSS passages and configure them with your own colours or parameters. | |
Layout for transaction data - | Layout for use in transaction data. Contents:
|
|
Layout for master data - | Layout for use in master data. Contents:
|
|
Layout for master data - | Layout for use in master data. Contents:
|
|