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%3ESpalte%20l%C3%B6schen%3A%20abgesicherter%20Modus%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%20coole%20neue%20Funktion%3CBR%20%2F%3E%20%E2%98%91%20k%C3%B6nnte%20vielen%20Benutzern%20helfen!%3C%2FP%3E%3CP%3E%E2%98%91%20entfernt%20etwas%2C%20das%20sich%20wie%20ein%20%E2%80%9EBug%E2%80%9C%20anf%C3%BChlt%3C%2FP%3E%3CP%3E%E2%98%90%20sch%C3%B6n%20zu%20haben%3C%2FP%3E%3CP%3E%E2%98%90%20niemand%20braucht%20es%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CBR%20%2F%3E%3CBR%20%2F%3EWas%20hat%20Sie%20zu%20dieser%20Wunschliste%20inspiriert%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EWenn%20ein%20Benutzer%20eine%20Spalte%20umbenennt%2C%20werden%20Tabellenskripte%20automatisch%20aktualisiert.%3C%2FP%3E%3CP%3EWenn%20ein%20Benutzer%20eine%20Spalte%20%3CU%3El%C3%B6scht%3C%2FU%3E%20%2C%20die%20in%20einem%20Tabellenskript%20verwendet%20wird%2C%20warnt%20JMP%20den%20Benutzer%2C%20wenn%20die%20Spalte%20in%20Spaltenformeln%20verwendet%20wird.%3CBR%20%2F%3E%20Aber%20ein%20Tabellenskript%20stirbt%20ohne%20Vorank%C3%BCndigung.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3Ea)%20Es%20dauert%20lange%2C%20bis%20der%20Benutzer%20herausfindet%2C%20warum%20das%20Tabellenskript%20tot%20ist.%3C%2FP%3E%3CP%3Eb)%20das%20erneute%20Erstellen%20der%20Spalte%20ist%20mit%20einigem%20Aufwand%20verbunden%20(im%20schlimmsten%20Fall%20ist%20das%20erneute%20Erstellen%20der%20Spalte%20nicht%20m%C3%B6glich)%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%3CSTRONG%3EWelche%20Verbesserung%20w%C3%BCrden%20Sie%20gerne%20sehen%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EBitte%20pr%C3%BCfen%20Sie%20vor%20dem%20L%C3%B6schen%20einer%20Spalte%2C%20ob%20die%20Spalte%20in%20einem%20Tabellenskript%20verwendet%20wird%20%E2%80%93%20und%20zeigen%20Sie%20eine%20Warnung%20an.%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%3EWarum%20ist%20diese%20Idee%20wichtig%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EStellen%20Sie%20sich%20vor%2C%20wie%20viele%20JMP-Benutzer%20ein%20Tabellenskript%20zerst%C3%B6rt%20haben%2C%20indem%20sie%20%E2%80%9Eversehentlich%E2%80%9C%20eine%20Spalte%20gel%C3%B6scht%20haben.%3CBR%20%2F%3E%20Der%20Wechsel%20in%20den%20%E2%80%9Eabgesicherten%20Modus%E2%80%9C%20erspart%20vielen%20Benutzern%20das%20gleiche%20Problem.%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%3Eweitere%20W%C3%BCnsche%20von%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%3EAutomatisierung%20und%20Skripting%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDatenzugriff%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDatenzusammenf%C3%BChrung%20und%20-bereinigung%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%3EBetreff%3A%20Spalte%20l%C3%B6schen%3A%20abgesicherter%20Modus%20-%20Status%20ge%C3%A4ndert%20in%3A%20Best%C3%A4tigt%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