Ignore:
Timestamp:
Feb 8, 2010, 12:42:46 PM (11 years ago)
Author:
keesvb
Message:

added first version of importer data model, added helper methods to domain class for getting all entity fields, added study template fields

File:
1 edited

Legend:

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

    r162 r176  
    1111                def f = st.template.subjectFields
    1212
     13                //println st.giveAllFields()
     14
    1315                // This is a way to iterate over the fields in your controller
    1416                // And print them to the console
     
    2224                def subject = Subject.findByName('A1')
    2325                println st.template.getSubjectFieldType('Age')
    24                 println subject.getFieldValue('Age')
    25 
    26 
     26                println subject.getFieldValue('Genotype')
     27                subject.setFieldValue('Genotype','wildtype')
     28                println subject.getFieldValue('Genotype')
     29                subject.setFieldValue('name','hallo')
     30                println subject.name
     31               
    2732                // Specify which variables we want to be available in the controller (implicit return statement)
    2833                [fields: f, subjects: st.subjects]
Note: See TracChangeset for help on using the changeset viewer.