Ignore:
Timestamp:
Mar 31, 2010, 3:51:25 PM (12 years ago)
Author:
tabma
Message:
  • highlight columns which are null (unused fields and/or values could not be stored in the record because of type mismatch)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/services/dbnp/importer/ImporterService.groovy

    r321 r322  
    263263        for (HSSFCell cell: excelrow) {
    264264            def mc = mcmap[cell.getColumnIndex()]
    265             def value = formatValue(df.formatCellValue(cell), mc.templatefieldtype)
     265            def value = formatValue(df.formatCellValue(cell), mc.templatefieldtype)         
    266266
    267267            switch(mc.entity) {
     
    272272                case Subject    :   (record.any {it.getClass()==mc.entity}) ? 0 : record.add(subject)
    273273                                    if (mc.identifier) { subject.name = value; break }
    274                                     subject.setFieldValue(mc.property.name, value)
     274                                    subject.setFieldValue(mc.property.name, value)                                 
    275275                                    break
    276276                case Event      :   (record.any {it.getClass()==mc.entity}) ? 0 : record.add(event)
Note: See TracChangeset for help on using the changeset viewer.