I know this is an older post, but I am working on something similar and
the following loop worked for me: // change border color: for (i = 0; i
< 4; i++) { this.ui.oneOfChild.border.getElement("edge", i).color.value
= "255,0,0"; }Notes:Borders are only 4 items (top, right, bottom, left).
Since the count starts at "0" the loop should stop at 4 (thus "i smaller
than 4" )Replace "this" with whatever field reference.