Zum Inhalt

GetResult (Opus Funktion)

Beschreibung

Diese Funktion gibt das berechnete Resultat einer Leistung zurück. Retrieves a calculated grade result for a given person type and calculation name (or path). Uses the reference date, calculations ID and variant set by SetResultReferenceDate and SetResultCalculationsID.

Argumente

Name

Typ

Beschreibung

CalculationName

CalculationPath

string

[string]

Leistungsname oder Serie von Leistungsnamen, um die Verlinkungen zu verfolgen.
name of the calculation within the active calculations scheme

Wird als Leistungsname eine Zahl angegeben, dann wird versucht, diese als ID einer Leistung (CalculationID) zu interpretieren. So ist es möglich, direkt eine Leistung mit ID anzusprechen.
list of calculation names forming a path through nested calculations

PersonTypeID

integer

AddressRoleID
ID of the person type (address role) for which the result is retrieved

ResultIndex

integer

0 = Neuester Versuch, sonst genau der angegebene Versuch.
1-based index selecting which result entry to return when multiple exist

Rückgabewert Res Object

result struct with fields: Value (float), Factor (float), FloatValue1 (float), FloatValue2 (float), MinValue (float), MaxValue (float), Flag (integer), Index (integer), Text (string), ResultText (string), StringValue1 (string), StringValue2 (string), Date (datetime), ID (integer), Status (integer)

Beispiel

Lo_Result.o_Result := GetResult(Result,ID,Repetition);

 

Lo_NoteTB3aC1 = GetResult(["Sem5","Mikros."],ID,1);

Siehe auch