Import transformation code

Import Transformation Codes are scripts for processing raw data into an importable format for the Labordatenbank.

Import transformation codes for import interfaces offer the possibility to convert the loaded raw data into a different format, or to process it further before it is imported into the Labordatenbank. The first parameter contains a String with the raw data. This can be processed either manually or with one of the provided libraries. The second parameter contains the filename, also as a String.

The return value must be an Array of objects whose keys correlate with the columns to be imported.

Example of a transformation code:

function transform (data, filename) {
  const parsedData = xmlParser.parse(data)
  const filenameWithoutExtension = filename.match(/(.*)\.\w+/)[1]
  
  let result = parsedData.ERGEBNIS.map((e) => {
    return {
      'Datum': e.Datum,
      'Stichwort': e.Stichwort,
      'Probenstatus': e.Probenstatus,
      'Datei': filenameWithoutExtension
    }
  })

  return result
}

Last change: 22.08.2025

Allgemeines

Einführungsphase

Auswertungen

Mitarbeiter

Aufträge

Proben

Probenvorlage

Berichte

Kunden

Berichtstabellen Editor

Kundenzone (optional)

Anlagen

Angebote

Rechnungen

Parameter

Rechnen mit Parametern

Schnittstellen

Webservice

Transformationscode

Prüfpläne / Grenzwerte / Spezifikationen

Dokumentenlenkung

Prüfmittel

Material

Mitarbeiterschulungen

8D-Report

Sonstiges

PDF-Vorlagen

Fragen und Antworten

Lieferantenbewertung

Dateiverwaltung

Prozesse