X4 Produktdokumentation

Detail Component

Detail components display content page-based. This can be plain text, but also check boxes or static or dynamic lists, for example.

UI_DetailComponent_hervorgehoben.png

Defining a Detail Component

A detail component is defined within an own definition file <DetailComponentName>.detail. The definition file is created within the Repository folder Components

How to create a new definition file
  1. Click the menu New > Add <corresponding component>.
    Alternatively, the file can also be created via the context menu New > Add
    <corresponding component>.

  2. Select the desired definition file.

    image2023-12-18_11-26-17.png
  3. Enter a name for the definition file in File name.

  4. Click Finish.
    A new definition file with a predefined structure is created.

The detail component is created via <DetailComponent> and can contain the standard attributes for Components.

layout must be declared for a detail component.

Example for a Detail Component

XML
<DetailComponent process="/WebApp/Map/LoadMapData.wrf" xmlns="http://softproject.de/webapp/1.0">
	<Properties>
		<Property name="Place" type="List">
			<Property name="Company" type="String" />
			<Property name="Address" type="String" />
		</Property>
	</Properties>
	<FlowLayout>
		<Map vendor="OpenStreetMap">
			<Search />
			<Markers data="#Place" iconUrl="Location.png" name="#Company" searchString="#Address" />
		</Map>
	</FlowLayout>
</DetailComponent>

Bsp.DetailComponent.png