cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
Sebastienlg
Level II

JMP Script: Problem with a Link Platform

Hello all,

I am trying to make a window integrating a platform link which makes:

- a statistic table,

- and a graph

The statistic table and graph is based on the user selection integrating a column switcher.

At the end, all is linked with the platform link.

 

I did the exact same programming based on two different list.

One of the is working really well. 

However, the second one, I get this message:

"The Number of items() argument must be a list when accessing or evaluating "N items", ..."

Sebastienlg_0-1681896512026.png

Here is my program:

Current Data Table( RAW_DATA_TABLE );
	New Window( "Test",
		V List Box(
			coltstst1 = RAW_DATA_TABLE << Column Switcher( :Name( "Y" ), without_limits ),
			Cadreall1 = Tabulate(
				Show Control Panel( 0 ),
				Add Table(
					Row Table( Analysis Columns( :"Y" ), Statistics( N ) ),
					Row Table( Analysis Columns( :Date ), Statistics( Min, Max ) )
				),
			), 

		// Création des statistiques descriptives
			graph1 = Control Chart Builder(
				Size( 534, 450 ),
				Show Two Shewhart Charts( 0 ),
				Show Control Panel( 0 ),
				Sort by Row Order( 1 ),
				Show Limit Summaries( 0 ),
				Variables( Subgroup( :Numéro de lot ), Y( "Y" ), Phase( :"Version" ) ),
				Chart( Points( Statistic( "Individual" ) ), Limits( Sigma( "Moving Range" ), Show Lower Limit( 0 ), Show Upper Limit( 0 ) ) ),
				SendToReport( Dispatch( {}, "Control Chart Builder", OutlineBox, {Set Title( "Représentation graphique" )} ) )
			)
		)
	);
	
	coltstst1 << Link Platform( table1 );
	coltstst1 << Link Platform( Cadreall1 );
	coltstst1 << Link Platform( graph1 );

	ncols1 = N Items( coltstst1 << get list );

...

Any idea of the problem?

Sebastien

 

1 REPLY 1

Re: JMP Script: Problem with a Link Platform

I can't say for sure without seeing the data table you're working with or the full script, but my guess is that the Column Switcher message on line 4 isn't successfully creating a column switcher. For example, if the first argument isn't a reference to a column in RAW_DATA_TABLE, then the column switcher is not successfully created, which means that Get List can't return a list of columns as the argument for N Items.

 

Ensure that :Name( "Y" ) is returning the column reference you expect and that without_limits is a list of column references.

Ross Metusalem
JMP Academic Ambassador