cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
%3CLINGO-SUB%20id%3D%22lingo-sub-798174%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3Eelimina%20colonna%3A%20modalit%C3%A0%20provvisoria%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-798174%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CP%3E%E2%98%91%20nuova%20fantastica%20funzionalit%C3%A0%3CBR%20%2F%3E%20%E2%98%91%20potrebbe%20aiutare%20molti%20utenti!%3C%2FP%3E%3CP%3E%E2%98%91%20rimuove%20qualcosa%20che%20sembra%20un%20%22insetto%22%3C%2FP%3E%3CP%3E%E2%98%90%20bello%20da%20avere%3C%2FP%3E%3CP%3E%E2%98%90%20nessuno%20ne%20ha%20bisogno%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CBR%20%2F%3E%3CBR%20%2F%3ECosa%20ti%20ha%20ispirato%20a%20richiedere%20questa%20lista%20dei%20desideri%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EQuando%20un%20utente%20rinomina%20una%20colonna%2C%20gli%20script%20della%20tabella%20vengono%20aggiornati%20automaticamente.%3C%2FP%3E%3CP%3EQuando%20un%20utente%20%3CU%3Eelimina%3C%2FU%3E%20una%20colonna%20utilizzata%20in%20uno%20script%20di%20tabella%2C%20JMP%20avvisa%20l'utente%20se%20la%20colonna%20%C3%A8%20utilizzata%20in%20formule%20di%20colonna.%3CBR%20%2F%3E%20Ma%20uno%20script%20da%20tabella%20morir%C3%A0%20senza%20preavviso.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3Ea)%20ci%20vuole%20molto%20tempo%20prima%20che%20l'utente%20scopra%20perch%C3%A9%20lo%20script%20della%20tabella%20non%20funziona%20pi%C3%B9.%3C%2FP%3E%3CP%3Eb)%20ci%20vuole%20un%20certo%20sforzo%20per%20creare%20nuovamente%20la%20colonna%20(caso%20peggiore%3A%20non%20%C3%A8%20possibile%20creare%20nuovamente%20la%20colonna)%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%3CSTRONG%3EQuale%20miglioramento%20vorresti%20vedere%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EPrima%20di%20eliminare%20una%20colonna%2C%20controlla%20se%20la%20colonna%20%C3%A8%20utilizzata%20in%20uno%20script%20di%20tabella%20e%20mostra%20un%20avviso.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(%201%20)%3B%0A%0ACurrent%20Data%20Table()%20%26lt%3B%26lt%3B%20copy%20table%20script(%20%22no%20data%22%20)%3B%0AtableScript%20%3D%20Eval(%20Eval%20Expr(%20Parse(%20Expr(%20Get%20Clipboard()%20)%20)%20)%20)%3B%0A%0Acol_names%20%3D%20Current%20Data%20Table()%20%26lt%3B%26lt%3B%20Get%20Selected%20Columns()%3B%0A%0AtableScriptList%20%3D%20Substitute(%20Name%20Expr(%20tableScript%20)%2C%20Expr(%20New%20Table()%20)%2C%20Expr(%20List()%20)%20)%3B%0AtableScriptList%20%3D%20Filter%20Each(%20%7Bpart%7D%2C%20tableScriptList%2C%20Head(%20Part%20)%20%3D%3D%20Expr(%20New%20Script()%20)%20)%3B%0A%09%0Afound%20%3D%200%3B%0AFor%20Each(%20%7Bcol%7D%2C%20col_names%2C%0A%09For%20Each(%20%7BmyScript%7D%2C%20tableScriptList%2C%20%0A%0A%09%09If(%20Not(%20Is%20Empty(%20Eval(%20Eval%20Expr(%20Extract%20Expr(%20myScript%2C%20Expr(%20Name%20Expr(%20col%20)%20)%20)%20)%20)%20)%20)%2C%0A%09%09%09Caption(%20%7B100%2C%20200%7D%2C%20%22column%20%5C!%22%22%20%7C%7C%20(col%20%26lt%3B%26lt%3B%20get%20name())%20%7C%7C%20%22%5C!%22%20found%20in%20script%3A%20%5C!n%22%20%7C%7C%20Arg(%20myScript%2C%201%20)%20)%3B%0A%09%09%09found%20%3D%201%3B%0A%09%09%09print(%22found!!!%22)%3B%0A%09%09%09Wait(%201%20)%3B%0A%09%09)%0A%09)%0A)%3B%0A%0AIf(%20Not(%20found%20)%2C%0A%09Caption(%20%7B100%2C%20200%7D%2C%20%22no%20column%20found.%5C!N%20-%26gt%3Bcols%20can%20be%20deleted%22%20)%3B%0A%09Wait(%201%20)%3B%0A)%3B%0ACaption(%20remove%20)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%3CSTRONG%3EPerch%C3%A9%20questa%20idea%20%C3%A8%20importante%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EImmaginate%20quanti%20utenti%20JMP%20hanno%20distrutto%20uno%20script%20di%20tabella%20eliminando%20%22accidentalmente%22%20una%20colonna.%3CBR%20%2F%3E%20Passare%20alla%20%22modalit%C3%A0%20provvisoria%22%20salver%C3%A0%20molti%20utenti%20dallo%20stesso%20problema.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fforums%2Fsearchpage%2Ftab%2Fmessage%3Ffilter%3Dlocation%2CauthorId%26amp%3Bq%3Dfeature%26amp%3Blocation%3Didea-board%3Ajmp-wish-list%26amp%3Bauthor_id%3D26800%22%20target%3D%22_self%22%3Ealtri%20desideri%20da%3C%2FA%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hogi_0-1726130690639.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_0-1726130690639.png%22%20style%3D%22width%3A%2036px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_0-1726130690639.png%22%20style%3D%22width%3A%2036px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F68173i3455A88E196A5A29%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22hogi_0-1726130690639.png%22%20alt%3D%22hogi_0-1726130690639.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-798174%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CLINGO-LABEL%3EAutomazione%20e%20scripting%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAccesso%20ai%20dati%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFusione%20e%20pulizia%20dei%20dati%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-800944%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20elimina%20colonna%3A%20modalit%C3%A0%20provvisoria%20-%20Stato%20modificato%20in%3A%20Riconosciuto%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-800944%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
0 Kudos

