Ignore:
Timestamp:
Feb 18, 2010, 8:10:35 AM (12 years ago)
Author:
tabma
Message:
  • rewrote to HashMap? based columns (columns are always unique, storing in array tricky/redundancy)
  • entities can be chosen in the preview
  • properties page shows columns grouped per entity
  • properties page allows mapping of column to property (TODO: get all fields per entity)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/importer/common/_preview.gsp

    r200 r203  
    1919          <g:each var="column" in="${header}">
    2020              <td class="header">
    21                   <b>${column.value}</b>
     21                  <b>${column.value.value}</b>
    2222              </td>
    2323          </g:each>
     
    2525
    2626        <tr>
    27             <td>Datatype:</td>
     27            <td>Celltype:</td>
    2828            <g:each var="column" in="${header}">
    2929                <td class="header">
    30                     <importer:celltypeSelect selected="${column.celltype}" name="celltype" customvalue="${column.columnindex.toString()}"/>
     30                    <importer:celltypeSelect selected="${column.value.type.toInteger()}" name="celltype" customvalue="${column.key.toString()}"/>
    3131                </td>
    3232            </g:each>
     
    3737            <g:each var="column" in="${header}">
    3838                <td class="header">
    39                     <importer:entitySelect name="entity" customvalue="${column.columnindex.toString()}"/>
     39                    <importer:entitySelect name="entity" customvalue="${column.key.toString()}"/>
    4040                </td>
    4141            </g:each>
Note: See TracChangeset for help on using the changeset viewer.