Puoi utilizzare JSL per aggiungere automaticamente il codice a "Gestore eventi" in "Proprietà" di una colonna specificata?Grande Classe.jmp
Grazie!
Function( {thisTable, thisColumn, iRow},
{},
n1rows = thisTable << Get Rows Where( :n1 == thisTable:thisColumn[iRow] );
n2rows = thisTable << Get Rows Where( :n2 == thisTable:thisColumn[iRow] );
thisTable << Select Columns( {thisColumn, :n1, :n2} ) << Clear Cell Colors;
thisColumn << Color Cells( {3, {iRow}} );
:n1 << Color Cells( {3, n1rows} );
:n2 << Color Cells( {3, n2rows} );
);
Automazione e scriptingRi: Come è possibile utilizzare JSL per aggiungere automaticamente il codice a "Gestore eventi" in "Proprietà" di una colonna specificata?Utilizzare il messaggio <
:name << Add Column Properties(
Set Property(
"Event Handler",
Event Handler(
Click(JSL Quote(Function( {thisTable, thisColumn, iRow},
{},
n1rows = thisTable << Get Rows Where( :n1 == thisTable:thisColumn[iRow] );
n2rows = thisTable << Get Rows Where( :n2 == thisTable:thisColumn[iRow] );
thisTable << Select Columns( {thisColumn, :n1, :n2} ) << Clear Cell Colors;
thisColumn << Color Cells( {3, {iRow}} );
:n1 << Color Cells( {3, n1rows} );
:n2 << Color Cells( {3, n2rows} );
);
) )
)
)
)Ri: Come è possibile utilizzare JSL per aggiungere automaticamente il codice a "Gestore eventi" in "Proprietà" di una colonna specificata?Se voglio implementare nel "gestore eventi" di questa proprietà di colonna che facendo clic su una cella nella colonna del nome si apra automaticamente un'immagine web con il testo di quel nome con JMP. Voglio codificare questo contenuto di Function()?
Supponendo che il sito sia:
https://community.jmp.com/KATIE.png
Grazie!
