Subscribe Bookmark RSS Feed

Unrecognized dialog item

mewing

Community Trekker

Joined:

Jun 23, 2011

Alright, this problem has me stumped. I'm trying to write a script that will allow me to make an ANOM chart but where the grand value being tested isn't the overall mean, but some user specified value. To this end, I am trying to replicate the Xbar control chart dialog box for user input.

Thus far, I have:

c_dlg = Column Dialog(
varlist=ColList("Process", MinCol(1), DataType(Numeric)),
lablist=ColList("Sample Label",MaxCol(1)),
bylist=ColList("By"),
V List Box(
c_Vtype = Radio Box({"R","S"}),
Panel Box("Parameters",
Lineup Box(NCol(1),spacing(5),
c_paratype = Radio Box({"KSigma","Alpha"}),
paraval = Number Edit Box(3))
)
)
);

When I run this, however, I get an error in the log:

Unrecognized dialog item in access or evaluation of 'V List Box' , V List Box(
c_Vtype = Radio Box( {"R", "S"} ),
Panel Box( "Parameters",
Lineup Box( N Col( 1 ), spacing( 5 ),
c_paratype = Radio Box( {"KSigma", "Alpha"} ),
paraval = Number Edit Box( 3 )
)
)
)

I have used the V List Box, not used, used a bunch of Line Up statements and each time I change the non-column selection part, the error changes slightly, often complaining about the 'List' in the first Radio Box (and likely the list in the Panel Box too). If I take the code in the V List Box and put it in a new window (not a column dialog) it runs fine - why won't it work in the column dialog?

Also - and this is a completely separate question, but how might I add a button to this dialog that takes all of the Process variables and presents the user with a table to specify for each of them the target value? I haven't been able to find examples of having a script execute inside a dialog that modifies the dialog (but maybe I haven't looked hard enough yet).

Thank you for your time!
3 REPLIES
I think this should do at least part of it, though I freely admit that I got here more by trial and error than by anything else:


style="font-size: 9pt; font-family: "Courier New"; color: black;">
style=""> 





style="font-size: 9pt; font-family: "Courier New"; color: black;">
style=""> 





style="font-size: 9pt; font-family: "Courier New"; color: black;">c_dlg

style="font-size: 9pt; font-family: "Courier New"; color: navy;">=

style="font-size: 9pt; font-family: "Courier New"; color: black;">

style="font-size: 9pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Column
Dialog

