Moving Categories with a Script

3.85K viewsScripting
0

How can I move a category from the column tray to the row tray or to the filter tray with a script?

Many thanks for your help!

Dominik

QuantrixAuthority Answered question January 19, 2019
0

Hi Dom. Try this in a matrix Matrix1 with three categories named A, B and C:

mat = |Matrix1|
catA = |Matrix1::A|
catB = |Matrix1::B|
catC = |Matrix1::C|

mat.getFilterTrayCategories().addAt(0,catA)

mat.getColumnTrayCategories().addAt(0,catB)

mat.getRowTrayCategories().addAt(0,catC)

You can set the position in the tray using the first argument of .addAt, values greater than the number of categories in the tray are moved at the end.

You are viewing 1 out of 4 answers, click here to view all answers.