Style configuration

This article describes how to configure application styles.

Style configuration

The folder with predefined default styles is located in: Comarch Warehouse\AppData\Default\ViewStyles. It contains the following *.xml files with the predefined styles used for:

  • Inventory order list: InventoryOrdersViewStyle.xml
  • Inventory orders: InventoryOrderViewStyle.xml
  • Inventory requisition line items: InventoryRequisitionPositionViewStyle.xml
  • Inventory requisition list: InventoryRequisitionsViewStyle.xml
  • Inventory requisitions: InventoryRequisitionPositionViewStyle.xml
  • Loading unit contents: LoadingUnitDetailsViewStyle.xml
  • Loading unit list: LoadingUnitsViewStyle.xml
  • Loading units: LoadingUnitViewStyle.xml
  • Locations: LocationsViewStyle.xml
  • Picking order list: PickingOrdersViewStyle.xml
  • Picking orders: PickingOrderViewStyle.xml
  • Base view of a process step: ProcessViewStyle.xml
  • Production issue list: ProductionIssuesViewStyle.xml
  • Production issues: ProductionIssueViewStyle.xml
Note
To modify the style settings for all users, you need to make changes to the default files in Comarch Warehouse\AppData\Default\ViewStyles before the users log in for the first time. If changes were made after the first login, remove all views from the WMSMini.ViewStyles table. After restarting the applications, the changes to the views will be loaded into the database and will be applied in the interface of Comarch Warehouse.
Note
When a user logs in for the first time, their style settings are copied from the default settings.

Examples of possible style configuration settings

Hint
ViewStyle file element dictionary [Element name – (Values it can take) – Description]:

  • Align – (Left, Center, Right) – Alignment
  • AutoSelect – (True, False) – Automatic selection
  • BackColor – (color name) – Background color
  • Bold – (True, False) – Bold font
  • Condition – (text value) – Condition
  • DefaultGroupTemplateId – (natural numbers) – ID of the default group template
  • DefaultTemplateId – (natural numbers) – ID of the default template
  • DisplayWhenEmpty – (True, False) – Display when empty
  • DrawBottomLine – (True, False) – Draw the bottom line
  • FilterMode – (Single) – Filter mode
  • Height – (natural numbers) – Height
  • Id – (natural numbers) – Identification
  • MinHeight – (natural numbers) – Minimum height
  • Name – (text value) – Name
  • Option – (Available, Editable, None, Use) – Option
  • Scale – (natural numbers) – Scale
  • SortColumn – (Type, Number, Source document, Priority, Client, Picking Order, Name, Article) – Sorting by column
  • SortDirection – (Asc, Desc) – Sorting direction
  • TextColor – (color name) – Font color
  • TextLineAttributesId – (natural numbers) – ID of the text line attribute
  • Value – (text value) – Value
  • ViewTemplateId – (natural numbers) – ID of the view template
  • Visible – (True, False) – Visible
  • VisibleEditable – (True, False) – Visible and editable
  • Width – (percentage) – Width
Example
Changing the view of line items in lists: The application allows you to change the view of line items displayed in lists. In this example, we will modify the InventoryOrdersViewStyle.xml file, responsible for the layout of the inventory order list. As a result, a different color scheme will be applied for the list line items.

Color change:

<Text Align="Left" Bold="true" Width="50%" Value="{Type}-{Number}"/>

Note
It is not recommended to display more than three pieces of information in one line.
Example
Removing displayed objects: This example shows how to remove some objects displayed in the interface. The removed element will be the loading unit weight. The file responsible for changes in the list of loading units is LoadingUnitsViewStyle.xml. In this file, the following line should be removed:

<Text Align="Right" Value="{ActualGrossWeightKg} {ActualGrossWeightUnit}" />

Example
Showing a hidden element: The filter in the Withdrawals for list is hidden by default. To display the filter by default, the following change should be made in the InventoryOrdersViewStyle:

<Filter Option="Editable" Visible="true" VisibleEditable="true">

Example
Changing default sorting options: By default, documents in the list of withdrawals are sorted according to the assigned priority – from highest to lowest.

The example shows how to change the default sorting order to a descending order based on a document number. The modification should be made in the InventoryOrdersViewStyle.xml file (SortColumn parameter).

<Style Id="DocumentsListStyle" SortColumn="Number" SortDirection="Asc" AutoSelect="true">

Note
Be sure to make changes to the WMSMini.ViewStyles table with style settings when the application is turned off. Otherwise, the modifications made will not be saved.

Czy ten artykuł był pomocny?