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
2fd08cce
Commit
2fd08cce
authored
4 years ago
by
Sebastian Listl
Browse files
Options
Downloads
Patches
Plain Diff
Attribute_lib comments improved
parent
563c02b6
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/Attribute_lib/process.js
+15
-5
15 additions, 5 deletions
process/Attribute_lib/process.js
with
15 additions
and
5 deletions
process/Attribute_lib/process.js
+
15
−
5
View file @
2fd08cce
...
...
@@ -1227,8 +1227,8 @@ AttributeTypeUtil.getDatabaseField = function (pAttributeType)
* The attribute type (use the values <br>
* of the AttributeTypes object, e. g.<br>
* AttributeTypes.TEXT)<br>
* @return {String[]
}
<p>
* The possible children types.<br>
* @return {String[]
|null}
<p>
* The possible children types
, can be null
.<br>
*/
AttributeTypeUtil
.
getPossibleChildren
=
function
(
pAttributeType
)
{
...
...
@@ -1244,8 +1244,8 @@ AttributeTypeUtil.getPossibleChildren = function (pAttributeType)
* The attribute type (use the values<br>
* of the AttributeTypes object, e. g.<br>
* AttributeTypes.TEXT)<br>
* @return {
String[]}
<p>
*
.
<br>
* @return {
Boolean}
<p>
*
if the attribute can only be used once
<br>
*/
AttributeTypeUtil
.
isSingleSelection
=
function
(
pAttributeType
)
{
...
...
@@ -1269,6 +1269,16 @@ AttributeTypeUtil.getDropDownDefinitionTitle = function (pAttributeType)
return
type
?
type
.
dropDownDefinitionTitle
:
""
;
}
/**
* Returns a function to resolve the displayValue depending on the attribute type.
*
* @param {String} pAttributeType <p>
* The attribute type (use the values<br>
* of the AttributeTypes object, e. g.<br>
* AttributeTypes.TEXT)<br>
* @return {Function} <p>
* A function that resolves the displayValue or null if the type is invalid<br>
*/
AttributeTypeUtil
.
getDisplayValueSqlFn
=
function
(
pAttributeType
)
{
var
attributeType
=
AttributeTypes
.
get
(
pAttributeType
);
...
...
@@ -1283,7 +1293,7 @@ AttributeTypeUtil.getDisplayValueSqlFn = function (pAttributeType)
*
* @param {String} pAttributeType <p>
* The attribute type which shall be comapred.
* @return {
String}
<p>
* @return {
Boolean}
<p>
* Returns true, if the given attribute type is equal<br>
* with the attribute string "OBJECTSELECTION" and <br>
* false, if not.<br>
...
...
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