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
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.

Recommended Articles