Skip to main content

Hi,

I'm working with a workbench, found on https://knowledge.safe.com/articles/1127/write-mic...

I'm trying to change the order of the columns, writen in the MSwordtable transformer. The order I want to get, is "type", "omschrijving", "VH", "eenheid".

I managed the order of the attributes (with the attributemanager). this can be seen when I uncheck the "sorted" bullet, on the right sight of the image below. (this is the result how I want it)

In the fieldlist parameter, I indicated which columns should be used.

now, this order is not used in die fieldlist parameter, instead, FME uses the order "type", "VH", "eenheid", "omschrijving".

When I look closer, this parameter is always "sorted" (I do not know how it is sorted, definitely not alphabetically).

when I uncheck the "sorted", I get the order like I want (see right part of the image below), but clicking on the OK button makes the sorted bullet again checked.

Is this a bug, or am I doing something wrong here?

I hoped to solve this problem with the attribute manager, otherwise I have to dive into the code of the MSwordtable transformer, in order to try to change the order of the columns there.

I hope someone can help me out!

with kind regards,

Ine De Cubber

HI Ine,

Instead of selecting the field, would it be possible to type the sequence of fields in the parameter box? Or copy "type,omschrijving,VH,eenheid" from a text editor?

I know: not the nicest solution, but hopefully possible.

If not, open the FMW file in a text editor and replace the wrong sequence with the right sequence.

Again, not a nice solution, but most likely a working solution.

Erik Jan


Reply