Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
a1c30293
Commit
a1c30293
authored
8 years ago
by
juanf
Browse files
Options
Downloads
Patches
Plain Diff
SSDM-3480 : show all properties even empty ones.
SVN: 36246
parent
c8caafa7
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
openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/DataGrid/SampleDataGridUtil.js
+10
-7
10 additions, 7 deletions
...pps/eln-lims/html/js/views/DataGrid/SampleDataGridUtil.js
with
10 additions
and
7 deletions
openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/DataGrid/SampleDataGridUtil.js
+
10
−
7
View file @
a1c30293
var
SampleDataGridUtil
=
new
function
()
{
var
SampleDataGridUtil
=
new
function
()
{
this
.
getSampleDataGrid
=
function
(
sampleTypeCode
,
samples
,
rowClick
,
customOperations
,
customColumns
,
c
onfigPostKey
,
isOperationsDisabled
,
isLinksDisabled
)
{
this
.
getSampleDataGrid
=
function
(
mandatoryConfigPostKey
,
samples
,
rowClick
,
customOperations
,
customColumns
,
optionalC
onfigPostKey
,
isOperationsDisabled
,
isLinksDisabled
)
{
var
foundPropertyCodes
=
{};
var
foundPropertyCodes
=
{};
var
foundSampleTypes
=
{};
for
(
var
sIdx
=
0
;
sIdx
<
samples
.
length
;
sIdx
++
)
{
for
(
var
sIdx
=
0
;
sIdx
<
samples
.
length
;
sIdx
++
)
{
var
sample
=
samples
[
sIdx
];
var
sample
=
samples
[
sIdx
];
for
(
var
propertyCode
in
sample
.
properties
)
{
if
(
!
foundSampleTypes
[
sample
.
sampleTypeCode
])
{
if
(
sample
.
properties
[
propertyCode
])
{
foundSampleTypes
[
sample
.
sampleTypeCode
]
=
true
;
foundPropertyCodes
[
propertyCode
]
=
true
;
var
propertyCodes
=
profile
.
getAllPropertiCodesForTypeCode
(
sample
.
sampleTypeCode
);
for
(
var
pIdx
=
0
;
pIdx
<
propertyCodes
.
length
;
pIdx
++
)
{
foundPropertyCodes
[
propertyCodes
[
pIdx
]]
=
true
;
}
}
}
}
}
}
...
@@ -197,9 +200,9 @@ var SampleDataGridUtil = new function() {
...
@@ -197,9 +200,9 @@ var SampleDataGridUtil = new function() {
var
getDataList
=
SampleDataGridUtil
.
getDataList
(
samples
);
var
getDataList
=
SampleDataGridUtil
.
getDataList
(
samples
);
//Create and return a data grid controller
//Create and return a data grid controller
var
configKey
=
"
SAMPLE_TABLE_
"
+
sampleTypeCode
;
var
configKey
=
"
SAMPLE_TABLE_
"
+
mandatoryConfigPostKey
;
if
(
c
onfigPostKey
)
{
if
(
optionalC
onfigPostKey
)
{
configKey
+=
"
_
"
+
c
onfigPostKey
;
configKey
+=
"
_
"
+
optionalC
onfigPostKey
;
}
}
var
dataGridController
=
new
DataGridController
(
null
,
columns
,
getDataList
,
rowClick
,
false
,
configKey
);
var
dataGridController
=
new
DataGridController
(
null
,
columns
,
getDataList
,
rowClick
,
false
,
configKey
);
return
dataGridController
;
return
dataGridController
;
...
...
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