Skip to content
Snippets Groups Projects
Commit 29c647c1 authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

Util lib other static syntax

parent 1a201cd7
No related branches found
No related tags found
No related merge requests found
......@@ -1459,25 +1459,24 @@ function CopyModuleUtils()
}
/**
* provides somehow static methods for special handling in JDito-Processes
* do not create an instance of this
* @class
*/
function ProcessHandlingUtil()
{
}
/**
* In onValidation-Process a local variable called "$local.value" is made available from kernel.
* It contains the entered value - the field contains the value only after successfull validation (vars.get("$field.Fieldname")).
* The onValidation-Process is running again before saving the entity, at this point there's "$local.value" varialbe no longer available,
* but the entered value now is the present one because the field has already been validated before.
* Otherwise a "variable not found" error would occur.
*
* @param {String} pFieldValue req value of the field onValidation-Process is executed ( e.g. vars.get("$field.Fieldname") )
* @return {String} Field value for onValidation-Process
*/
ProcessHandlingUtil.getOnValidationValue = function(pFieldValue)
{
return vars.exists("$local.value") ? vars.get("$local.value") : pFieldValue;
* provides somehow static methods for special handling in JDito-Processes
* do not create an instance of this
* @class
*/
ProcessHandlingUtil = {
/**
* In onValidation-Process a local variable called "$local.value" is made available from kernel.
* It contains the entered value - the field contains the value only after successfull validation (vars.get("$field.Fieldname")).
* The onValidation-Process is running again before saving the entity, at this point there's "$local.value" varialbe no longer available,
* but the entered value now is the present one because the field has already been validated before.
* Otherwise a "variable not found" error would occur.
*
* @param {String} pFieldValue req value of the field onValidation-Process is executed ( e.g. vars.get("$field.Fieldname") )
* @return {String} Field value for onValidation-Process
*/
getOnValidationValue: function(pFieldValue)
{
return vars.exists("$local.value") ? vars.get("$local.value") : pFieldValue;
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment