Ignore:
Timestamp:
Mar 18, 2010, 10:17:02 AM (10 years ago)
Author:
tabma
Message:
  • final step in the wizard, implemented method in the ImporterService? to persist the entities into the database
File:
1 edited

Legend:

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

    r274 r283  
    146146                session.header[temp[0].toInteger()].property = TemplateField.get(temp[1].toInteger())
    147147        }
    148        
    149         /*for (e in session.header) {
    150             println e
    151         }*/
    152148
    153149        //import workbook
    154         ImporterService.importdata(session.importtemplate_id, session.workbook, 0, 1, session.header)
    155         //println session.header.dump()
     150        session.importeddata = ImporterService.importdata(session.importtemplate_id, session.workbook, 0, 1, session.header)   
    156151
    157         render ("properties saved")
     152        render(view:"step3", model:[datamatrix:session.importeddata])
     153    }
     154
     155    def savepostview = {
     156        ImporterService.savedata(session.importeddata)
     157        render(view:"step4")
    158158    }
    159159}
Note: See TracChangeset for help on using the changeset viewer.