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%EB%8D%B0%EC%9D%B4%ED%84%B0%20%ED%85%8C%EC%9D%B4%EB%B8%94%EC%97%90%20%EC%A0%80%EC%9E%A5%EB%90%9C%20%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8%20%EB%AA%A9%EB%A1%9D%20%EC%9E%AC%EC%A0%95%EB%A0%AC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-42522%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%EC%A3%BC%EC%96%B4%EC%A7%84%20%EB%8D%B0%EC%9D%B4%ED%84%B0%20%ED%85%8C%EC%9D%B4%EB%B8%94%EC%97%90%20%EB%8C%80%ED%95%9C%20%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8%20%EC%A7%91%ED%95%A9%EC%9D%84%20%EB%A7%8C%EB%93%A4%EC%97%88%EA%B3%A0%20%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8%EB%A5%BC%20%EB%8D%B0%EC%9D%B4%ED%84%B0%20%ED%85%8C%EC%9D%B4%EB%B8%94%20%EB%B7%B0%EC%9D%98%20%EC%99%BC%EC%AA%BD%20%EC%83%81%EB%8B%A8%20%EC%98%81%EC%97%AD%EC%97%90%20%EB%82%98%ED%83%80%EB%82%98%EB%8A%94%EB%8C%80%EB%A1%9C%20%22%EC%9E%AC%EC%A0%95%EB%A0%AC%22%ED%95%98%EA%B3%A0%20%EC%8B%B6%EC%8A%B5%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%EC%9D%B4%20%EB%AC%B8%EC%A0%9C%EB%A5%BC%20%ED%95%B4%EA%B2%B0%ED%95%98%EA%B8%B0%20%EC%9C%84%ED%95%B4%20%ED%8F%AC%EB%9F%BC%EC%9D%B4%EB%82%98%20%EB%8F%84%EC%9B%80%EB%A7%90%20%EC%84%B9%EC%85%98%EC%97%90%EC%84%9C%20%EC%95%84%EB%AC%B4%20%EA%B2%83%EB%8F%84%20%EC%B0%BE%EC%9D%84%20%EC%88%98%EC%97%86%EB%8A%94%20%EA%B2%83%20%EA%B0%99%EC%8A%B5%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%EA%B8%B0%EB%B3%B8%EC%A0%81%EC%9C%BC%EB%A1%9C%20%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8%EB%8A%94%20%EC%9E%91%EC%84%B1%20%2F%20%EC%A0%80%EC%9E%A5%EB%90%9C%20%EC%88%9C%EC%84%9C%EB%8C%80%EB%A1%9C%20%EB%82%98%EC%97%B4%EB%90%A9%EB%8B%88%EB%8B%A4.%26nbsp%3B%20%EC%83%9D%EC%84%B1%20%ED%9B%84%20%EB%AA%A9%EB%A1%9D%EC%9D%84%20%EC%A0%95%EB%A0%AC%20%2F%20%EC%A1%B0%EC%A0%95%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%B4%20%EC%9E%88%EC%8A%B5%EB%8B%88%EA%B9%8C%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%EB%8F%84%EC%9B%80%EC%9D%84%20%EC%A3%BC%EC%85%94%EC%84%9C%20%EB%AF%B8%EB%A6%AC%20%EA%B0%90%EC%82%AC%EB%93%9C%EB%A6%BD%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-48556%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%20%3A%20%EB%8D%B0%EC%9D%B4%ED%84%B0%20%ED%85%8C%EC%9D%B4%EB%B8%94%EC%97%90%20%EC%A0%80%EC%9E%A5%EB%90%9C%20%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8%20%EB%AA%A9%EB%A1%9D%20%EC%9E%AC%EC%A0%95%EB%A0%AC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-48556%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%EC%96%B4%EB%96%A4%20%EC%9D%B4%EC%9C%A0%EB%A1%9C%20%EB%93%A0%20%EC%98%A4%EB%8A%98%20%EC%95%84%EC%B9%A8%20%EC%9D%BC%ED%95%98%EA%B8%B0%EB%A1%9C%20%EA%B2%B0%EC%A0%95%ED%96%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-48531%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%20%3A%20%EB%8D%B0%EC%9D%B4%ED%84%B0%20%ED%85%8C%EC%9D%B4%EB%B8%94%EC%97%90%20%EC%A0%80%EC%9E%A5%EB%90%9C%20%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8%20%EB%AA%A9%EB%A1%9D%20%EC%9E%AC%EC%A0%95%EB%A0%AC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-48531%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E64%20%EB%B9%84%ED%8A%B8%20%EC%9C%88%EB%8F%84%EC%9A%B0%EC%97%90%EC%84%9C%20JMP%2013.2.1%EC%9D%84%20%EC%8B%A4%ED%96%89%20%EC%A4%91%EC%9D%B4%EB%A9%B0%20%EC%9E%98%20%EC%9E%91%EB%8F%99%ED%95%A9%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-48530%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%20%3A%20%EB%8D%B0%EC%9D%B4%ED%84%B0%20%ED%85%8C%EC%9D%B4%EB%B8%94%EC%97%90%20%EC%A0%80%EC%9E%A5%EB%90%9C%20%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8%20%EB%AA%A9%EB%A1%9D%20%EC%9E%AC%EC%A0%95%EB%A0%AC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-48530%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EJMP%2013.2.1%20(64%20%EB%B9%84%ED%8A%B8)%EC%97%90%EC%84%9C%20%EC%9E%91%EB%8F%99%ED%95%98%EC%A7%80%20%EC%95%8A%EC%8A%B5%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-42531%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%20%3A%20%EB%8D%B0%EC%9D%B4%ED%84%B0%20%ED%85%8C%EC%9D%B4%EB%B8%94%EC%97%90%20%EC%A0%80%EC%9E%A5%EB%90%9C%20%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8%20%EB%AA%A9%EB%A1%9D%20%EC%9E%AC%EC%A0%95%EB%A0%AC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-42531%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%EB%8D%B0%EC%9D%B4%EB%B9%84%EB%93%9C%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%EC%9D%B4%EA%B2%83%EC%9D%80%20%EC%A0%95%ED%99%95%ED%9E%88%20%EB%82%B4%EA%B0%80%20%EC%95%8C%EC%95%84%20%EB%82%B4%EB%A0%A4%EA%B3%A0%20%EC%8B%9C%EB%8F%84%ED%95%9C%20%EA%B2%83%EC%9E%85%EB%8B%88%EB%8B%A4!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%EC%99%84%EC%A0%84%ED%95%9C.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%EA%B3%A0%EB%A7%99%EC%8A%B5%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%EB%8D%B0%EC%9D%B4%EB%B8%8C%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-42527%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%20%3A%20%EB%8D%B0%EC%9D%B4%ED%84%B0%20%ED%85%8C%EC%9D%B4%EB%B8%94%EC%97%90%20%EC%A0%80%EC%9E%A5%EB%90%9C%20%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8%20%EB%AA%A9%EB%A1%9D%20%EC%9E%AC%EC%A0%95%EB%A0%AC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-42527%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EJMP%EC%97%90%EC%84%9C%EB%8A%94%20%EB%8C%80%ED%99%94%EC%8B%9D%EC%9C%BC%EB%A1%9C%20%ED%85%8C%EC%9D%B4%EB%B8%94%20%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8%EB%A5%BC%20%EB%93%9C%EB%9E%98%EA%B7%B8%20%EC%95%A4%20%EB%93%9C%EB%A1%AD%ED%95%98%EC%97%AC%20%EB%8B%A4%EC%8B%9C%20%EC%A0%95%EB%A0%AC%ED%95%A9%EB%8B%88%EB%8B%A4.%20%26nbsp%3B%EB%8B%B9%EC%8B%A0%EC%9D%80%20%EA%B8%B4%20%ED%81%B4%EB%A6%AD%EC%9D%84%20%ED%95%9C%20%EB%8B%A4%EC%9D%8C%20%EB%81%8C%EB%A9%B4%20%EB%93%9C%EB%9E%98%EA%B7%B8%20%EB%8F%99%EC%9E%91%EC%9D%B4%20%EC%97%AC%EB%9F%AC%20%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8%EB%A5%BC%20%EC%84%A0%ED%83%9D%ED%95%98%EA%B8%B0%20%EB%A7%8C%ED%95%98%EB%A9%B4%EB%90%A9%EB%8B%88%EB%8B%A4.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%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%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-42523%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%20%3A%20%EB%8D%B0%EC%9D%B4%ED%84%B0%20%ED%85%8C%EC%9D%B4%EB%B8%94%EC%97%90%20%EC%A0%80%EC%9E%A5%EB%90%9C%20%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8%20%EB%AA%A9%EB%A1%9D%20%EC%9E%AC%EC%A0%95%EB%A0%AC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-42523%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%ED%85%8C%EC%9D%B4%EB%B8%94%20%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8%EB%A5%BC%20%EC%9E%AC%EC%A0%95%EB%A0%AC%ED%95%98%EB%8A%94%20%EA%B0%84%EB%8B%A8%ED%95%9C%20%EB%B0%A9%EB%B2%95%EC%9D%84%20%EC%95%8C%EC%A7%80%20%EB%AA%BB%ED%95%A9%EB%8B%88%EB%8B%A4.%20%26nbsp%3B%EA%B7%B8%EB%9F%AC%EB%82%98%2C%20%EC%95%84%EB%9E%98%EC%97%90%20%EC%A3%BC%EC%96%B4%EC%A7%84%20%EB%8D%B0%EC%9D%B4%ED%84%B0%20%ED%85%8C%EC%9D%B4%EB%B8%94%EC%9D%98%20%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8%EB%A5%BC%20%EC%98%81%EB%AC%B8%EC%9E%90%20%EC%88%9C%EC%9C%BC%EB%A1%9C%20%EC%A0%95%EB%A0%AC%ED%95%98%EB%8A%94%20%EA%B0%84%EB%8B%A8%ED%95%9C%20%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8%EA%B0%80%20%EB%82%98%EC%99%80%20%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%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.