When using the key "COLORNUMBERTREE" add a column "COLOR_COLUMN" (type "Integer") in the ERP table.
This column can be filled with numbers from '0' to '9'.
Then, according to the condition under the key "COLORCONDITIONTREE0" to "COLORCONDITIONTREE 9" the respective color is shown.
COLORNUMBERTREE=MIN(ERPTABLE.COLOR_COLUMN)
Because of the "MIN" the lowest color number has the highest priority, if there are different values in "COLOR_COLUMN" for the respective project or directory.