Come collegare insieme il commutatore di colonna e il filtro dati localeCiao,
Ecco il mio script non del tutto funzionante.
test = Fit Group(
Oneway(
Y( :Max Discharge Capacity ),
X( :Cathode Recipe.x ),
Quantiles( 1 ),
Means( 1 ),
Box Plots( 1 ),
Mean Diamonds( 0 ),
X Axis Proportional( 0 ),
Points Jittered( 1 ),
Grand Mean( 0 ),
),
Oneway(
Y( :"Cycle Number (>0.3)"n ),
X( :Cathode Recipe.x ),
Quantiles( 1 ),
Means( 1 ),
Box Plots( 1 ),
Mean Diamonds( 0 ),
X Axis Proportional( 0 ),
Points Jittered( 1 ),
Grand Mean( 0 ),
),
Oneway(
Y( :"Discharge Capacity @ 50 Cycles"n ),
X( :Cathode Recipe.x ),
Quantiles( 1 ),
Means( 1 ),
Box Plots( 1 ),
Mean Diamonds( 0 ),
X Axis Proportional( 0 ),
Points Jittered( 1 ),
Grand Mean( 0 ),
),
Oneway(
Y( :"Remain % @ 50 Cycles"n ),
X( :Cathode Recipe.x ),
Quantiles( 1 ),
Means( 1 ),
Box Plots( 1 ),
Mean Diamonds( 0 ),
X Axis Proportional( 0 ),
Points Jittered( 1 ),
Grand Mean( 0 ),
),
<<{Arrange in Rows( 4 )}
);
colpick=test << Column Switcher(
:Cathode Recipe.x,
{:Cathode Batch ID.x, :Anode Batch ID.x, :Electrolyte Recipe.x, :Anode Recipe.x, :Separator Recipe.x, :Separator Batch ID.x}
);
test << Local Data Filter(
Add Filter(
columns( colpick<< get current ),
Display( colpick<< get current, N Items( 15 ), Find( Set Text( "" ) ) )
)
);
Il commutatore di colonna viene creato e funziona come previsto. Quello che vorrei succedere è quando la colonna viene cambiata che il filtro dati locale viene aggiornato con i rispettivi valori di quella colonna per consentire all'utente di perfezionare ulteriormente la propria visualizzazione dei dati. Penso di essere vicino. Come deve essere codificato il filtro dati locale per ottenere la colonna del selettore di colonna e quindi aggiornarla?

Grazie in anticipo
Andy
SceneggiaturaRe: Come collegare insieme il commutatore di colonna e il filtro dati localeCiao @Hegedus1 (Andy), Questo potrebbe aiutare: https://community.jmp.com/t5/Discussions/Column-Switcher-Local-Data-Filter-and-Ref-Line-Automatically/td-p/324936
Re: Come collegare insieme il commutatore di colonna e il filtro dati localeEcco una rielaborazione del codice, utilizzando la tabella di dati di esempio di Semiconductor Capability.


Names Default To Here( 1 );
// Open Data Table: semiconductor capability.jmp
// → Data Table( "semiconductor capability" )
dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );
test = Fit Group(
Oneway(
Y( :NPN1 ),
X( :Site ),
Quantiles( 1 ),
Means( 1 ),
Box Plots( 1 ),
Mean Diamonds( 0 ),
X Axis Proportional( 0 ),
Points Jittered( 1 ),
Grand Mean( 0 ),
),
Oneway(
Y( :PNP1 ),
X( :Site ),
Quantiles( 1 ),
Means( 1 ),
Box Plots( 1 ),
Mean Diamonds( 0 ),
X Axis Proportional( 0 ),
Points Jittered( 1 ),
Grand Mean( 0 ),
),
Oneway(
Y( :NPN2 ),
X( :Site ),
Quantiles( 1 ),
Means( 1 ),
Box Plots( 1 ),
Mean Diamonds( 0 ),
X Axis Proportional( 0 ),
Points Jittered( 1 ),
Grand Mean( 0 ),
),
Oneway(
Y( :PNP2 ),
X( :Site ),
Quantiles( 1 ),
Means( 1 ),
Box Plots( 1 ),
Mean Diamonds( 0 ),
X Axis Proportional( 0 ),
Points Jittered( 1 ),
Grand Mean( 0 ),
),
<<{Arrange in Rows( 4 )}
);
// Set the Column Switcher
colpick = test << Column Switcher( :Site, {:lot_id, :wafer, :site, :wafer id in lot id} );
// Add a script to the Column Switcher to change the Local Data Filter
// whenever the selection in the Column Switcher is changed. When a change
// is detected, the existing Local Data Filter is deleted and a new one
// is created, with the new column that was selected in the Column Switcher
(test << top parent)[listboxbox( 1 )] << set script(
Try( test << remove local data filter );
mycurrent = ((test<<TOP parent=""></TOP>
Re: Come collegare insieme il commutatore di colonna e il filtro dati localeGrazie è proprio quello di cui avevo bisogno. E non l'avrei mai capito da solo.