Changeset 158


Ignore:
Timestamp:
Feb 2, 2010, 10:40:17 AM (8 years ago)
Author:
keesvb
Message:

add values to stringlist template fields

Location:
trunk/grails-app
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/BootStrap.groovy

    r153 r158  
    119119                                name: 'Genotype',type: TemplateFieldType.STRINGLIST))
    120120                        .addToSubjectFields(new TemplateSubjectField(
    121                                 name: 'Gender',type: TemplateFieldType.STRINGLIST))
     121                                name: 'Gender',type: TemplateFieldType.STRINGLIST, listEntries: ['Male','Female']))
    122122                        .addToSubjectFields(new TemplateSubjectField(
    123123                                name: 'Age',type: TemplateFieldType.INTEGER))
  • trunk/grails-app/domain/dbnp/studycapturing/TemplateField.groovy

    r145 r158  
    1414        String unit
    1515
     16    static hasMany = [listEntries : String] // to store the entries to choose from when the type is 'item from predefined list'
     17
    1618        static constraints = {
    1719                name(unique: true)
Note: See TracChangeset for help on using the changeset viewer.