cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
hogi
Level XIII

Variations of the SILENT IGNORE Trap

In some cases, JMP makes it very hard for a user (or AI) to debug the code.

from: https://community.jmp.com/t5/Discussions/AI-scripting-misleading-log/m-p/929994/highlight/true#M1086... 


 @Craige_Hales wrote:

objects ignore messages they don't understand 




2 REPLIES 2
hogi
Level XIII

Re: Variations of the SILENT IGNORE Trap

From the original post: AI scripting - misleading log ... 

dt = Open("$SAMPLE_DATA/Big Class.jmp");
kd = dt << KDTable("hello");
result = kd << K Nearest Rows(1, 3);print("finished");

JMP complains about line 3 : 

Object 'Data Table' does not recognize the message 'K Nearest Rows'

the actual error in line 2 is silently ignored.

hogi
Level XIII

Re: Variations of the SILENT IGNORE Trap

Move Table Script: 1st argument must NOT be a variable

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

script_name = "test";
dt << New Script( script_name, "1" );  //no issue with the variable
myGroupName = dt << group scripts( today_str, script_name );
// No issue with the variable - even without a list
dt << Move Selected scripts( script_name, after( "Distribution" ) );
//doesn't understand the variable -> silent ignore

 

Recommended Articles