Show Recent Files
Show Recent Files using New Project
Summary: Creates a new JMP project, opens a data table, and applies a filter to display only records from Region C and N, while hiding count indicators and filter controls.
Code:
project = New Project();
project << Run Script(
dt = Open( "$SAMPLE_DATA/data_table.jmp", invisible );
obj = dt << Data Filter(
show controls( 1 ),
show counts( 1 ),
no outline box( 1 ),
Add Filter( columns( :Region, :POP ), Where( :Region == {"C", "N"} ) ),
Mode( Select( 0 ), Show( 0 ), Include( 1 ) )
);
obj << show counts( 0 );
obj << show controls( 0 );
);
project << Show recent files( 0 );
Code Explanation:
- Create new project.
- Open data table;
- Initialize data filter object.
- Display filter controls.
- Display count indicators.
- Disable outline box.
- Add filter for Region C and N.
- Set filter mode to minimal.
- Hide count indicators.
- Hide filter controls.