BookmarkSubscribe
Choose Language Hide Translation Bar
lwx228
Community Trekker

How can you use a JSL implementation to select and jump to a currently invisible column?

Some columns are not visible on the current interface due to the number of columns in the data table.How to use the JSL implementation to select the penultimate column and transfer the interface to this column in the visible range.

 

 

2018-09-08_17-42-12.png

0 Kudos
1 ACCEPTED SOLUTION

Accepted Solutions
gzmorgan0
Super User

Re: How can you use a JSL implementation to select and jump to a currently invisible column?

Page 43 of the JMP Scripting Guide , available from Help > Books, very clearly states:

  • JMP cannot record scripts while you are working. Though script-recording is a useful
    feature in some other scripting languages, it is less important for software like JMP, where
    the results are what matter. You cannot use script-recording to observe how a sequence of
    interactive steps is performed.

Two weeks ago, I posted a response and script https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/700...  

 

dt = current data table();

z = ncol(dt);

dt << bring window to front;
column(dt,z-1) << set selected;
dt<<goto(column(dt,z-1));
4 REPLIES 4
Highlighted
lwx228
Community Trekker

Re: How can you use a JSL implementation to select and jump to a currently invisible column?

JMP's operations are not all recording JSL.Thank you very much!
0 Kudos
lwx228
Community Trekker

Re: How can you use a JSL implementation to select and jump to a currently invisible column?

I can select the column in the following code, but I cannot implement a visual interface.

dt : cNa[z1-1]<< Set Selected( 1 );

or
dt : cNa[z1-1]<< Set Display Selected( 1 );
0 Kudos
gzmorgan0
Super User

Re: How can you use a JSL implementation to select and jump to a currently invisible column?

Page 43 of the JMP Scripting Guide , available from Help > Books, very clearly states:

  • JMP cannot record scripts while you are working. Though script-recording is a useful
    feature in some other scripting languages, it is less important for software like JMP, where
    the results are what matter. You cannot use script-recording to observe how a sequence of
    interactive steps is performed.

Two weeks ago, I posted a response and script https://community.jmp.com/t5/Discussions/Select-specific-columns-with-JSL-name-contains-code/m-p/700...  

 

dt = current data table();

z = ncol(dt);

dt << bring window to front;
column(dt,z-1) << set selected;
dt<<goto(column(dt,z-1));
lwx228
Community Trekker

Re: How can you use a JSL implementation to select and jump to a currently invisible column?

This community is a good place to study. Thank you for your guidance!
0 Kudos