setocclabel in roster
Posted: March 18th, 2016, 5:18 pm
I am using CSPro 6.2 and trying to use setocclabel to set some labels for my roster rows. I am currently trying to set the labels in the onfocus of the roster:
PROC M2000
onfocus
numeric x=1;
while x<=2 do
trace(selectedOcc(x));
if setocclabel(M2000(x), selectedOcc(x)) then
trace("true");
else
trace("false");
endif;
inc(x);
enddo;
The trace is returning true, and I can see that it is working, because I see my labels for a split second, but they are almost immediately replaced by the default labels.
Does anyone know anything about this?
Thanks,
Chris
PROC M2000
onfocus
numeric x=1;
while x<=2 do
trace(selectedOcc(x));
if setocclabel(M2000(x), selectedOcc(x)) then
trace("true");
else
trace("false");
endif;
inc(x);
enddo;
The trace is returning true, and I can see that it is working, because I see my labels for a split second, but they are almost immediately replaced by the default labels.
Does anyone know anything about this?
Thanks,
Chris