Skip to main content
Question

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

  • May 22, 2017
  • 4 replies
  • 27 views
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • May 22, 2017

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


ciarab
Contributor
Forum|alt.badge.img+9
  • Contributor
  • May 22, 2017

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


jneujens
Forum|alt.badge.img
  • May 23, 2017

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.

Forum|alt.badge.img
  • Author
  • May 23, 2017

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

Thank you very much. It works perfectly.