Ignore:
Timestamp:
Feb 15, 2011, 5:12:25 PM (10 years ago)
Author:
t.w.abma@…
Message:
  • Importer tests on hold due to missing parse() method in Template domain
  • ImportMappings? and MappingColumns? are now persisted and can be loaded, todo: null-entities? and lazy loading issue
Location:
trunk/grails-app/views/importer/common
Files:
1 deleted
2 edited

Legend:

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

    r1515 r1525  
    5252          // open load box
    5353          $('#loadpropertiesbutton').click(function() {
    54             $("#loadmapping").toggle("scale")
     54            $("#loadmapping").toggle("scale")           
     55            if ($("#importmapping_id").val()) refreshFlow()
    5556          });
    5657
  • trunk/grails-app/views/importer/common/_properties_horizontal.gsp

    r1515 r1525  
    3434              <div id="loadmapping" style="display:none">
    3535                Select an existing mapping and press Load:
    36                 <g:select name="importmapping" from="${importer_importmappings}" optionValue="name"/>
     36                <g:select name="importmapping_id" from="${importer_importmappings}" noSelection="['':'-Select mapping-']" optionValue="name" optionKey="id"/>
    3737              </div>
    3838            </td>           
    3939            <g:each var="mappingcolumn" in="${importer_header}">
     40              <!-- set selected values based on submitted columnproperties, actually refresh -->
    4041              <g:if test="${importer_columnproperty}">
    4142                <g:set var="selected" value="${importer_columnproperty.index['' + mappingcolumn.index + '']}"/>
    4243              </g:if>
     44              <g:else>
     45                <g:set var="selected" value="${mappingcolumn.property}"/>
     46              </g:else>
    4347
    4448                          <td class="header" width="200px">
Note: See TracChangeset for help on using the changeset viewer.