Hi everyone, nice to meet you!
I'm a new user in JMP software, and I was tasked to do some assignment regarding on scripting.
I have tried to write a program( I have some parts taken from JMP forums,which I'm really grateful about) ,
what this program does is to generate
1)Drift trend graph ( Y, X and Overlay)
2)t- test (Y,X)
3)Normal Probability Plot ( Y,X)
Everything works fine if I just select the columns and generate the graph.
However, I have tried to code a "data filter", which saves the current existing selected columns,
so if I ever need to use these preset columns again, I could just load the file and I would not have to select everything all over again.
Save Button
- Append the selected columns into a List, put it in a data table and save it
Load Button
- upon loading the file, the columns name compared with the names of the data table
- if the names matches, the columns of the original data table would be appended and selected
The problem arises when I tried to load a preset setting.
I have tried to load the preset setting,/ load the preset settings, remove all the selected columns, and manually select my columns again,
but it still shows the error
Unresolved Column in access or evaluation of 'Send' , As Column/*###*/()Exception in platform launch in access or evaluation of 'Graph Builder' , Graph Builder(/*###*/Size( 534, 454 ),
Show Control Panel( 0 ),
Variables( X( As Column() ), Y( As Column() ), Overlay( As Column() ) ),
Elements( Points( X, Y, Legend( 12 ) ), Line( X, Y, Legend( 13 ) ) ),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
12,
Base( 0, 0, 0, Item ID( "0", 1 ) ),
Base( 1, 0, 0, Item ID( "168", 1 ) ),
Base( 2, 0, 0, Item ID( "500", 1 ) ),
Base( 3, 0, 0, Item ID( "1000", 1 ) )
)}
)
)
)The above is the error that I have encountered. I have tried to search on books and webites but I'm still very stuck.
I really hope someone could lend a helping hand. Thank you all soso much.
My assumption is that the method that I used to save the preset setting and retrieveing it is incorrect/ which causes the problem.
//the data table you want to operate on
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
//number of columns in the data table
nc = ncol(dt);
//the width of the column list box in pixels
lbWidth = 108;
//opens new window called "Clustering" that houses all the function display boxes
clusterDlg = New Window("Clustering",/*uncomment if you want a modal window: <<MODAL></MODAL>
@txnelson Thank you so much txnelson! Really really appreciate it.
After a load, your Current Active Data Table is no longer pointing to your measurement data table. You need to make sure your Graph Builder is pointing to your measurment data table, which you use the variable "dt" to point to. So change line 163 from
Graph Builder(
to
dt << Graph Builder(