Technical documentation - Configuring tables and used-in in web viewer version 5.0 and later

Used in function may be configured to show different places where information is used and adjusted to some extent. This article describes how used in function may be configured.

Version 5.0. This documentation is for tables and used-in in version 5 and later.



Overview

Used in function is based on a set of components and a to allow users to view, filter, sort and download table information. The components are the table itself with columns and data content, a filter area to filter content, a filter selector to select what columns to filter, custom filters, a download button and a sort selector. Each component may be configured.

Configuration

Used in configured using profile.config using the <PresentationSettings> block.

profile.config
<Settings> <Trigger base-type="Catalogue"/> <!-- presentation=true will include which presentations the item is used catalogue-node="true" will include which catalogues item is used presentation-catalogue-node="true" will include which nodes item is used navigation-offset="1" will trigger navigation to the item in the used in list to the location one step up. E.g navigating to a part in a node will place user ini the node showing all parts in that node. display will define in which area of the screen used in section is displayed, if it is hidden or collapsed. --> <!-- From version 5.1 it is possible to set enable-root-navigation-only="true". By setting this option clicking on a row will take user to the position where the part is used regardless if user clicks on path or product. --> <UsedIn display "body collapsed" presentation="false" catalogue-node="true" presentation-catalogue-node="true" navigation-offset="1"> <Sort direction="Ascending" type="Identity"/> <!— Show filter area or not. --> <FilterDisplaySettings display="false"/> <!-- Define a filter by name and label --> <Filter name="kits" label="Service kits"/> <!-- Settings for a column in the table. Id is content of column and caption-key is the key text. --> <Column id="CatalogueIdentity" caption-key="ProductNo"/> <Column id="CatalogueName" caption-key="ProductName"/> </FilterDisplaySettings> <!-- Definition of dataview options. Define page size, eg 10 and 50, with default 10. --> <DataViewOptions page-sizes="10,50" default-page-size="10"> <!-- Sorting options. Identity. E.g. add two sorting options: Sort by Identity and display the sort option as key-text ProductNo. Sort by Name and display the sort option as key-text ProductName. Hide sort option Filter. --> <SortSelector id="Identity" label="ProductNo"/> <SortSelector id="Name" label="ProductName"/> <SortSelector id="Filter" ignore="true"/> <!-- Add filter options in the filter area --> <FilterSelector id="CatalogueIdentity" label="ProductNo" property="Catalogue.Presentation.Identity"> <!-- Regex for the filter to be applied on the CatalogueIdentity column --> <Format pattern="((\b(?'a'\d{4}) (?'b'\d{0,4})) (?'c'\d{0,2})|(\b(?'a'\d{4}) (?'b'\d{0,4})(?'c'\d{0,2})\b))" format="${a}${b}${c}"/> </FilterSelector> <FilterSelector id="CatalogueName" label="ProductName"/> </DataViewOptions> </UsedIn> </Settings>