cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
%3CLINGO-SUB%20id%3D%22lingo-sub-42522%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E9%87%8D%E6%96%B0%E6%8E%92%E5%BA%8F%E4%BF%9D%E5%AD%98%E5%88%B0%E6%95%B8%E6%93%9A%E8%A1%A8%E7%9A%84%E8%85%B3%E6%9C%AC%E5%88%97%E8%A1%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-42522%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E6%88%91%E5%B7%B2%E7%B6%93%E7%82%BA%E7%B5%A6%E5%AE%9A%E7%9A%84%E6%95%B8%E6%93%9A%E8%A1%A8%E5%89%B5%E5%BB%BA%E4%BA%86%E4%B8%80%E7%B5%84%E8%85%B3%E6%9C%AC%EF%BC%8C%E7%8F%BE%E5%9C%A8%E6%88%91%E6%83%B3%E2%80%9C%E9%87%8D%E6%96%B0%E6%8E%92%E5%BA%8F%E2%80%9D%E8%85%B3%E6%9C%AC%EF%BC%8C%E5%9B%A0%E7%82%BA%E5%AE%83%E5%80%91%E5%87%BA%E7%8F%BE%E5%9C%A8%E6%95%B8%E6%93%9A%E8%A1%A8%E8%A6%96%E5%9C%96%E7%9A%84%E5%B7%A6%E4%B8%8A%E8%A7%92%E5%8D%80%E5%9F%9F%E3%80%82%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E6%88%91%E4%BC%BC%E4%B9%8E%E7%84%A1%E6%B3%95%E5%9C%A8%E8%AB%96%E5%A3%87%E6%88%96%E2%80%9C%E5%B9%AB%E5%8A%A9%E2%80%9D%E9%83%A8%E5%88%86%E6%89%BE%E5%88%B0%E4%BB%BB%E4%BD%95%E8%A7%A3%E6%B1%BA%E6%AD%A4%E5%95%8F%E9%A1%8C%E7%9A%84%E6%96%B9%E6%B3%95%E3%80%82%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E5%9F%BA%E6%9C%AC%E4%B8%8A%EF%BC%8C%E8%85%B3%E6%9C%AC%E6%98%AF%E6%8C%89%E7%85%A7%E5%89%B5%E5%BB%BA%2F%E4%BF%9D%E5%AD%98%E7%9A%84%E9%A0%86%E5%BA%8F%E5%88%97%E5%87%BA%E7%9A%84%E3%80%82%E5%89%B5%E5%BB%BA%E5%BE%8C%E6%98%AF%E5%90%A6%E6%9C%89%E6%8E%92%E5%BA%8F%2F%E8%AA%BF%E6%95%B4%E5%88%97%E8%A1%A8%E7%9A%84%E6%96%B9%E6%B3%95%EF%BC%9F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E6%8F%90%E5%89%8D%E6%84%9F%E8%AC%9D%E6%82%A8%E7%9A%84%E4%BB%BB%E4%BD%95%E5%B9%AB%E5%8A%A9%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-48556%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E9%87%8D%E6%96%B0%E6%8E%92%E5%BA%8F%E4%BF%9D%E5%AD%98%E5%88%B0%E6%95%B8%E6%93%9A%E8%A1%A8%E7%9A%84%E8%85%B3%E6%9C%AC%E5%88%97%E8%A1%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-48556%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E5%A5%BD%E5%90%A7%EF%BC%8C%E4%B8%8D%E7%AE%A1%E5%87%BA%E6%96%BC%E4%BB%80%E9%BA%BC%E5%8E%9F%E5%9B%A0%EF%BC%8C%E5%AE%83%E6%B1%BA%E5%AE%9A%E4%BB%8A%E5%A4%A9%E6%97%A9%E4%B8%8A%E9%96%8B%E5%A7%8B%E5%B7%A5%E4%BD%9C%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-48531%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E9%87%8D%E6%96%B0%E6%8E%92%E5%BA%8F%E4%BF%9D%E5%AD%98%E5%88%B0%E6%95%B8%E6%93%9A%E8%A1%A8%E7%9A%84%E8%85%B3%E6%9C%AC%E5%88%97%E8%A1%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-48531%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E6%88%91%E5%9C%A8%2064%20%E4%BD%8D%20Windows%20%E4%B8%8A%E9%81%8B%E8%A1%8C%20JMP%2013.2.1%EF%BC%8C%E5%AE%83%E5%B0%8D%E6%88%91%E4%BE%86%E8%AA%AA%E5%BE%88%E5%A5%BD%E7%94%A8%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-48530%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E9%87%8D%E6%96%B0%E6%8E%92%E5%BA%8F%E4%BF%9D%E5%AD%98%E5%88%B0%E6%95%B8%E6%93%9A%E8%A1%A8%E7%9A%84%E8%85%B3%E6%9C%AC%E5%88%97%E8%A1%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-48530%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E6%88%91%E7%9C%8B%E4%B8%8D%E5%88%B0%E9%80%99%E5%9C%A8%20JMP%2013.2.1%EF%BC%8864%20%E4%BD%8D%EF%BC%89%E4%B8%AD%E6%9C%89%E6%95%88%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-42531%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E9%87%8D%E6%96%B0%E6%8E%92%E5%BA%8F%E4%BF%9D%E5%AD%98%E5%88%B0%E6%95%B8%E6%93%9A%E8%A1%A8%E7%9A%84%E8%85%B3%E6%9C%AC%E5%88%97%E8%A1%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-42531%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E5%A4%A7%E8%A1%9B%EF%BC%8C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E9%80%99%E6%AD%A3%E6%98%AF%E6%88%91%E8%A9%A6%E5%9C%96%E5%BC%84%E6%B8%85%E6%A5%9A%E7%9A%84%EF%BC%81%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E5%AE%8C%E7%BE%8E%E7%9A%84%E3%80%82%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E9%9D%9E%E5%B8%B8%E6%84%9F%E8%AC%9D%E3%80%82%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E6%88%B4%E5%A4%AB%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-42527%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E9%87%8D%E6%96%B0%E6%8E%92%E5%BA%8F%E4%BF%9D%E5%AD%98%E5%88%B0%E6%95%B8%E6%93%9A%E8%A1%A8%E7%9A%84%E8%85%B3%E6%9C%AC%E5%88%97%E8%A1%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-42527%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E5%9C%A8%20JMP%20%E4%B8%AD%E4%BB%A5%E4%BA%A4%E4%BA%92%E6%96%B9%E5%BC%8F%E6%8B%96%E6%94%BE%E8%A1%A8%E6%A0%BC%E8%85%B3%E6%9C%AC%E4%BB%A5%E5%B0%8D%E5%85%B6%E9%87%8D%E6%96%B0%E6%8E%92%E5%BA%8F%E3%80%82%20%E6%82%A8%E5%BF%85%E9%A0%88%E9%95%B7%E6%8C%89%E7%84%B6%E5%BE%8C%E6%8B%96%E5%8B%95%EF%BC%8C%E5%90%A6%E5%89%87%E6%8B%96%E5%8B%95%E7%A7%BB%E5%8B%95%E5%8F%AA%E6%9C%83%E9%81%B8%E6%93%87%E5%A4%9A%E5%80%8B%E8%85%B3%E6%9C%AC%E3%80%82%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22reorder-jsl.gif%22%20style%3D%22width%3A%20204px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22reorder-jsl.gif%22%20style%3D%22width%3A%20204px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22reorder-jsl.gif%22%20style%3D%22width%3A%20204px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F6967i3C51016CB7302B2E%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22reorder-jsl.gif%22%20alt%3D%22reorder-jsl.gif%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-42523%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E9%87%8D%E6%96%B0%E6%8E%92%E5%BA%8F%E4%BF%9D%E5%AD%98%E5%88%B0%E6%95%B8%E6%93%9A%E8%A1%A8%E7%9A%84%E8%85%B3%E6%9C%AC%E5%88%97%E8%A1%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-42523%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E6%88%91%E4%B8%8D%E7%9F%A5%E9%81%93%E4%BB%BB%E4%BD%95%E9%87%8D%E6%96%B0%E6%8E%92%E5%BA%8F%E8%A1%A8%E8%85%B3%E6%9C%AC%E7%9A%84%E7%B0%A1%E5%96%AE%E6%96%B9%E6%B3%95%E3%80%82%20%E4%BD%86%E6%98%AF%EF%BC%8C%E4%B8%8B%E9%9D%A2%E6%98%AF%E6%88%91%E6%94%BE%E5%9C%A8%E4%B8%80%E8%B5%B7%E7%9A%84%E4%B8%80%E5%80%8B%E7%B0%A1%E5%96%AE%E8%85%B3%E6%9C%AC%EF%BC%8C%E5%AE%83%E5%B0%87%E6%8C%89%E5%AD%97%E6%AF%8D%E9%A0%86%E5%BA%8F%E5%B0%8D%E7%B5%A6%E5%AE%9A%E6%95%B8%E6%93%9A%E8%A1%A8%E4%B8%AD%E7%9A%84%E8%85%B3%E6%9C%AC%E9%80%B2%E8%A1%8C%E6%8E%92%E5%BA%8F%E3%80%82%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(%201%20)%3B%0Adt%20%3D%20Open(%20%22%24SAMPLE_DATA%5Cbig%20class.jmp%22%20)%3B%0A%0A%2F%2F%20Get%20the%20list%20of%20scripts%0Anames%20%3D%20dt%20%26lt%3B%26lt%3B%20Get%20Table%20Script%20Names%3B%0A%0A%2F%2F%20Setup%20a%20list%20to%20sort%20alphabetically%0Anamestosort%20%3D%20names%3B%0ASort%20List%20Into(%20namestosort%20)%3B%0A%0A%2F%2F%20Pull%20into%20a%20list%20all%20of%20the%20scripts%0Adt%20%26lt%3B%26lt%3B%20Select%20Properties(%20names%20)%3B%0Aproplist%20%3D%20dt%20%26lt%3B%26lt%3B%20Get%20Selected%20Properties()%3B%0A%0A%2F%2F%20Pass%20through%20the%20sorted%20list%2C%20deleting%20each%20script%20and%0A%2F%2F%20then%20resaving%20it%20%0AFor(%20i%20%3D%201%2C%20i%20%26lt%3B%3D%20N%20Items(%20names%20)%2C%20i%2B%2B%2C%0A%20dt%20%26lt%3B%26lt%3B%20delete%20Table%20Property(%20namestosort%5Bi%5D%20)%3B%0A%20Eval(%20Parse(%20%22dt%26lt%3B%26lt%3B%22%20%7C%7C%20Char(%20proplist%5BLoc(%20names%2C%20namestosort%5Bi%5D%20)%5D%20)%20)%20)%3B%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
DVLuna
Level III

Re-ordering the script list saved to a Data Table

I have created a set of scripts for a given data table and I would now like to "re-order" the scripts as they appear in the top left area of the Data Table view.

 

I can't seem to find anything on the forums or in the Help section to address this.

 

Basically the scripts are listed in the order they were created/saved.  Is there a method for sorting/adjusting the list after creation?

 

Thanks in advance for any assistance.

1 ACCEPTED SOLUTION

Accepted Solutions
David_Burnham
Super User (Alumni)

Re: Re-ordering the script list saved to a Data Table

Interactively in JMP you have drag and drop the table scripts to re-order them.  YOu have to do a long-click then drag otherwise the drag movement will simply select multiple scripts.

reorder-jsl.gif

-Dave

View solution in original post

6 REPLIES 6
txnelson
Super User

Re: Re-ordering the script list saved to a Data Table

I am not aware of any simple way to reorder the Table Scripts.  However,  below is a simple script I put together that will alphabetically sort the scripts in a given data table.

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\big class.jmp" );

// Get the list of scripts
names = dt << Get Table Script Names;

// Setup a list to sort alphabetically
namestosort = names;
Sort List Into( namestosort );

// Pull into a list all of the scripts
dt << Select Properties( names );
proplist = dt << Get Selected Properties();

// Pass through the sorted list, deleting each script and
// then resaving it 
For( i = 1, i <= N Items( names ), i++,
	dt << delete Table Property( namestosort[i] );
	Eval( Parse( "dt<<" || Char( proplist[Loc( names, namestosort[i] )] ) ) );
);
Jim
David_Burnham
Super User (Alumni)

Re: Re-ordering the script list saved to a Data Table

Interactively in JMP you have drag and drop the table scripts to re-order them.  YOu have to do a long-click then drag otherwise the drag movement will simply select multiple scripts.

reorder-jsl.gif

-Dave
DVLuna
Level III

Re: Re-ordering the script list saved to a Data Table

David,

 

This is exactly what I was trying to figure out!

 

Perfect.

 

Thank you very much.

 

Dave

wis
wis
Level I

Re: Re-ordering the script list saved to a Data Table

I don't see this working in JMP 13.2.1 (64 bit)

txnelson
Super User

Re: Re-ordering the script list saved to a Data Table

I am running JMP 13.2.1 on 64bit windows and it works fine for me.

Jim
wis
wis
Level I

Re: Re-ordering the script list saved to a Data Table

Well, for whatever reason, it decided to work this morning.