Question

I want to write the atrributenames of afeature to excel (vertical order). Can someone please help me?


Badge


4 replies

Badge +3

read the schema (schema reader) and create a attribute and set its value to _attribute_name.

Badge +9

Try the attributeexploder that will give you a vertical list of your attribute names and values.

Badge

If you want more control on what attributes are written to excel, a really handy custom transformer can be found on the hub: the AttributeListExploder (https://hub.safe.com/transformers/attributelistexploder)

 

 

It does pretty much what the regular AttributeExploder does, but it stores a list of all the attributenames and -values. When exploding this list, you can use the index of this list to link it to the 'row number attribute' parameter in the excel writer.
Badge

read the schema (schema reader) and create a attribute and set its value to _attribute_name.

Thank you very much. It works perfectly.

 

 

Reply