Ignore:
Timestamp:
Apr 23, 2010, 11:26:57 AM (12 years ago)
Author:
keesvb
Message:

added giveDomainFields to TemplateEntity? entities, fixed some problems in BootStrap?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/SandboxController.groovy

    r359 r375  
    1313                // Get the example study in a lazy way
    1414                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
    1618        def f = fieldsAll[0]
    1719        println fieldsAll.class
     
    4345
    4446                // 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[])
    4749
    4850                // Specify which variables we want to be available in the controller (implicit return statement)
Note: See TracChangeset for help on using the changeset viewer.