Change orders of the same formation

Hi everybody !
I have a problem. This is my first VASSAL module and I have this problem I can’t solve.
In this game, you can have 4 different orders, and you have formations of 1 to 4 units that share the same order.
Ok, so I set up a prototype order with a Layer with all the values, then a sub menu with the commands that will appear with the right click and a dynamic property to set the value of the Order.

So far, so good, everything works fine, I have a nice layer that indicate the new order of my unit but now, I want to do more. Actually, I need to right Click and set the order to each unit but I can’t find the way to change the order of the entire formation when I change the first unit.

Every unit as 3 markers Side, Formation and Number.