style="font-size: 9pt; font-family: "Courier New"; color: black;">(

style="font-size: 9pt; font-family: "Courier New"; color: black;">





style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">      
Title(

style="font-size: 9pt; font-family: "Courier New"; color: purple;">"Make
Selections From:"

style="font-size: 9pt; font-family: "Courier New"; color: black;">
)

style="font-size: 9pt; font-family: "Courier New"; color: navy;">,

style="font-size: 9pt; font-family: "Courier New"; color: black;">





style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">      
varlist

style="font-size: 9pt; font-family: "Courier New"; color: navy;">=

style="font-size: 9pt; font-family: "Courier New"; color: black;">
ColList(

style="font-size: 9pt; font-family: "Courier New"; color: purple;">"Process"

style="font-size: 9pt; font-family: "Courier New"; color: navy;">,

style="font-size: 9pt; font-family: "Courier New"; color: black;">
MinCol(

style="font-size: 9pt; font-family: "Courier New"; color: teal;">1

style="font-size: 9pt; font-family: "Courier New"; color: black;">
)

style="font-size: 9pt; font-family: "Courier New"; color: navy;">,

style="font-size: 9pt; font-family: "Courier New"; color: black;">
DataType(
Numeric )
)

style="font-size: 9pt; font-family: "Courier New"; color: navy;">,

style="font-size: 9pt; font-family: "Courier New"; color: black;">





style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">      
lablist

style="font-size: 9pt; font-family: "Courier New"; color: navy;">=

style="font-size: 9pt; font-family: "Courier New"; color: black;">
ColList(

style="font-size: 9pt; font-family: "Courier New"; color: purple;">"Sample
Label"

style="font-size: 9pt; font-family: "Courier New"; color: navy;">,

style="font-size: 9pt; font-family: "Courier New"; color: black;">
MaxCol(

style="font-size: 9pt; font-family: "Courier New"; color: teal;">1

style="font-size: 9pt; font-family: "Courier New"; color: black;">
)
)

style="font-size: 9pt; font-family: "Courier New"; color: navy;">,

style="font-size: 9pt; font-family: "Courier New"; color: black;">





style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">      
bylist

style="font-size: 9pt; font-family: "Courier New"; color: navy;">=

style="font-size: 9pt; font-family: "Courier New"; color: black;">
ColList(

style="font-size: 9pt; font-family: "Courier New"; color: purple;">"By"

style="font-size: 9pt; font-family: "Courier New"; color: black;">
)

style="font-size: 9pt; font-family: "Courier New"; color: navy;">,

style="font-size: 9pt; font-family: "Courier New"; color: black;">





style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">      

style="font-size: 9pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Text
Box

style="font-size: 9pt; font-family: "Courier New"; color: black;">(

style="font-size: 9pt; font-family: "Courier New"; color: black;">

style="font-size: 9pt; font-family: "Courier New"; color: purple;">"Parameters"

style="font-size: 9pt; font-family: "Courier New"; color: black;">
)

style="font-size: 9pt; font-family: "Courier New"; color: navy;">,

style="font-size: 9pt; font-family: "Courier New"; color: black;">





style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">      
HList(





style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">             
Select1(
RadioButtons(

style="font-size: 9pt; font-family: "Courier New"; color: purple;">"R"

style="font-size: 9pt; font-family: "Courier New"; color: navy;">,

style="font-size: 9pt; font-family: "Courier New"; color: black;">

style="font-size: 9pt; font-family: "Courier New"; color: purple;">"S"

style="font-size: 9pt; font-family: "Courier New"; color: black;">
)
)

style="font-size: 9pt; font-family: "Courier New"; color: navy;">,

style="font-size: 9pt; font-family: "Courier New"; color: black;">





style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">             
Select2(
RadioButtons(

style="font-size: 9pt; font-family: "Courier New"; color: purple;">"KSigma"

style="font-size: 9pt; font-family: "Courier New"; color: navy;">,

style="font-size: 9pt; font-family: "Courier New"; color: black;">

style="font-size: 9pt; font-family: "Courier New"; color: purple;">"Alpha"

style="font-size: 9pt; font-family: "Courier New"; color: black;">
)
)





style="font-size: 9pt; font-family: "Courier New"; color: black;">
style="">      
)





style="font-size: 9pt; font-family: "Courier New"; color: black;">)

style="font-size: 9pt; font-family: "Courier New"; color: navy;">;

style="font-size: 9pt; font-family: "Courier New"; color: black;">





style="font-size: 9pt; font-family: "Courier New"; color: black;">

 





style="font-size: 9pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Show

style="font-size: 9pt; font-family: "Courier New"; color: black;">(

style="font-size: 9pt; font-family: "Courier New"; color: black;">
c_dlg[

style="font-size: 9pt; font-family: "Courier New"; color: purple;">"Select1"

style="font-size: 9pt; font-family: "Courier New"; color: black;">]

style="font-size: 9pt; font-family: "Courier New"; color: black;">
)

style="font-size: 9pt; font-family: "Courier New"; color: navy;">;

style="font-size: 9pt; font-family: "Courier New"; color: black;">





style="font-size: 9pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Show

style="font-size: 9pt; font-family: "Courier New"; color: black;">(

style="font-size: 9pt; font-family: "Courier New"; color: black;">
c_dlg[

style="font-size: 9pt; font-family: "Courier New"; color: purple;">"Select2"

style="font-size: 9pt; font-family: "Courier New"; color: black;">]

style="font-size: 9pt; font-family: "Courier New"; color: black;">
)

style="font-size: 9pt; font-family: "Courier New"; color: navy;">;

style="font-size: 9pt; font-family: "Courier New"; color: black;">





style="font-size: 9pt; font-family: "Courier New"; color: black;">

 





style="font-size: 9pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Show

style="font-size: 9pt; font-family: "Courier New"; color: black;">(

style="font-size: 9pt; font-family: "Courier New"; color: black;">
{

style="font-size: 9pt; font-family: "Courier New"; color: purple;">"R"

style="font-size: 9pt; font-family: "Courier New"; color: navy;">,

style="font-size: 9pt; font-family: "Courier New"; color: black;">

style="font-size: 9pt; font-family: "Courier New"; color: purple;">"S"

style="font-size: 9pt; font-family: "Courier New"; color: black;">}[

style="font-size: 9pt; font-family: "Courier New"; color: black;">c_dlg[

style="font-size: 9pt; font-family: "Courier New"; color: purple;">"Select1"

style="font-size: 9pt; font-family: "Courier New"; color: black;">]]

style="font-size: 9pt; font-family: "Courier New"; color: black;">
)

style="font-size: 9pt; font-family: "Courier New"; color: navy;">;

style="font-size: 9pt; font-family: "Courier New"; color: black;">





style="font-size: 9pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Show

style="font-size: 9pt; font-family: "Courier New"; color: black;">(

style="font-size: 9pt; font-family: "Courier New"; color: black;">
{

style="font-size: 9pt; font-family: "Courier New"; color: purple;">"KSigma"

style="font-size: 9pt; font-family: "Courier New"; color: navy;">,

style="font-size: 9pt; font-family: "Courier New"; color: black;">

style="font-size: 9pt; font-family: "Courier New"; color: purple;">"Alpha"

style="font-size: 9pt; font-family: "Courier New"; color: black;">}[

style="font-size: 9pt; font-family: "Courier New"; color: black;">c_dlg[

style="font-size: 9pt; font-family: "Courier New"; color: purple;">"Select2"

style="font-size: 9pt; font-family: "Courier New"; color: black;">]]

style="font-size: 9pt; font-family: "Courier New"; color: black;">
)

style="font-size: 9pt; font-family: "Courier New"; color: navy;">;

style="font-size: 9pt; font-family: "Courier New"; color: black;">




 

mewing

Community Trekker

Joined:

Jun 23, 2011

Thanks, I'm able to get it looking 'decent' but I'm still confused as to what the actual problem was - do column dialogs not like having other boxes in them or is it something else? I wonder if there's someone at JMP I could ask about that.
I think you've hit the nail on the head there: column dialogs seem to have their own way of doing things when it comes to augmenting the basic questions relating to the columns themselves. Also, I see in the JMP 9 manual there's an example of how to incorporate the third question about supplying a number:

dt = Open( "$SAMPLE_DATA/Big Class.JMP" );
r = Column Dialog(
Col ID = ColList( "X, Treatment", Max Col( 1 ) ),
Group = ColList( "Group Factors" ),
Split = ColList( "Y, Response" ),
w = ColList( "Weight" ),
HList( "Alpha", alpha = EditNumber( .05 ) )
);

This example returns a list similar to this one, depending on the user’s choices:
{Col ID = {}, Group = {}, Split = {}, w = {}, alpha = 0.05, Button( -1 )}
For each destination list, a ColList clause must be a direct argument of ColumnDialog (not nested inside some other argument).


Incidentally, I also see that in the JMP 9 manual there's the following observation about the Dialog() function:

"Note: The Dialog() function is deprecated and might not work at all in future versions of JMP. Use either New Window() with the Modal argument, or Column Dialog() for column selection."