cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

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

How does JSL automatically get data for each cell in the selected range of the cursor?

For example, "Big class.jMP "has selected column 1, and column 2 has already selected row 6

2020-11-24_16-25-14.png
How can write JSL to automatically write the cell values of the selected range into a variable?

It looks like this:
s1="TIM"
s2=12

 

Thanks!

 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: How does JSL automatically get data for each cell in the selected range of the cursor?

I think this is what you are looking for

s1 = column(dt,(dt<<get selected columns)[1])[(dt<<get selected rows)[1]];
s2 = column(dt,(dt<<get selected columns)[2])[(dt<<get selected rows)[1]];
Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: How does JSL automatically get data for each cell in the selected range of the cursor?

I think this is what you are looking for

s1 = column(dt,(dt<<get selected columns)[1])[(dt<<get selected rows)[1]];
s2 = column(dt,(dt<<get selected columns)[2])[(dt<<get selected rows)[1]];
Jim
lwx228
Level VIII

Re: How does JSL automatically get data for each cell in the selected range of the cursor?

Thank Jim!

2020-11-24_18-31-55.png

Recommended Articles