Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Feb 9, 2024 2:06:24 PM
Jamie_Gregory
Nov 10, 2023 4:51:58 AM
-For the tFileInputExcel dynamic, It needs the first line to guess the schema.
-The example job source Excel didn't set a real header. Please Add tJavaFlex to transform Dynamic metadata with:
To the start code:
boolean isFirst = true;
To the main code:
if(isFirst) { isFirst = false; Dynamic newDyn = row1.newColumn.clone(false); for(DynamicMetadata meta : newDyn.metadatas) { // reset column name, String newColumnName = "field"+meta.getColumnPosition(); meta.setName(newColumnName); meta.setDbName(newColumnName); System.out.println("New dynamic field name: '"+ meta.getDbName()+"' "); } row2.newColumn = newDyn; }