Show
Ignore:
Timestamp:
26-11-10 13:02:51 (3 years ago)
Author:
t.w.abma@…
Message:

- added an initial simple overview in last step of import wizard showing entities which failed to be persisted

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/importer/ImporterController.groovy

    r1202 r1207  
    344344                    model:[error:"Data is already imported or you are calling the url directly without following the previous import steps."]) 
    345345        } else { 
    346             session.validatedSuccesfully = ImporterService.saveDatamatrix(session.importer_study, session.importer_importeddata) 
    347             render(view:"step4", model:[validatedSuccesfully:session.validatedSuccesfully, totalrows:session.importer_importeddata.size, referer: session.import_referer]) 
     346            def (validatedSuccesfully, updatedEntities, failedtopersist) = ImporterService.saveDatamatrix(session.importer_study, session.importer_importeddata) 
     347            session.validatedSuccesfully = validatedSuccesfully 
     348            render(view:"step4", model:[validatedSuccesfully:session.validatedSuccesfully, failedtopersist:failedtopersist, updatedentities:updatedEntities, totalrows:session.importer_importeddata.size, referer: session.import_referer]) 
    348349            session.import_wizard_init = false 
     350 
     351            println "failed:" 
     352            failedtopersist.each { 
     353                println it 
     354            } 
    349355        } 
    350356    }