Skip to content
Snippets Groups Projects
Commit 06347de5 authored by felmer's avatar felmer
Browse files

SSDM-1214: testing searchDataSets via Javascript API

SVN: 32965
parent 127b2278
No related branches found
No related tags found
No related merge requests found
var DataSetTypeFetchOptions = function()
{
this['@type'] = 'DataSetTypeFetchOptions';
}
......@@ -24,6 +24,7 @@
<script src="dto/AttachmentFetchOptions.js"></script>
<script src="dto/DataSet.js"></script>
<script src="dto/DataSetFetchOptions.js"></script>
<script src="dto/DataSetTypeFetchOptions.js"></script>
<script src="dto/Experiment.js"></script>
<script src="dto/ExperimentFetchOptions.js"></script>
<script src="dto/ExperimentType.js"></script>
......
......@@ -123,6 +123,18 @@ var openbis = function() {
});
}
this.searchDataSets = function(dataSetSearchCriterion, dataSetFetchOptions, onSuccess, onError) {
_private.ajaxRequest({
url : openbisUrl,
data : {
"method" : "searchDataSets",
"params" : [ _private.sessionToken, dataSetSearchCriterion, dataSetFetchOptions ]
},
success : onSuccess,
error : onError
});
}
this.createExperiments = function(experimentCreations, onSuccess, onError) {
_private.ajaxRequest({
url : openbisUrl,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment