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%E5%88%97%E3%82%92%E5%89%8A%E9%99%A4%3A%20%E3%82%BB%E3%83%BC%E3%83%95%E3%83%A2%E3%83%BC%E3%83%89%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%E3%82%AF%E3%83%BC%E3%83%AB%E3%81%AA%E6%96%B0%E6%A9%9F%E8%83%BD%3CBR%20%2F%3E%E2%98%91%20%E5%A4%9A%E3%81%8F%E3%81%AE%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E3%81%AB%E5%BD%B9%E7%AB%8B%E3%81%A4%E5%8F%AF%E8%83%BD%E6%80%A7%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99!%3C%2FP%3E%3CP%3E%E2%98%91%20%E3%80%8C%E3%83%90%E3%82%B0%E3%80%8D%E3%81%AE%E3%82%88%E3%81%86%E3%81%AB%E6%84%9F%E3%81%98%E3%82%89%E3%82%8C%E3%82%8B%E3%82%82%E3%81%AE%E3%82%92%E5%89%8A%E9%99%A4%E3%81%97%E3%81%BE%E3%81%99%3C%2FP%3E%3CP%3E%E2%98%90%20%E3%81%82%E3%82%8C%E3%81%B0%E4%BE%BF%E5%88%A9%3C%2FP%3E%3CP%3E%E2%98%90%20%E8%AA%B0%E3%82%82%E3%81%9D%E3%82%8C%E3%82%92%E5%BF%85%E8%A6%81%E3%81%A8%E3%81%97%E3%81%AA%E3%81%84%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%E3%81%93%E3%81%AE%E3%82%A6%E3%82%A3%E3%83%83%E3%82%B7%E3%83%A5%E3%83%AA%E3%82%B9%E3%83%88%E3%81%AE%E3%83%AA%E3%82%AF%E3%82%A8%E3%82%B9%E3%83%88%E3%81%AE%E3%81%8D%E3%81%A3%E3%81%8B%E3%81%91%E3%81%AF%E4%BD%95%E3%81%A7%E3%81%99%E3%81%8B%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E3%81%8C%E5%88%97%E3%81%AE%E5%90%8D%E5%89%8D%E3%82%92%E5%A4%89%E6%9B%B4%E3%81%99%E3%82%8B%E3%81%A8%E3%80%81%E3%83%86%E3%83%BC%E3%83%96%E3%83%AB%20%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%81%8C%E8%87%AA%E5%8B%95%E7%9A%84%E3%81%AB%E6%9B%B4%E6%96%B0%E3%81%95%E3%82%8C%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E3%81%8C%E3%83%86%E3%83%BC%E3%83%96%E3%83%AB%20%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%81%A7%E4%BD%BF%E7%94%A8%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%82%8B%E5%88%97%3CU%3E%E3%82%92%E5%89%8A%E9%99%A4%E3%81%99%E3%82%8B%3C%2FU%3E%E3%81%A8%E3%80%81%E3%81%9D%E3%81%AE%E5%88%97%E3%81%8C%E5%88%97%E3%81%AE%E5%BC%8F%E3%81%A7%E4%BD%BF%E7%94%A8%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%82%8B%E5%A0%B4%E5%90%88%E3%81%AF%20JMP%20%E3%81%AB%E3%82%88%E3%81%A3%E3%81%A6%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E3%81%AB%E8%AD%A6%E5%91%8A%E3%81%8C%E8%A1%A8%E7%A4%BA%E3%81%95%E3%82%8C%E3%81%BE%E3%81%99%E3%80%82%3CBR%20%2F%3E%E3%81%97%E3%81%8B%E3%81%97%E3%80%81%E3%83%86%E3%83%BC%E3%83%96%E3%83%AB%20%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%81%AF%E4%BA%88%E5%91%8A%E3%81%AA%E3%81%97%E3%81%AB%E7%B5%82%E4%BA%86%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3Ea)%20%E3%83%86%E3%83%BC%E3%83%96%E3%83%AB%20%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%81%8C%E6%A9%9F%E8%83%BD%E3%81%97%E3%81%A6%E3%81%84%E3%81%AA%E3%81%84%E7%90%86%E7%94%B1%E3%82%92%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E3%81%8C%E6%8A%8A%E6%8F%A1%E3%81%99%E3%82%8B%E3%81%AB%E3%81%AF%E9%95%B7%E3%81%84%E6%99%82%E9%96%93%E3%81%8C%E3%81%8B%E3%81%8B%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3Eb)%20%E5%88%97%E3%82%92%E5%86%8D%E5%BA%A6%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B%E3%81%AB%E3%81%AF%E5%A4%9A%E5%B0%91%E3%81%AE%E6%89%8B%E9%96%93%E3%81%8C%E3%81%8B%E3%81%8B%E3%82%8A%E3%81%BE%E3%81%99%20(%E6%9C%80%E6%82%AA%E3%81%AE%E5%A0%B4%E5%90%88%3A%20%E5%88%97%E3%82%92%E5%86%8D%E5%BA%A6%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%81%AF%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%9B%E3%82%93)%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%3CSTRONG%3E%E3%81%A9%E3%81%AE%E3%82%88%E3%81%86%E3%81%AA%E6%94%B9%E5%96%84%E3%82%92%E6%9C%9B%E3%81%BF%E3%81%BE%E3%81%99%E3%81%8B%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%E5%88%97%E3%82%92%E5%89%8A%E9%99%A4%E3%81%99%E3%82%8B%E5%89%8D%E3%81%AB%E3%80%81%E3%81%9D%E3%81%AE%E5%88%97%E3%81%8C%E3%83%86%E3%83%BC%E3%83%96%E3%83%AB%20%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%81%A7%E4%BD%BF%E7%94%A8%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%82%8B%E3%81%8B%E3%81%A9%E3%81%86%E3%81%8B%E3%82%92%E7%A2%BA%E8%AA%8D%E3%81%97%E3%80%81%E8%AD%A6%E5%91%8A%E3%82%92%E8%A1%A8%E7%A4%BA%E3%81%97%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82%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%E3%81%93%E3%81%AE%E3%82%A2%E3%82%A4%E3%83%87%E3%82%A2%E3%81%AF%E3%81%AA%E3%81%9C%E9%87%8D%E8%A6%81%E3%81%AA%E3%81%AE%E3%81%A7%E3%81%97%E3%82%87%E3%81%86%E3%81%8B%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%E3%81%A9%E3%82%8C%E3%81%BB%E3%81%A9%E5%A4%9A%E3%81%8F%E3%81%AE%20JMP%20%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E3%81%8C%E3%80%8C%E8%AA%A4%E3%81%A3%E3%81%A6%E3%80%8D%E5%88%97%E3%82%92%E5%89%8A%E9%99%A4%E3%81%97%E3%81%A6%E3%83%86%E3%83%BC%E3%83%96%E3%83%AB%20%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%82%92%E7%B5%82%E4%BA%86%E3%81%97%E3%81%9F%E3%81%8B%E6%83%B3%E5%83%8F%E3%81%97%E3%81%A6%E3%81%BF%E3%81%A6%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82%3CBR%20%2F%3E%20%E3%80%8C%E3%82%BB%E3%83%BC%E3%83%95%E3%83%A2%E3%83%BC%E3%83%89%E3%80%8D%E3%81%AB%E5%88%87%E3%82%8A%E6%9B%BF%E3%81%88%E3%82%8B%E3%81%A8%E3%80%81%E5%A4%9A%E3%81%8F%E3%81%AE%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E3%81%8C%E5%90%8C%E3%81%98%E5%95%8F%E9%A1%8C%E3%81%8B%E3%82%89%E5%AE%88%E3%82%89%E3%82%8C%E3%81%BE%E3%81%99%E3%80%82%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%E3%81%9D%E3%81%AE%E4%BB%96%E3%81%AE%E5%B8%8C%E6%9C%9B%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%E8%87%AA%E5%8B%95%E5%8C%96%E3%81%A8%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%E3%83%87%E3%83%BC%E3%82%BF%E3%82%A2%E3%82%AF%E3%82%BB%E3%82%B9%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%E3%83%87%E3%83%BC%E3%82%BF%E3%81%AE%E3%83%96%E3%83%AC%E3%83%B3%E3%83%89%E3%81%A8%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%A2%E3%83%83%E3%83%97%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%E5%88%97%E3%81%AE%E5%89%8A%E9%99%A4%3A%20%E3%82%BB%E3%83%BC%E3%83%95%20%E3%83%A2%E3%83%BC%E3%83%89%20-%20%E3%82%B9%E3%83%86%E3%83%BC%E3%82%BF%E3%82%B9%E3%81%8C%E3%80%8C%E7%A2%BA%E8%AA%8D%E6%B8%88%E3%81%BF%E3%80%8D%E3%81%AB%E5%A4%89%E6%9B%B4%E3%81%95%E3%82%8C%E3%81%BE%E3%81%97%E3%81%9F%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