- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Filter Col Selector usage
I'm trying to use a Filter Col Selector but I can't get it to return the selected value.
names default to here(1);
dt = Open( "$SAMPLE_DATA/Blood Pressure.jmp" );
nw=new window("test", <<modal, <<return result,
v list box(var1=Filter Col Selector(dt),
H List Box( Button Box( "OK" ), Button Box( "Cancel" ) ))
);
In this example var1 doesn't return the column name that was selected.
Thanks for any direction on how to use this!
Steve
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Filter Col Selector usage
Created:
Feb 15, 2021 11:16 AM
| Last Modified: Feb 15, 2021 8:17 AM
(1389 views)
| Posted in reply to message from shampton82 02-15-2021
Here is one way to capture the value of the Filter Selector
names default to here(1);
dt = Open( "$SAMPLE_DATA/Blood Pressure.jmp" );
nw=new window("test", <<modal, <<return result,
v list box(var1=Filter Col Selector(dt),
H List Box( Button Box( "OK" ), Button Box( "Cancel" ) )),
var1<<set script(zippy=var1<<get selected);
);
The variable zippy contains the selected values
Jim
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Filter Col Selector usage
Created:
Feb 15, 2021 11:16 AM
| Last Modified: Feb 15, 2021 8:17 AM
(1390 views)
| Posted in reply to message from shampton82 02-15-2021
Here is one way to capture the value of the Filter Selector
names default to here(1);
dt = Open( "$SAMPLE_DATA/Blood Pressure.jmp" );
nw=new window("test", <<modal, <<return result,
v list box(var1=Filter Col Selector(dt),
H List Box( Button Box( "OK" ), Button Box( "Cancel" ) )),
var1<<set script(zippy=var1<<get selected);
);
The variable zippy contains the selected values
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Filter Col Selector usage
Thanks Jim!
I just noticed that the column list box that shows up does not default with the filter on, is there a way to have this option be turned on by the script vs using the red triangle?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Filter Col Selector usage
I don't see a message that will turn the filter on, but I did not do a real exhaustive search. Take a look in the Scripting Index under the FilterColSelector and maybe you can find such.
Jim