Â
Â
I have a table in Excel as in Fig. how to arrayed all numbers in the second row?Â
Â
Â
I have a table in Excel as in Fig. how to arrayed all numbers in the second row?Â
Â
Â
Do you want all numbers to be in the second row or in Row2?Â
Â
- In second row would be a value issue: u can use a unconditional merger.Â
- In Row2 would be an attribute issue: a attributecreator can do that.Â
Â
Â
Â
If u mean to collapse all values to Row2:Â
Â
try thisÂ
Â
Â
Â
Is this an issue of renaming attributes? If so, I would use the BulkAttributeRenamer.Â
The BulkAttributeRenamer with this setting renames all "Row**" to "Row2".Â
Â
Â
Just be aware that "String" parameter must be a constant "Row2". It should not be an Attribute Value.Â
Â
TakashiÂ
tnx for the help, I dont have new FME, only FME 2012, and I tried it with a string replacer and does not work. have any oder idea?Â
-----Â
proc renameRows {} {Â
   foreach name FME_AttributeNames] {Â
       if { regexp {^Row.+$} $name]} {Â
           FME_RenameAttribute "Row2" $nameÂ
       }Â
   }Â
}Â
-----Â
Â
Enter the script into "Source Code" and type "renameRows" (name of the procedure) in "Tcl Expression" parameter.Â
A possible way is:Â
1) Remove all empty attributes. I would use TCLCaller with this script.Â
-----Â
proc removeEmptyAttributes {} {Â
   foreach name cFME_AttributeNames] {Â
       if { string compare [FME_GetAttribute $name] {}] == 0} {Â
           FME_UnsetAttributes $nameÂ
       }Â
   }Â
}Â
-----Â
2) Accumulate all rows into one row using the AttributeAccumulator.Â
Â
In FME 2014, the Excel reader (Read blank cells as: Missing) and the Aggregator (Mode: Attributes Only) do it.