cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
rmthomas
Level III

Clear selected row cells based off string that ends with

Hello everyone, 

 

Here is an example that I need help with.

 

rmthomas_0-1635167178453.png

 

I am trying to clear specific rows based off of the last part of column Characteristic (.X, .Y, .Z) and clear the LSL, Target, USL. this is just a basic table and I have many different Characteristics and the ones I need to clear are all that end in .X, .Y, .Z.

 

I have tried to use this JSL code but I cant seem to get anything to happen. just for the characteristic .X and the USL.

 

dt111 = data table ("Untitled");

curRows = dt111 << get rows where(:Characteristic (ends with(".X")));
:USL[curRows] =.;

Any help would be greatly appreciated.

 

Thanks, 

-Ryan

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Clear selected row cells based off string that ends with

 Syntax for Ends With seems to be wrong. Try:

curRows = dt << Get Rows Where(Ends With(:Characteristic, ".X"));

and check what values curRows has.

-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: Clear selected row cells based off string that ends with

 Syntax for Ends With seems to be wrong. Try:

curRows = dt << Get Rows Where(Ends With(:Characteristic, ".X"));

and check what values curRows has.

-Jarmo
rmthomas
Level III

Re: Clear selected row cells based off string that ends with

@jthi  Thank you this works great!

Recommended Articles