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
e230c028
Commit
e230c028
authored
6 years ago
by
Johannes Goderbauer
Browse files
Options
Downloads
Patches
Plain Diff
contact_entity: added workaround for lookup-onvalidation
parent
a6edf7e2
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
entity/Contact_entity/entityfields/organisation_id/onValidation.js
+6
-0
6 additions, 0 deletions
...ntact_entity/entityfields/organisation_id/onValidation.js
with
6 additions
and
0 deletions
entity/Contact_entity/entityfields/organisation_id/onValidation.js
+
6
−
0
View file @
e230c028
...
...
@@ -8,6 +8,12 @@ import("Sql_lib");
var
personId
=
vars
.
get
(
"
$field.PERSON_ID
"
);
var
organisationId
=
ProcessHandlingUtils
.
getOnValidationValue
(
"
$field.ORGANISATION_ID
"
);
//workaround for organisationId: $local.value will return the name of the organisation which is not what we want
//but the field already contains the changed value; so let's load the field instead of the $local.value-variable
//this is a bug within the ADITO-kernel
//TODO: change the workaround behaviour when $local.value is retrieved correct
organisationId
=
vars
.
get
(
"
$field.ORGANISATION_ID
"
)
if
(
personId
&&
organisationId
)
{
var
alreadyExistantContactId
=
db
.
cell
(
SqlCondition
.
begin
()
...
...
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