Forum Discussion

iata89's avatar
13 years ago

Output Table Column Order

Hi,

A quick question about the order that columns are displayed when using the output table and data source components.

I was expecting the order would be the same in the CSV file being read however this doesn't seem to be the case. Looking at the groovy code files I cant understand what sets the order.

e.g. csv file:

a,b,c,d
1,2,3,4
1,2,3,4
1,2,3,4

output:



This isn't really causing any problems but I'm as to why its happening. Can anyone help?

Ideally Id like a way that I can get the ordering to be the same as in the CSV file.

Thanks

1 Reply

  • The fields attached to VUs/messages are stored in a Map, so there is no ordering.

    To work around this, you can modify the DataSource component, making "messages" a LinkedHashMap instead.