Pouvez-vous utiliser JSL pour ajouter automatiquement du code au « Gestionnaire d'événements » dans les « Propriétés » d'une colonne spécifiée ?Grande Classe.jmp
Merci!
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} );
);
Automatisation et scriptsRe : Comment utiliser JSL pour ajouter automatiquement du code au « Gestionnaire d'événements » dans les « Propriétés » d'une colonne spécifiée ?Utilisez le message << Ajouter des propriétés de colonne :
: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} );
);
) )
)
)
)Re : Comment utiliser JSL pour ajouter automatiquement du code au « Gestionnaire d'événements » dans les « Propriétés » d'une colonne spécifiée ?Si je souhaite implémenter dans le "gestionnaire d'événements" de cette propriété de colonne qu'un clic sur une cellule de la colonne de nom ouvre automatiquement une image Web avec le texte de ce nom avec JMP. Dois-je encoder ce contenu Function() ?
En supposant que le site soit :
https://community.jmp.com/KATIE.png
Merci!
