Hello,
I would like to allow the user to select which rows to subset based on the values in one of the columns. They need to be able to select more than one value. I'm having trouble with selecting the rows based on which values the user chooses. :Generic Description is made up of character values, not numbers.
The code I am working with looks like this:
Summarize( GD = By( Column( dt, "Generic Description")));
nw = New Window( "Choose the Generic Descriptions to analyze",
hb = HList Box(
Panel Box( "Select the GDs",
select1 = List Box(
GD))
),
Button Box( "OK",
nw << Close Window;
dt << Select Where( :Generic Description == select1 << Get Selected);
dt << Subset(( Selected Rows), Output Table Name( "Selected GDs")))
);
Can anyone help me out?