Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
basic
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
xrm
basic
Commits
29c647c1
Commit
29c647c1
authored
6 years ago
by
Johannes Hörmann
Browse files
Options
Downloads
Patches
Plain Diff
Util lib other static syntax
parent
1a201cd7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
process/Util_lib/process.js
+20
-21
20 additions, 21 deletions
process/Util_lib/process.js
with
20 additions
and
21 deletions
process/Util_lib/process.js
+
20
−
21
View file @
29c647c1
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment