This should be a really easy question, but it has been frustrating me for a couple hours now and I can't figure it out. I have a script that loops through a list of columns and builds various charts for each. It also adds a distribution to the lineup box using this line of code.
This line works perfectly when I type in the column name manually:
lub << append( Panel Box( "Distribution", db_Data << Distribution( Continuous Distribution( column( "VF (19)" )) ) ) );
But this won't work when I try and use a variable:
TestName = "VF (19)";
lub << append( Panel Box( "Distribution", db_Data << Distribution( Continuous Distribution( column( TestName )) ) ) );
I have tried using
as column(TestName)
column( name(TestName))
column( as name(TestName))<BR />column( as :Name(TestName))<BR />column( :Name(TestName))
And every other combination I can find on discussions on the internet. But to no avail. Can someone help with this?
There is a function called Column() and also an element in the Distribution Platform called Column(). When you are using TestName as a reference, JMP interprets
Column( TestName )
as the Column() function and therefore there is not a Column element. Change the syntax to
TestName = "VF (19)";
lub << append( Panel Box( "Distribution", db_Data << Distribution( Continuous Distribution( column( column( TestName ))) ) ) );
and it will work