Runs another JSL(test.jsl) on the graph by Hover Labels,
frame = (p1 << report)[FrameBox( 1 )];
frame << Set Graphlet( Picture( loader = Include( "D:\0\test.jsl" ) ), Title( "Pie Preset" ), Reapply( 1 ) );
but does not finish.The record in the log is
Object 'LegendBox' does not recognize the message 'Position'; perhaps you mean one of these: <<Legend Position <<Orientation <<Paste <<Get Annotation <<Add Polygon Annotation <<Add Pin Annotation <<Save Presentation <<Set Window ID <<Size Window <<Get Window Position <<Print Window <<Close Window <<Set Window Icon <<Set Min Size <<UI Only.
However, if run test.jsl directly, it will get the correct result.
Do not know the specific reason?
Thanks!
Very difficult to say without knowing what test.jsl has or how rest of your script is written. This does for example open the caption correctly (and does show how aggressive hover label is to trigger)
Names Default To Here(1);
::myglobal = 1;
dt = Open("$SAMPLE_DATA/Big Class Families.jmp");
gb = dt << Graph Builder(
Show Control Panel(0),
Variables(X(:age), Y(:weight)),
Elements(Bar(X, Y, Legend(7)))
);
myscript = JSL Quote(
Names Default To Here(1);
Caption(Char(::myglobal++));
);
Save Text File("$TEMP/testscript.jsl", myscript);
frame = (gb << report)[FrameBox(1)];
frame << Set Graphlet(
Picture(
Include("$TEMP/testscript.jsl");
),
Reapply(1)
);