cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
%3CLINGO-SUB%20id%3D%22lingo-sub-42522%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ER%C3%A9organisation%20de%20la%20liste%20de%20scripts%20enregistr%C3%A9e%20dans%20une%20table%20de%20donn%C3%A9es%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-42522%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EJ'ai%20cr%C3%A9%C3%A9%20un%20ensemble%20de%20scripts%20pour%20une%20table%20de%20donn%C3%A9es%20donn%C3%A9e%20et%20je%20voudrais%20maintenant%20%22r%C3%A9organiser%22%20les%20scripts%20tels%20qu'ils%20apparaissent%20dans%20la%20zone%20sup%C3%A9rieure%20gauche%20de%20la%20vue%20Table%20de%20donn%C3%A9es.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJe%20n'arrive%20pas%20%C3%A0%20trouver%20quoi%20que%20ce%20soit%20sur%20les%20forums%20ou%20dans%20la%20section%20Aide%20pour%20r%C3%A9soudre%20ce%20probl%C3%A8me.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFondamentalement%2C%20les%20scripts%20sont%20r%C3%A9pertori%C3%A9s%20dans%20l'ordre%20dans%20lequel%20ils%20ont%20%C3%A9t%C3%A9%20cr%C3%A9%C3%A9s%2Fenregistr%C3%A9s.Existe-t-il%20une%20m%C3%A9thode%20pour%20trier%2Fajuster%20la%20liste%20apr%C3%A8s%20cr%C3%A9ation%26nbsp%3B%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMerci%20d'avance%20pour%20toute%20aide.%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%26nbsp%3B%3A%20R%C3%A9organiser%20la%20liste%20des%20scripts%20enregistr%C3%A9s%20dans%20une%20table%20de%20donn%C3%A9es%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-48556%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EEh%20bien%2C%20pour%20une%20raison%20quelconque%2C%20il%20a%20d%C3%A9cid%C3%A9%20de%20travailler%20ce%20matin.%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%26nbsp%3B%3A%20R%C3%A9organiser%20la%20liste%20des%20scripts%20enregistr%C3%A9s%20dans%20une%20table%20de%20donn%C3%A9es%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-48531%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EJ'utilise%20JMP%2013.2.1%20sur%20des%20fen%C3%AAtres%2064%20bits%20et%20cela%20fonctionne%20bien%20pour%20moi.%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%26nbsp%3B%3A%20R%C3%A9organiser%20la%20liste%20des%20scripts%20enregistr%C3%A9s%20dans%20une%20table%20de%20donn%C3%A9es%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-48530%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EJe%20ne%20vois%20pas%20cela%20fonctionner%20dans%20JMP%2013.2.1%20(64%20bits)%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%26nbsp%3B%3A%20R%C3%A9organiser%20la%20liste%20des%20scripts%20enregistr%C3%A9s%20dans%20une%20table%20de%20donn%C3%A9es%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%3EC'est%20exactement%20ce%20que%20j'essayais%20de%20comprendre%20!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EParfait.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMerci%20beaucoup.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDavid%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%26nbsp%3B%3A%20R%C3%A9organiser%20la%20liste%20des%20scripts%20enregistr%C3%A9s%20dans%20une%20table%20de%20donn%C3%A9es%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-42527%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EDe%20mani%C3%A8re%20interactive%20dans%20JMP%2C%20vous%20pouvez%20faire%20glisser%20et%20d%C3%A9poser%20les%20scripts%20de%20table%20pour%20les%20r%C3%A9organiser.%20Vous%20devez%20faire%20un%20clic%20long%20puis%20glisser%2C%20sinon%20le%20mouvement%20de%20glisser%20s%C3%A9lectionnera%20simplement%20plusieurs%20scripts.%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%3ERe%26nbsp%3B%3A%20R%C3%A9organiser%20la%20liste%20des%20scripts%20enregistr%C3%A9s%20dans%20une%20table%20de%20donn%C3%A9es%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-42523%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EJe%20ne%20connais%20aucun%20moyen%20simple%20de%20r%C3%A9organiser%20les%20scripts%20de%20table.%20Cependant%2C%20vous%20trouverez%20ci-dessous%20un%20script%20simple%20que%20j'ai%20cr%C3%A9%C3%A9%20et%20qui%20triera%20par%20ordre%20alphab%C3%A9tique%20les%20scripts%20dans%20une%20table%20de%20donn%C3%A9es%20donn%C3%A9e.%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.