Upgrade on JMP version 15 : Display box and column list issuesHi all,
I am very confused with the new version of JMP (15) because I have a script from the previous version that is not working anymore. I think this is related to display boxes and list of columns, but I am not completely sure.
The goal of my script below (and also attached) is to calculate drifts of parameters (column "parameter" for example) in function of column "time" from the data table "table test" attached.
The problem is that I have an error message when I execute the script and choose the corresponding data table. I don't really understand why. In first approach; I think this is related to display boxes and the fact I use a list of column and not a single character or numerical value but I don't know how to proceed to correct the problem.
If someone has the same issue or has an idea on how to proceed I would be very grateful.
Thank you in advance !
Merwanmok
Delete Globals();
Delete Symbols();
dt_old = Open();
init_dlg = New Window( <<MODAL></MODAL>
Re: Upgrade on JMP version 15 : Display box and column list issuesWith your new script, it errors when you call (tem << Getitems) after the dialog has been dismissed, because you cannot use the display box after it has been deleted.
Your calls to <
// This example works in JMP 14 or 15 on Mac or Windows
// Results are gathered within the <<ONCLOSE callback="" names="" default="" to="" here=""></ONCLOSE>
Re: Upgrade on JMP version 15 : Display box and column list issuesYou can find attached the modified script with the different <
With that, I still have the same error message after executing the script and puting parameters in the openned window so it proves that the problem comes from the parameters "it" and "tem" I think.
Re: Upgrade on JMP version 15 : Display box and column list issuesI did run your script. Can you post your updated script with the <
In my example, the key changes to make the first example work in JMP 15 are:
1) Add <
2) Upon return, use the return value from NewWindow() instead of accessing display boxes. If I add <
init_dlg = {colListData = {"Parameter"}, it = {}, tem = {"Time"}, nom = "1.1", New = 1, typ = 1, Unit_ = "unité", origi = 1, Button(1)};
This has 8 values in it, which I believe accounts for all of the inputs that are available.
Re: Upgrade on JMP version 15 : Display box and column list issuesI understand but I tried to put the <
Panel Box( "Colonne \!"temps\!"",
H List Box(
Lineup Box( N Col( 2 ), Spacing( 3 ),
Button Box( "Temps",
tem << Append( colListData << GetSelected )
),
tem = Col List Box( width( 200 ), nLines( 5 ), MinCol( 1 ) )Did you try to execute my script with the test table attached ?
Re: Upgrade on JMP version 15 : Display box and column list issuesIt looks like you are trying to use the display boxes after the dialog has been dismissed. Here is a small example similar to what you are doing:
// This example works in JMP 14 on Windows, but will fail on Mac
w = New Window("fails in JMP 15", <<MODAL></MODAL>
Display boxes are "owned" by the window that they are in, and will go away when the window closes. On Windows this may have worked in JMP 14, but note from the Wait(0) comment that even Windows can fail with this type of usage. Eventually the boxes get deleted, you just don't know when.
This example will work in both JMP 14 and JMP 15 on both Mac and Windows. Using this structure should make your dialog work:
// This example works in JMP 14 or 15 on Mac or Windows
// Results will be returned with the modal status
Names Default To Here(1);
w = New Window("works in JMP 15",
<<MODAL></MODAL>Re: Upgrade on JMP version 15 : Display box and column list issuesI changed the fourth line as :
init_dlg = New Window("Interface", <<MODAL></MODAL>My window opens, I select my parameters and then I still have the same error message, so no changes
Re: Upgrade on JMP version 15 : Display box and column list issuesPlease insert a character string for the window title as the first argument as I suggested and see what happens to the error.
Re: Upgrade on JMP version 15 : Display box and column list issuesNo the first argument of the new window is <Re: Upgrade on JMP version 15 : Display box and column list issues
Did you insert a character string with the window title as the first argument to New Window() function?
Re: Upgrade on JMP version 15 : Display box and column list issuesThank you for your answer.
I deleted the lines with << Append() function and also Delete Globals() function at the begining but I still have the error message..
Re: Upgrade on JMP version 15 : Display box and column list issuesThe error seems to be about the Glue() function called in the line that delete global variables and opens a data table. The New Window() function expects a character string as the first argument to be used as the window title.
I think that the use of the << Append() message is unnecessary because you are creating the new window entirely with the New Window() function call. The message is useful to add to an existing window after it is created.
Re: Upgrade on JMP version 15 : Display box and column list issuesThank you for your answer.
Why do you think that the problem is related to a display box or a list of columns?
Because I already used the debugger to step through the script and the error message that I get is related to display box. I also looked at other discussions and there is an issue with the new JMP version getting parameters from "New window <
What error message do you get? Where does the error occur?
You can find attached the error message. Sorry it is in french. It occurs inside the new window call at this levelI think :
tem = Col List Box( width( 200 ), nLines( 5 ), MinCol( 1 ) )
Have you tried to evaluated small portions of the script from the top to confirm where the script is working?
Yes but my script is starting with the "new window"...
Have you used the Debugger to step through the script?
Yes I used the debugger and this is how I understood that it was linked to display box and column list inside.
Thank you for your help !
Re: Upgrade on JMP version 15 : Display box and column list issuesWhy do you think that the problem is related to a display box or a list of columns?
What error message do you get? Where does the error occur?
Have you tried to evaluated small portions of the script from the top to confirm where the script is working? Have you used the Debugger to step through the script?
It is helpful if we do not have to start from the beginning.