To display specific view use logic shown in this example. It basically calls app.views.setCurrentView
using facility and view as input.
The inventory is showing data for displayed elements. So you would need to get dbIds of displayed elements and then use DtModel.getPropertiesDt
to get properties of each element.