cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
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