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
Admin message
Gitlab Maintenance 28.03.2025 | 20:00 - 23:00 MEZ
Show more breadcrumbs
xrm
basic
Commits
6a6d6922
Commit
6a6d6922
authored
4 years ago
by
S.Listl
Browse files
Options
Downloads
Patches
Plain Diff
WorkflowTask conditional forms disabled
parent
1ba8b776
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
entity/WorkflowTask_entity/WorkflowTask_entity.aod
+0
-1
0 additions, 1 deletion
entity/WorkflowTask_entity/WorkflowTask_entity.aod
entity/WorkflowTask_entity/entityfields/formresult/onValueChange.js
+0
-25
0 additions, 25 deletions
...kflowTask_entity/entityfields/formresult/onValueChange.js
with
0 additions
and
26 deletions
entity/WorkflowTask_entity/WorkflowTask_entity.aod
+
0
−
1
View file @
6a6d6922
...
...
@@ -31,7 +31,6 @@
</entityField>
<entityField>
<name>
FORMRESULT
</name>
<onValueChange>
%aditoprj%/entity/WorkflowTask_entity/entityfields/formresult/onValueChange.js
</onValueChange>
</entityField>
<entityField>
<name>
NAME
</name>
...
...
This diff is collapsed.
Click to expand it.
entity/WorkflowTask_entity/entityfields/formresult/onValueChange.js
deleted
100644 → 0
+
0
−
25
View file @
1ba8b776
import
(
"
system.result
"
);
import
(
"
system.vars
"
);
import
(
"
system.workflow
"
);
import
(
"
system.neon
"
);
var
taskId
=
vars
.
get
(
"
$field.UID
"
);
var
newResult
=
vars
.
get
(
"
$local.value
"
);
var
oldResult
=
vars
.
get
(
"
$field.FORMRESULT
"
);
if
(
newResult
&&
newResult
!==
oldResult
)
{
/*
* fieldListeners = all fields that are used inside a visibility expression
* -> if one of these fields is changed, set the new FORMDEFINITION
*/
var
fieldListeners
=
JSON
.
parse
(
workflow
.
getFormFieldListeners
(
taskId
));
newResult
=
newResult
?
JSON
.
parse
(
newResult
)
:
{};
oldResult
=
oldResult
?
JSON
.
parse
(
oldResult
)
:
{};
var
isRefreshRequired
=
fieldListeners
.
some
(
function
(
fieldId
)
{
return
newResult
[
fieldId
]
!==
oldResult
[
fieldId
];
});
if
(
isRefreshRequired
)
neon
.
setFieldValue
(
"
$field.FORMDEFINITION
"
,
workflow
.
getFormProperties
(
taskId
,
newResult
));
}
\ 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