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
poulravn
Level IV

How to control 'views' after running a script

Hi, I am creating a new column by a script. Something like:

New Column("new name", fomula(expression));

The default position for a new column appears to be rightmost in the data table. I therefore also move the colum to another place, where it is more in the context. Finally I wnat the script to leave the data table in the state where I see the left most colums in the view. Apparently after having run the script, the data table is shifted so that I se the right-most part of it.

What are the script commands to control which columns are viewable?

Regards

Poul

1 REPLY 1
pmroz
Super User

Re: How to control 'views' after running a script

Here's how to display the dataset starting at row 1, and a column called My First Column:

dt << go to row(1) << Clear Select << go to(:My First Column) << clear column selection;

You need the Clear Select and Clear Column Selection so that the row and column aren't in a selected state.