Ignore:
Timestamp:
Nov 25, 2010, 3:51:14 PM (10 years ago)
Author:
t.w.abma@…
Message:
  • removed extra step and implemented a failed cells check in step 3 (missing mappings) which shows the failed ontologies in the table editor (might have to tune appearance)
Location:
trunk/grails-app/views/importer
Files:
2 edited

Legend:

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

    r1140 r1202  
    1 <%
     1  <%
    22        /**
    33         * Missing properties template which shows missing properties
     
    4141             updatefield = '<input type = "hidden" name="updatefield" value="true" / >';
    4242             $('#missingpropertiesform').append(updatefield);
    43 
    4443             $('#missingpropertiesform').submit();
    45 
    4644        }
    4745    });
    4846
    4947
     48  });
     49</script>
     50
     51<script type="text/javascript">
     52  $(document).ready(function() {
     53        // mark error fieldssss
     54        <g:each in="${failedcells}" var="record">
     55          <g:each in="${record.importcells}" var="cell">
     56          var element = $("select[name=entity_${cell.entityidentifier}_${cell.mappingcolumn.property}]");
     57
     58          element.addClass('error')
     59          element.append( new Option("Invalid: ${cell.value}","", true, true) );
     60
     61          console.log(element.val())
     62          //element.
     63         
     64          //element.hide()
     65          //element.attr('disabled', true)
     66         
     67          </g:each>
     68        </g:each>
    5069  });
    5170</script>
     
    6988                        <div class="firstColumn">#</div>
    7089                        <div class="firstColumn"></div>
    71                         <wizard:templateColumns id="${entity.hashCode()}" entity="${entity}" template="${entity.template}" name="entity_${entity.hashCode()}" class="column" subject="${entity.hashCode()}" addDummy="true" />
     90                        <wizard:templateColumns id="${entity.hashCode()}" entity="${entity}" template="${entity.template}" name="entity_${entity.getIdentifier()}" class="column" subject="${entity.hashCode()}" addDummy="true" />
    7291                    </div>
    7392                </g:each>
     
    8099</g:form>   
    81100</div>
    82 
  • trunk/grails-app/views/importer/step3_simple.gsp

    r1103 r1202  
    2525    <h1>Step 3: fill in missing mappings</h1>
    2626    You must map the missing properties
    27     <importer:missingProperties datamatrix="${datamatrix}"/>
     27    <importer:missingProperties datamatrix="${datamatrix}" failedcells="${failedcells}"/>
    2828  </body>
    2929</html>
Note: See TracChangeset for help on using the changeset viewer.