Ignore:
Timestamp:
Apr 8, 2011, 12:07:56 PM (9 years ago)
Author:
s.h.sikkema@…
Message:

Excel export uses getMeasurements rest call; made assay export visible for guests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/services/dbnp/studycapturing/AssayService.groovy

    r1727 r1730  
    191191        def moduleUrl = assay.module.url
    192192
    193         def path = moduleUrl + "/rest/getMeasurementMetaData/query?assayToken=$assay.assayUUID"
     193        def path = moduleUrl + "/rest/getMeasurements/query?assayToken=$assay.assayUUID"
    194194
    195195        def jsonArray = moduleCommunicationService.callModuleRestMethodJSON(moduleUrl, path)
    196196
    197         // convert the JSONArray of JSONObjects to an array of hash maps
    198         jsonArray.collect{ jo -> // JSONObject
    199             [(jo.keys()[0]): jo.values().toList()[0]]
    200         }
     197        jsonArray*.toString()
    201198
    202199    }
     
    231228                //
    232229                // [ "measurement 1": [ value1, value2, value3 ],
    233                 //   "measurement 2": [ value4, value5, value6 ]
     230                //   "measurement 2": [ value4, value5, value6 ] ]
    234231                //
    235232                def map = [:]
Note: See TracChangeset for help on using the changeset viewer.