Skip to main content
Skip table of contents

convertLookupToUnit

Typ


Versionshinweise

18.1

Web Client(Haken)

Code

GROOVY
IUnit UnitUtils.convertLookupToUnit(ILookup lookup, boolean enabled)

Beschreibung

Konvertiert einen Nachschlagewert auf einen Mandanten (ILookup) in eine Mandanten-Repräsentation (IUnit). Mit diesem Objekt kann z.B. die Mandantenzugehörigkeit eines Datensatzes mittels UnitUtils.setUnits() modifiziert werden.

Parameter

  • lookup - Das zu konvertierende ILookup.
  • enabled - Gibt an ob der Mandant (in-)aktiv ist.

Rückgabe

Der resultierende Mandant.

Beispiele

GROOVY
ILookup mainUnit = WorkSpaceScriptUtils.getValue(entry, "MainUnit.Employee");
IUnit unit = UnitUtils.convertLookupToUnit(mainUnit, true);
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.