Still can't seem to figure out how to get rid of that "where" clause in the lineup box. I switched it over to a graph builder object to see if header/footer preferences would remove it, but didn't seem to do it.
I've tried to re-write this a data filter wrapping the LB. That has some advantages anyways as it allows some customization by the user. This seems to work, however, as you can see it looks a little wonky because the Data Filter is incredibly collapsed.
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Gender_List = {"M", "F"};
age_list = {12, 13, 14, 15};
Property_List = {"Age", "Height", "Weight"};
w = New Window( "test", VLB = V List Box( Text Box( "A" ),
dt << Graph Builder(Size( 534, 450 ),
Show Control Panel( 0 ),
Variables( X( :age ) ),
Elements( Histogram( X, Legend( 6 ) ) )
)
)
);
For( j = 1, j <= N Items( Gender_List ), j++,
VLB << Append( Text Box( Gender_List[j] ) );
VLB << Append(
data filter context box(
LB = LB = Lineup Box( N Col( 2 ), spacing( 10 ),
For( i = 1, i <= N Items( Property_List ), i++,
gb = dt << Graph Builder(
Size( 534, 450 ),
Show Control Panel(0 ),
Variables( X(Column( Property_List[i] ) )),
Elements( Histogram( X, Legend( 6 ) ) ),
/*Where( :Sex == Gender_List[j] ) ),*/
),
)
),
dt<<Data Filter (local,
add filter(
columns(:sex),
Where (:Sex == Gender_List[j])
)
)
)
);
);
I tried loading the data filter at the top of the LB but that did not seem to work.
Any thoughts on how to clean this up? This technically works but looks a little junky.