Hi JMP Community,
I wrote a jmp script to assign a string to the selected rows in the graph builder.
The script will generate a wafer map for the X and Y coordinates. Users can select a region of a wafer and assign a string to the selected rows.
The script works fine, but it takes a very long time to assign values to the selected rows. I used :Column[rows] = "string" logic.
Is there a way to optimize or assign it faster? Any feedback?

Code:
f = Function( {a},
teb << settext( Format( N Items( dt << getselectedrows ), "Fixed Dec", Use thousands separator( 1 ) ) || " Dies")
);
Current Data Table( dt );
dt << Clear Row States;
rs = dt << make row state handler( f );
dt = current data table();
New Window( "",
modal,
V List Box(
hlistbox(
Panel Box( "Assign",
H List Box(
Text Box( "Enter Bin Value:" ),
Spacer Box( size( 10, 0 ) ),
tp = Text Edit Box( "", <<SETWIDTH></SETWIDTH>