Hello JMP users,
I've encountered a bug with the row change function for a table box. I'm trying to change the focus to a different tab inside the function but it gets ignored. I contacted JMP tech support who said it would either be fixed in JMP 13.2 or 14. This is a show stopper for me. I was wondering if anyone else noticed this behavior and was able to come up with a workaround?
Thanks,
Peter
Here's the program that demonstrates the bug:
nw = new window("test",
tabx = tab box(
"First Tab",
tb = table box(
scb1 = string col box("One", {"AAA", "BBB", "CCC"}),
scb2 = string col box("Two", {"XXX", "YYY", "ZZZ"}),
scb3 = string col box("Three", {"Giant", "Awesome", "Stupendous"}),
ncb = number col box("Four", {44, 33, 22}),
),
"Second Tab",
txb = text box("Nothing selected"),
),
);
tb << Set Selectable Rows(1);
tb << set row change function(
function({this},
rlist = this << get selected rows;
if (nrows(rlist) > 0,
print(rlist[1]);
txb << set text(char(rlist[1]));
tabx << set selected(2);
);
);
);