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%3E%EC%97%B4%20%EC%82%AD%EC%A0%9C%3A%20%EC%95%88%EC%A0%84%20%EB%AA%A8%EB%93%9C%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%20%EB%A9%8B%EC%A7%84%20%EC%83%88%EB%A1%9C%EC%9A%B4%20%EA%B8%B0%EB%8A%A5%3CBR%20%2F%3E%20%E2%98%91%20%EB%A7%8E%EC%9D%80%20%EC%82%AC%EC%9A%A9%EC%9E%90%EC%97%90%EA%B2%8C%20%EB%8F%84%EC%9B%80%EC%9D%B4%20%EB%90%A0%20%EC%88%98%20%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4!%3C%2FP%3E%3CP%3E%E2%98%91%20%22%EB%B2%84%EA%B7%B8%22%EC%B2%98%EB%9F%BC%20%EB%8A%90%EA%BB%B4%EC%A7%80%EB%8A%94%20%EA%B2%83%EC%9D%84%20%EC%A0%9C%EA%B1%B0%ED%95%A9%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3CP%3E%E2%98%90%20%EC%9E%88%EC%9C%BC%EB%A9%B4%20%EC%A2%8B%EB%8B%A4%3C%2FP%3E%3CP%3E%E2%98%90%20%EC%95%84%EB%AC%B4%EB%8F%84%20%ED%95%84%EC%9A%94%ED%95%98%EC%A7%80%20%EC%95%8A%EC%95%84%EC%9A%94%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%EC%9D%B4%EB%9F%AC%ED%95%9C%20%EC%9C%84%EC%8B%9C%EB%A6%AC%EC%8A%A4%ED%8A%B8%20%EC%9A%94%EC%B2%AD%EC%9D%84%20%ED%95%98%EA%B2%8C%20%EB%90%9C%20%EA%B3%84%EA%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20%3C%2FP%3E%3CP%3Ea)%20%EC%82%AC%EC%9A%A9%EC%9E%90%EA%B0%80%20%ED%85%8C%EC%9D%B4%EB%B8%94%20%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8%EA%B0%80%20%EC%9E%91%EB%8F%99%ED%95%98%EC%A7%80%20%EC%95%8A%EB%8A%94%20%EC%9D%B4%EC%9C%A0%EB%A5%BC%20%EC%95%8C%EC%95%84%EB%82%B4%EB%8A%94%20%EB%8D%B0%20%EC%8B%9C%EA%B0%84%EC%9D%B4%20%EC%98%A4%EB%9E%98%20%EA%B1%B8%EB%A6%BD%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3CP%3Eb)%20%EC%97%B4%EC%9D%84%20%EB%8B%A4%EC%8B%9C%20%EC%83%9D%EC%84%B1%ED%95%98%EB%8A%94%20%EB%8D%B0%20%EC%95%BD%EA%B0%84%EC%9D%98%20%EB%85%B8%EB%A0%A5%EC%9D%B4%20%ED%95%84%EC%9A%94%ED%95%A9%EB%8B%88%EB%8B%A4(%EC%B5%9C%EC%95%85%EC%9D%98%20%EA%B2%BD%EC%9A%B0%3A%20%EC%97%B4%EC%9D%84%20%EB%8B%A4%EC%8B%9C%20%EC%83%9D%EC%84%B1%ED%95%A0%20%EC%88%98%20%EC%97%86%EC%9D%8C)%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%3CSTRONG%3E%EC%96%B4%EB%96%A4%20%EA%B0%9C%EC%84%A0%EC%9D%84%20%EC%9B%90%ED%95%98%EC%8B%9C%EB%82%98%EC%9A%94%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%EC%97%B4%EC%9D%84%20%EC%82%AD%EC%A0%9C%ED%95%98%EA%B8%B0%20%EC%A0%84%EC%97%90%20%ED%95%B4%EB%8B%B9%20%EC%97%B4%EC%9D%B4%20%ED%85%8C%EC%9D%B4%EB%B8%94%20%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8%EC%97%90%EC%84%9C%20%EC%82%AC%EC%9A%A9%EB%90%98%EB%8A%94%EC%A7%80%20%ED%99%95%EC%9D%B8%ED%95%98%EA%B3%A0%20%EA%B2%BD%EA%B3%A0%EB%A5%BC%20%ED%91%9C%EC%8B%9C%ED%95%98%EC%84%B8%EC%9A%94.%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%3E%EC%99%9C%20%EC%9D%B4%20%EC%95%84%EC%9D%B4%EB%94%94%EC%96%B4%EA%B0%80%20%EC%A4%91%EC%9A%94%ED%95%9C%EA%B0%80%EC%9A%94%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EJMP%20%EC%82%AC%EC%9A%A9%EC%9E%90%EA%B0%80%20%22%EC%8B%A4%EC%88%98%EB%A1%9C%22%20%EC%97%B4%EC%9D%84%20%EC%82%AD%EC%A0%9C%ED%95%98%EC%97%AC%20%ED%85%8C%EC%9D%B4%EB%B8%94%20%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8%EB%A5%BC%20%EC%A3%BD%EC%9D%B8%20%EC%A0%81%EC%9D%B4%20%EC%96%BC%EB%A7%88%EB%82%98%20%EB%A7%8E%EC%95%98%EB%8A%94%EC%A7%80%20%EC%83%81%EC%83%81%ED%95%B4%20%EB%B3%B4%EC%84%B8%EC%9A%94.%3CBR%20%2F%3E%20%22%EC%95%88%EC%A0%84%20%EB%AA%A8%EB%93%9C%22%EB%A1%9C%20%EC%A0%84%ED%99%98%ED%95%98%EB%A9%B4%20%EB%A7%8E%EC%9D%80%20%EC%82%AC%EC%9A%A9%EC%9E%90%EA%B0%80%20%EB%8F%99%EC%9D%BC%ED%95%9C%20%EB%AC%B8%EC%A0%9C%EB%A1%9C%EB%B6%80%ED%84%B0%20%EC%95%88%EC%A0%84%ED%95%B4%EC%A7%88%20%EC%88%98%20%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%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%3E%EB%8B%A4%EB%A5%B8%20%EC%86%8C%EC%9B%90%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%3E%EC%9E%90%EB%8F%99%ED%99%94%20%EB%B0%8F%20%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8C%85%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%EB%8D%B0%EC%9D%B4%ED%84%B0%20%EC%A0%91%EA%B7%BC%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%EB%8D%B0%EC%9D%B4%ED%84%B0%20%EB%B8%94%EB%A0%8C%EB%94%A9%20%EB%B0%8F%20%EC%A0%95%EB%A6%AC%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%20%EC%97%B4%20%EC%82%AD%EC%A0%9C%3A%20%EC%95%88%EC%A0%84%20%EB%AA%A8%EB%93%9C%20-%20%EC%83%81%ED%83%9C%EA%B0%80%20%EB%8B%A4%EC%9D%8C%EC%9C%BC%EB%A1%9C%20%EB%B3%80%EA%B2%BD%EB%90%A8%3A%20%ED%99%95%EC%9D%B8%EB%90%A8%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