I placed a tech support ticket to get the answer for this simple question, since there are no other post that are relevant to this issue. I decided to share the answer here with the JMP community so others could benefit as well:
My Question:
If itâs possible, I would like to know if I can perform the following on a TableBox:
GuiWindow = NewWindow("SMS1");
theBox = TableBox(
stringColBox("State",{"Florida", "Texas", "Main", "California"}),
NumberColBox("Width",{45,66,88,13}),
NumberColBox("Length",{67,34,1,78}),
NumberColBox("Depth",{13,65,32,56}));
theBox << Set Selectable Rows(1);
GuiWindow << Append(theBox);
- Select a row in a TableBox that meets the following criteria: column Length is larger than Column Depth
- In this example, the selected rows should be: Row 1 (Florida) and Row 4 (California)
- Change the row color to Red.
Tech support answer (Thanks Marcos!)
GuiWindow = NewWindow("SMS1");
theBox = TableBox(
stringColBox("State",{"Florida", "Texas", "Main", "California"}),
NumberColBox("Width",{45,66,88,13}),
NumberColBox("Length",{67,34,1,78}),
NumberColBox("Depth",{13,65,32,56}));
theBox << Set Selectable Rows(1);
GuiWindow << Append(theBox);
dt = theBox << Make into Data Table( invisible );
rs = dt << Get Rows Where( :Length > :Depth );
theBox << Set Selected Rows( rs );
theBox << Set Selected Row Color( "red" );
I hope this helps. Please let me know what other questions you have.
Regards
Marcos