Changeset 727


Ignore:
Timestamp:
Jul 27, 2010, 2:21:52 PM (10 years ago)
Author:
tabma
Message:
  • added sheet chooser
File:
1 edited

Legend:

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

    r686 r727  
    8282        session.importer_study = Study.get(params.study.id.toInteger())
    8383        session.importer_template_id = params.template_id
     84        session.importer_sheet = params.sheet.toInteger() -1 // 0 == first sheet
    8485        session.importer_workbook = wb
    8586
     
    9091        def templates = Template.get(session.importer_template_id)
    9192       
    92         render(view:"step2_simple", model:[entities: selectedentities, header:session.importer_header, datamatrix:ImporterService.getDatamatrix(wb, session.importer_header, 0, 5), templates:templates])
     93        render(view:"step2_simple", model:[entities: selectedentities, header:session.importer_header, datamatrix:ImporterService.getDatamatrix(wb, session.importer_header, session.importer_sheet, 5), templates:templates])
    9394    }
    9495
     
    114115
    115116    def saveMissingProperties = {
    116         println params.entity
    117117       
    118118        session.importer_importeddata.each { table ->
Note: See TracChangeset for help on using the changeset viewer.