Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: stonysmithOriginally posted by: dglavastorm
Unfortunately I need them in the same order as it concatenates with other data and then eventually exports to a template.
There are two answers here.
1) At this time, LAE makes no warranty or (or attempt at) field order out of ANY node. It's a feature that has been requested, just hasn't been developed yet.
2) But there is a "trick" that I have used:
a) Add a Static Data node to your graph. In it, define all the columns you need, and in the order you desire to have them on the final output. Make sure you get the data types correct. In this node, you should not put any "data", just put the row defining the column headers.
b) Add a CAT node, and connect the Static Data node to its first pin. Connect your main data stream to the 2nd pin. You can even set this CAT node to "INTERSECTION" type if there are some columns you would like to drop out.
c) You should find that the CAT node will output the column(s) in the order from the static data node, and the order they are in from your main stream is ignored.
3) If you prefer your current method, then in the LAL is a node that will "Get MetaData" - gives you a list of your field names and types. I have used that with a filter before to auto-generate some emits that I then paste back into a filter.