delete column: safe mode

☑ cool new feature
☑ could help many users!

☑ removes something that feels like a „bug“

☐ nice to have

☐ nobody needs it



What inspired this wish list request? 

When a user renames a column, Table Scripts get automatically updated.

When a user deletes a column which is used in a table script, JMP warns the user if the column is used in column formulas.
But a table script will die without notice.

 

a) it takes a long time for the user to find out why the table script is dead.

b) it takes some effort to create the column again (worst case: not possible to create the column again)

 

What is the improvement you would like to see? 

Before deleting a column, please check if the column is used in a table script - and show a warning.

 

Names Default To Here( 1 );

Current Data Table() << copy table script( "no data" );
tableScript = Eval( Eval Expr( Parse( Expr( Get Clipboard() ) ) ) );

col_names = Current Data Table() << Get Selected Columns();

tableScriptList = Substitute( Name Expr( tableScript ), Expr( New Table() ), Expr( List() ) );
tableScriptList = Filter Each( {part}, tableScriptList, Head( Part ) == Expr( New Script() ) );
	
found = 0;
For Each( {col}, col_names,
	For Each( {myScript}, tableScriptList, 

		If( Not( Is Empty( Eval( Eval Expr( Extract Expr( myScript, Expr( Name Expr( col ) ) ) ) ) ) ),
			Caption( {100, 200}, "column \!"" || (col << get name()) || "\!" found in script: \!n" || Arg( myScript, 1 ) );
			found = 1;
			print("found!!!");
			Wait( 1 );
		)
	)
);

If( Not( found ),
	Caption( {100, 200}, "no column found.\!N ->cols can be deleted" );
	Wait( 1 );
);
Caption( remove )

 

Why is this idea important? 

Just imagine how many JMP users killed a table script by "accidentally" deleting a column.
switching to "safe mode" will safe many users from the same issue.

 

 

other wishes from hogi_0-1726130690639.png

 

 

1 Comment
Status changed to: Acknowledged