@SMARTLISTFROMINDEX gibt ein Smart List-Element basierend auf der Reihenfolge der Elemente in der Smart List zurück.
DTP-Typ:
@SMARTLISTFROMINDEX kann einem DTP vom Typ Zeichenfolge, Kennwort, Element oder Elemente zugewiesen werden.
Syntax:
@SMARTLISTFROMINDEX(SmartList,Index)
Parameter:
| Parameter | Beschreibung |
|---|---|
SmartList |
Design Time Prompt oder Dimension. In der Dimension werden die Smart List-Dimensionen in der Anwendung angezeigt. |
Index |
Design Time Prompt oder Text |
Beispiel:
[sl_ind_Str]=@SmartListFromIndex([String1],[index_ST])
Dabei gilt Folgendes:
[sl_ind_Str] ist ein DTP vom Typ Zeichenfolge, der kein geprüfter Prompt ist.
[String1] ist ein DTP vom Typ Zeichenfolge, der ein geprüfter Prompt ist.
[index_ST] ist ein DTP vom Typ numerisch, der ein geprüfter Prompt ist.
Angenommen, die Parameter lauten wie folgt:
SmartList: "CreditRatings"
Index: "2"
In diesem Beispiel enthält die Smart List "CreditRatings" die folgenden Daten:
| Name | Label |
|---|---|
| AA | ID_ENUMNETLABEL_AA |
| AAA | ID_ENUMNETLABEL_AAA |
| AAMinus | ID_ENUMNETLABEL_AA22 |
| A | ID_ENUMNETLABEL_A |
| AMinus | ID_ENUMNETLABEL_AA22 |
| AAPlus | ID_ENUMNETLABEL_AA11 |
| APlus | ID_ENUMNETLABEL_A11 |
| B | ID_ENUMNETLABEL_B |
| BPlus | ID_ENUMNETLABEL_B11 |
| BMinus | ID_ENUMNETLABEL_B22 |
| BB | ID_ENUMNETLABEL_BB |
| BBPlus | ID_ENUMNETLABEL_BB11 |
| BBMinus | ID_ENUMNETLABEL_BB22 |
| BBB | ID_ENUMNETLABEL_BBB |
| AAAMinus | ID_ENUMNETLABEL_AAA- |
| BBBPlus | ID_ENUMNETLABEL_BBB+ |
| BBBMinus | ID_ENUMNETLABEL_BBB- |
| CCCPlus | ID_ENUMNETLABEL_CCC+ |
| CCC | ID_ENUMNETLABEL_CCC |
[sl_ind_Str] gibt "AAMinus" zurück, da dies der Name des Smart List-Elements an der zweiten Indexposition ist.