Problems with Graph update functionHi there - I have a script that works to a certain point - It gets a list of specfic columns, assigns these to a list and then uses a combobox to let the user select which column to use for a graph creation. This works fine but the problem is now that when the graph is created it will display outside the window and also appends the new graph - i just need to update the window with the new version.
See the sample script below
<BR /><BR />// Create the dialog window
win = New Window("Count Analysis by EXPSORTWW_XETA",
V List Box( header_text, Text Box( " " ) ),
VListBox(
PanelBox("Controls",
HListBox(
TextBox("X-axis: EXP_XETA", <<SET font="" style=""> 0,
overlayCombo << Select( 1 );
updateGraph( magicalArray[1] ); // Force initial graph
);</SET>
Could anyone help me out and see what is wrong?
Automation and ScriptingRe: Problems with Graph update functionThis maybe gives some ideas what you could change (remove old graph, don't mix expression and reference)
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
options = {"height", "weight"};
win = New Window("Count Analysis by EXPSORTWW_XETA",
V List Box("", Text Box(" ")),
V List Box(
Panel Box("Controls",
H List Box(
Text Box("X-axis: EXP_XETA", <<SET font="" style=""> 0,
updateGraph(options[1]);
);
</SET>