FAQ on Development Know How

use savedata to transfer the content of modules to the SYSSTREAM and load the content with loaddata from SYSSTREAM in the init of the target transaction.

Include the module SVSMOD into the transaction and integrate a call to SVSMOD.SvsSsnSave passing a list of fieldnames to be saved into an exit routine (see LnkLeaveAction). To restored upon restart implement in the init a call to SVSMOD.SvsSsnLoad.

Sample taken from TRNREL

sub SaveSettings
#! Procedure to save the current settings per session
$Fld = "\\TRNCORCO\\OWNREF" + CR + "\\TRNCORCO\\RELFLG" + CR + "\\TRNCORCO\\INIDATFRO" + CR 
$Fld = $Fld + "\\TRNCORCO\\INIDATTIL" + CR + "\\TRNCORCO\\INIFRM" + CR + "\\TRNCORCO\\INIUSR" + CR 
$Fld = $Fld + TRNCORCO\USFMOD.GetFltSvsFlds
SVSMOD.SvsSsnSave( $Fld, "M" )
DBCommit

A rule having a name starting with LnkLeaveAction will automatically be called upon leaving the transaction. This rule will be called with two arguments, see internal documentation in SYSMOD, holding the type of exit and optionally the name of the target transaction.

A sample in LOGMOD is LnkLeaveActionLOGMOD where LOGMOD registers its close functions.

When a user tries to update an entry, which is waiting for release of another entered update further updates are blocked with the above message. For technical details on the 4-eye principal of masterfile maintenance check 4-Eye Control - Technical Aspects and 4 Eye Control - Implementation.

There are some Features in the Win32-Client which are not supported by the HTML5 client. Fore details see the HTML5 client documentation and there Not supported Features.

Use the copy to PC function to access the output and use a texteditor to determine whether the CSV was generated correctly. When using CSV the settings panel in the used report generator holds some additional configuration options which are important. Depending on the used Excel either ; or , should be used as separator and the setting of the Checkbox for output only data without sum's should be taken into consideration as sometimes Excel is intended to provide the calculations. Another important fact is UTF-8 as beeing used as the standard character set of DOKA-NG. It might be necessary to set the variable CSVENC to a encoding required by Excel (or the application reading the CSV). We know about Excel versions where the encoding “UTF-8+BOM” is needed as the file needs to be written with a BOM and UTF-8 as encoding.

There are multiple possibilities. The posted routine can

  • use an inout or out argument to return a value to the caller
  • write something into cache
  • change a field which is available in the scope of the routine

DNG myModelbank uses closed intervals, which means the last day of a period is included.

Example:

2023-01-20 until 2023-01-25 will calculate interest for 6 days

If the last date has to be excluded, the following change is to be made:

In FECISM.init change the value for IRTCAL\IRTCALENDDATOFF to 0