By default, every Data List will automatically be created with a View created in its namesake. However, Modelshop gives us the ability to quickly and easily view the same data in several different ways. This can be accomplished by creating multiple Views that show and filter relevant data. These views will remain persistent in terms of sorting, filtering and grouping.
Creating a New View
Hiding and Ordering Fields
When a new View is created, it by default, displays every field present in the Data List. In many cases, it may be appropriate to hide some of the fields in some views and show them in other Views. To hide a field from a View, simply uncheck the box in the Show column for that given field.
Similarly, the order in which fields are displayed may vary between Views. Thus, Modelshop allows each View to be ordered independently. To change the order of a field, simply select the new order using the dropdown menus in the Column column. All other fields in the View will be adjusted automatically to the changes.
For some View and data sets, it may be beneficial to group data by the value of a certain field. Modelshop has the ability to group our data in our View.
Group In View
To group a View, point the mouse to the header of the field to be grouped by. While hovering, a dropdown arrow will appear. From this dropdown, select “Group by this field”.
Group In Edit Mode
Groupings can also be applied to our View inside of edit mode by selecting the Group checkbox for the appropriate field.
Sorting In View
To sort a View, point the mouse to the header of the field to be sorted by. While hovering, a dropdown arrow will appear. From this dropdown, select Sort Ascending or Sort Descending, dependant upon your requirements.
Sorting In Edit Mode
Sorting can also be achieved in Edit Mode, allowing for multiple sorts to be applied. While in Edit Mode, choose fields that you would like sorted. Then select the appropriate order in from the Sort Order column, 1 being the most important.
It may also be beneficial to filter what items display in our View. Modelshop has the ability to apply powerful filters on Views.
Filtering In View
To add a filter to a View, point the mouse to the header of the field the filter will be applied to. While hovering, a dropdown arrow will appear. In this dropdown, we can enter filters using our groovy operators.
Filters on text fields
||Returns only the items that contain a “P”|
||Returns only the items that exactly equal “P”|
||Returns only the items that start with the letter “P” and above (in alphabetical order)|
||Returns only the items that start with letters prior and up to “P”|
Filters on numerical fields
||Greater than or equal to|
||Less than or equal to|
||And, for applying multiple filters on a field|
Filtering In Edit Mode
Filters can also be applied to our View inside of Edit Mode by choosing the appropriate Filter Type and Filter Expression.