Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Intro

The Location Information XML export function operates on objects selected within the hierarchy tree.

It exports object information grouped by Floor/Plan (see format below).

The specific object class is irrelevant; the export mechanism will identify the top-level class, ideally FASTIGHETPROPERTY, and select use the first one it encounters.

Subsequently, the mechanism will seek out objects belonging to subclasses sub-classes of the BYGNNAD BUILDING type.

For these BYGNNAD BUILDING objects, the mechanism will then gather all associated PLAN FLOOR objects.

Therefore, the external domain must define classes of FASTIGHETPROPERTY, BYGNNAD, BUILDING and PLAN FLOOR types, with appropriate properties mapped for each class. These properties should correspond directly to the XML PLAN tag elements.

Required configuration

Please review plugin setting required to obtain “Lägesinformation” export: Plugin config for export

Set the export type:

  • FI2_DATA_VIEW: LOCATION_INFORMATION

Start with setting external class names that will be used for corresponding objects:

...

Then, mapping for these fields must be provided:

  • Plan (FLOOR):

    • Plan_GUID

    • Planbenämning

    • Planbeteckning

...

  • Byggnad (BUILDING):

    • Byggnads_GUID

    • Byggnadsbeskrivning

    • Byggnadsbeteckning

...

  • Fastighet (PROPERTY)

    • Fastighets_GUID

    • Fastighetsbeskrivning

    • Fastighetsbeteckning

...

Now, map these classes to internal system classes and match with required fields:

...

Do the same for fastighet and byggna

Format

Typical content of such export is a set of objects (floors) with flat structure:

Code Block
languagexml
<plan>
  <Fastighetsbeteckning>Karlstad Universitetet 1</Fastighetsbeteckning>
  <Fastighetsbeskrivning>102</Fastighetsbeskrivning>
  <Fastighets_GUID>db7d3849-2c11-4f20-a02c-58de754f97d7</Fastighets_GUID>
  <Byggnadsbeteckning>S0014002</Byggnadsbeteckning>
  <Byggnadsbeskrivning>Studenternas Hus</Byggnadsbeskrivning>
  <Byggnads_GUID>4d084043-ad95-42e9-ab71-a0a7ae12002a</Byggnads_GUID>
  <Planbeteckning>Plan 1</Planbeteckning>
  <Planbenämning>01</Planbenämning>
  <Plan_GUID>41ba9d67-75ca-4c0c-b570-c598e4594bfb</Plan_GUID>
</plan>

View file
nameLägesinformation_sample.xml