Salut,
I have the following JSL code that creates a Graph Builder plot inside a For loop. It works correctly in JMP 14 but produces wrong output in JMP 16.
Code JMP 14 (fonctionne correctement) :
gb = Expr(
dt << Graph Builder(
Size( 635, 338 ),
Show Control Panel( 0 ),
Variables( X( :Time Point Months ), Y( :Result ), Overlay( :Batch ) ),
Elements(
Points( X, Y, Legend( 1 ) ),
Line Of Fit( X, Y, Legend( 2 ), Confidence of Fit( 0 ) )
),
Local Data Filter(
invisible,
Add Filter(
columns( :Component, :Batch, :Source Table ),
Where( :Component == numPar[i] ),
Where( :Batch == {cyc, bat}),
Where( :Source Table == dt_name )
)
),
SendToReport(
Dispatch(
{},
"Time Point Months",
ScaleBox,
{Min( -0.1 ), Max( maxvalts ), Inc( 2 ), Minor Ticks( 1 )}
),
Dispatch(
{},
"graph title",
TextEditBox,
{Set Text( numPar[i] || " vs. Time Point" )}
),
Dispatch( {},
"Y title",
TextEditBox,
{Set Text( yTitleText)}
),
Dispatch(
{},
"Result",
ScaleBox,
{Format( "Fixed Dec", 10, 3 ),
Min( Eval( minval )),
Max( Eval( maxval )),
Inc( Eval( (maxval - minval) / 10 ))}
)
)
)
);
col1 << Append(gb);
La syntaxe de Graph Builder ou le comportement du filtre de données locales ont-ils changé entre JMP 14 et JMP 16 ? Comment dois-je réécrire ce code pour qu’il fonctionne correctement dans JMP 16 ?
Il est probable que ce soient les éléments de répartition qui aient changé. Des captures d'écran avant et après, les messages d'erreur et des exemples de données permettront de comprendre ce qui se passe.