Changeset 375 for trunk/grails-app/controllers
- Timestamp:
- Apr 23, 2010, 11:26:57 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/SandboxController.groovy
r359 r375 13 13 // Get the example study in a lazy way 14 14 def st = Study.get(1) 15 def fieldsAll = st.giveSubjectTemplates().fields 15 println st.title 16 println st.subjects 17 def fieldsAll = st.giveSubjectTemplates().asList().first().fields 16 18 def f = fieldsAll[0] 17 19 println fieldsAll.class … … 43 45 44 46 // Demonstration of querying mechanism 45 println "Features available for first assay of PPSH study: " + clinicalDataLayerService.getFeaturesQuantitative(Study.findByCode("PPSH").assays*.id[0])46 println "LDL feature value for two subjects: " + clinicalDataLayerService.getDataQuantitative('LDL',1,['A1_B','A3_B'] as String[])47 //println "Features available for first assay of PPSH study: " + clinicalDataLayerService.getFeaturesQuantitative(Study.findByCode("PPSH").assays*.id[0]) 48 //println "LDL feature value for two subjects: " + clinicalDataLayerService.getDataQuantitative('LDL',1,['A1_B','A3_B'] as String[]) 47 49 48 50 // Specify which variables we want to be available in the controller (implicit return statement)
Note: See TracChangeset
for help on using the changeset viewer.