Hi Sir,
I already created a script recode that rename the USL & LSL. But i still don't know how to change the value of 9.99e100 to missing in row selection not the column selection. I've tried many times still get fail. Also i stuck at write script to set all spec limit on all column properties. Please help me.
// Set Auto Spec Limit
Names Default To Here( 1 );
dt = Current Data Table();
// Recode column: Spec Limit
Local( {dt},
dt = Current Data Table();
dt << Begin Data Update;
dt << Recode Column(
dt:Spec Limit,
{Map Value( _rcOrig, {"HighL", "USL", "LowL", "LSL"}, Unmatched( _rcNow ) )},
Update Properties( 1 ),
Target Column( :Spec Limit )
);
dt << End Data Update;
);
// Recode row: USL
Local( {dt},
dt = Current Data Table();
dt << Clear Select << Select Rows( [2] );
selRows = dt << Get Selected Rows;
dt << Begin Data Update;
dt << Recode Selected Rows(
dt:USL,
{Map Value( _rcOrig, {"9.9999e+100", "."}, Unmatched( _rcNow ) )},
Update Properties( 1 ),
Target Row (:USL)
);
dt << End Data Update;
);
// Recode row: LSL
Local( {dt},
dt = Current Data Table();
dt << Clear Select << Select Rows( [3] );
selRows = dt << Get Selected Rows;
dt << Begin Data Update;
dt << Recode Selected Rows(
dt:USL,
{Map Value( _rcOrig, {"-9.9999e+100", "."}, Unmatched( _rcNow ) )},
Update Properties( 1 ),
Target Row (:LSL)
);
dt << End Data Update;
);
Here below i attach the example data table that using this script.