Ciao, sto scrivendo il seguente codice per ottenere quanto segue. Qualcuno potrebbe aiutare. Per qualche motivo il codice non funziona.
Grazie Joydeep
Obbiettivo.
Sto aprendo la tabella 1, quindi ottengo il riepilogo della tabella 1 e lo salvo nella tabella 2.
Ora, per ogni riga della Tabella 2, voglio colorare le righe della Tabella 1.
Quindi sto eseguendo il ciclo For in Table per selezionare ogni riga e in base a ciò provo a colorare la riga della tabella 1.
Gradirei il tuo aiuto.
//// Here is the code I am trying
dt10= open("\\Test\Table1.jmp");
dt11= dt10 << Summary(
Group(:Work Week ),
Freq( "None" ),
Weight( "None" )
);
x= N Row(dt11);
v= N Rows(dt10);
For(i=1,i <=x, i++,
dt11 << Select Rows(i) ;
For (j=1,j<=v, j++, dt10 << current data table();
if ( Row State(dt10,j) == "Selected" , Column( dt10, "Work Week") << Color Cells( i,{j} ));
);
dt11 << clear selection();
);
Prova questo:
dt10 = Open( "\\Test\Table1.jmp" );
dt11 = dt10 << Summary( Group( :Work Week ), Freq( "None" ), Weight( "None" ) );
x = N Row( dt11 );
v = N Rows( dt10 );
For( i = 1, i <= x, i++,
dt11 << Select Rows( i );
dt10:Work Week << color cells( "Red")
dt11 << clear selection();
);