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%3EReordenar%20la%20lista%20de%20scripts%20guardada%20en%20una%20tabla%20de%20datos%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-42522%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHe%20creado%20un%20conjunto%20de%20scripts%20para%20una%20tabla%20de%20datos%20dada%20y%20ahora%20me%20gustar%C3%ADa%20%22reordenar%22%20los%20scripts%20tal%20como%20aparecen%20en%20el%20%C3%A1rea%20superior%20izquierda%20de%20la%20vista%20de%20la%20tabla%20de%20datos.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EParece%20que%20no%20puedo%20encontrar%20nada%20en%20los%20foros%20o%20en%20la%20secci%C3%B3n%20de%20Ayuda%20para%20solucionar%20esto.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EB%C3%A1sicamente%2C%20los%20scripts%20se%20enumeran%20en%20el%20orden%20en%20que%20fueron%20creados%20%2F%20guardados.%26nbsp%3B%20%C2%BFExiste%20un%20m%C3%A9todo%20para%20ordenar%20%2F%20ajustar%20la%20lista%20despu%C3%A9s%20de%20la%20creaci%C3%B3n%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGracias%20de%20antemano%20por%20cualquier%20ayuda.%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%3A%20Reordenar%20la%20lista%20de%20scripts%20guardada%20en%20una%20tabla%20de%20datos%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-48556%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EBueno%2C%20por%20la%20raz%C3%B3n%20que%20sea%2C%20decidi%C3%B3%20trabajar%20esta%20ma%C3%B1ana.%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%3A%20Reordenar%20la%20lista%20de%20scripts%20guardada%20en%20una%20tabla%20de%20datos%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-48531%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EEstoy%20ejecutando%20JMP%2013.2.1%20en%20Windows%20de%2064%20bits%20y%20funciona%20bien%20para%20m%C3%AD.%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%3A%20Reordenar%20la%20lista%20de%20scripts%20guardada%20en%20una%20tabla%20de%20datos%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-48530%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ENo%20veo%20esto%20funcionando%20en%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%3ERe%3A%20Reordenar%20la%20lista%20de%20scripts%20guardada%20en%20una%20tabla%20de%20datos%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%3E%C2%A1Esto%20es%20exactamente%20lo%20que%20estaba%20tratando%20de%20averiguar!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPerfecto.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMuchas%20gracias.%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%3ERe%3A%20Reordenar%20la%20lista%20de%20scripts%20guardada%20en%20una%20tabla%20de%20datos%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-42527%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EInteractivamente%20en%20JMP%2C%20arrastre%20y%20suelte%20los%20scripts%20de%20la%20tabla%20para%20reordenarlos.%20%26nbsp%3BUsted%20tiene%20que%20hacer%20un%20clic%20largo%20y%20luego%20arrastrar%2C%20de%20lo%20contrario%20el%20movimiento%20de%20arrastre%20simplemente%20seleccionar%C3%A1%20m%C3%BAltiples%20scripts.%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%3A%20Reordenar%20la%20lista%20de%20scripts%20guardada%20en%20una%20tabla%20de%20datos%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-42523%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ENo%20tengo%20conocimiento%20de%20ninguna%20forma%20sencilla%20de%20reordenar%20los%20scripts%20de%20tabla.%20%26nbsp%3BSin%20embargo%2C%20a%20continuaci%C3%B3n%20hay%20un%20script%20simple%20que%20junt%C3%A9%20que%20ordenar%C3%A1%20alfab%C3%A9ticamente%20los%20scripts%20en%20una%20tabla%20de%20datos%20dada.%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.