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%3ERiordinare%20l'elenco%20degli%20script%20salvato%20in%20una%20tabella%20dati%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-42522%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHo%20creato%20una%20serie%20di%20script%20per%20una%20data%20tabella%20di%20dati%20e%20ora%20vorrei%20%22riordinare%22%20gli%20script%20cos%C3%AC%20come%20appaiono%20nell'area%20in%20alto%20a%20sinistra%20della%20vista%20Tabella%20dati.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENon%20riesco%20a%20trovare%20nulla%20sul%20forum%20o%20nella%20sezione%20Aiuto%20per%20affrontare%20questo.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFondamentalmente%20gli%20script%20sono%20elencati%20nell'ordine%20in%20cui%20sono%20stati%20creati%20%2F%20salvati.%26nbsp%3B%20Esiste%20un%20metodo%20per%20ordinare%20%2F%20modificare%20l'elenco%20dopo%20la%20creazione%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGrazie%20in%20anticipo%20per%20qualsiasi%20assistenza.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-48556%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20riordinare%20l'elenco%20degli%20script%20salvato%20in%20una%20tabella%20dati%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-48556%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EBene%2C%20per%20qualsiasi%20motivo%2C%20ha%20deciso%20di%20lavorare%20stamattina.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-48531%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20riordinare%20l'elenco%20degli%20script%20salvato%20in%20una%20tabella%20dati%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-48531%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ESto%20eseguendo%20JMP%2013.2.1%20su%20finestre%20a%2064%20bit%20e%20funziona%20bene%20per%20me.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-48530%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20riordinare%20l'elenco%20degli%20script%20salvato%20in%20una%20tabella%20dati%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-48530%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ENon%20vedo%20che%20funzioni%20in%20JMP%2013.2.1%20(64%20bit)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-42531%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20riordinare%20l'elenco%20degli%20script%20salvato%20in%20una%20tabella%20dati%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-42531%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EDavid%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EQuesto%20%C3%A8%20esattamente%20quello%20che%20stavo%20cercando%20di%20capire!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPerfezionare.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGrazie%20mille.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDave%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-42527%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20riordinare%20l'elenco%20degli%20script%20salvato%20in%20una%20tabella%20dati%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-42527%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EInteragendo%20in%20JMP%20hai%20trascinato%20gli%20script%20della%20tabella%20per%20riordinarli.%20%26nbsp%3BDevi%20fare%20un%20lungo%20clic%20quindi%20trascinare%20altrimenti%20il%20movimento%20di%20trascinamento%20selezioner%C3%A0%20semplicemente%20pi%C3%B9%20script.%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%3ERi%3A%20riordinare%20l'elenco%20degli%20script%20salvato%20in%20una%20tabella%20dati%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-42523%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ENon%20sono%20a%20conoscenza%20di%20alcun%20modo%20semplice%20per%20riordinare%20gli%20script%20di%20tabella.%20%26nbsp%3BTuttavia%2C%20di%20seguito%20%C3%A8%20un%20semplice%20script%20che%20ho%20messo%20insieme%20che%20alfabeticamente%20ordinare%20gli%20script%20in%20una%20data%20tabella%20dei%20dati.%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.