ST-BASETOOLS - MLS-Text Functions

Wichtig
Wichtig
using "ST-BaseTools.FBL"

BaseTools_MlsText

Description: Getting MLS-Text with given key - creates key if not found!
Return-Type: string
Nr.
Argument
Typ
Beschreibung
1
mlsKey
string
Key of wanted mlsText.
2
uiLangNo
int
Desired UILangNo (default according context).
3
newText
string
New text if not found (german only).
4
newShortText
string
New shorttext if not found (german only).
5
newInfoText
string
New info if not found (german only).
6 - 14
replacetext<1-9>
string
Replace text for %1 - %9.
Beispiel
XFAS.AddHeads('MlsKey','MlsText','MlsShortText','MlsInfo')

var uiLangNo := 0
var mlsKey   := 'U.Article.NotFound'

var resultName   := BaseTools_MlsText('mlsKey', 0, 'NEUER TEXT', 'NEUER SHORTTEXT','Artikel "%1" konnte nicht gefunden werden!','101 Winkelschleifer')
var mlsText      := XRES.GetColValByName(resultName, 'Text')
var mlsShortText := XRES.GetColValByName(resultName, 'ShortText')
var mlsInfo      := XRES.GetColValByName(resultName, 'Info')

XFAS.AddCells(mlsKey,mlsText,mlsShortText,mlsInfo)

BaseTools_GetMlsText

Description: Getting MLS-Text with given key.
Return-Type: string
Nr.
Argument
Typ
Beschreibung
1
mlsKey
string
Key of wanted mlsText.
2
uiLangNo
int
Desired UILangNo (default according context).
3 - 11
replacetext<1-9>
string
Replace text for %1 - %9.
Beispiel
var mlsKey2 := 'U.Article.NotFound2'

var resultName2   := BaseTools_GetMlsText('U.Article.NotFound2',53,'101 Meuleuses d`angle')
var mlsText2      := XRES.GetColValByName(resultName2, 'Text')
var mlsShortText2 := XRES.GetColValByName(resultName2, 'ShortText')
var mlsInfo2      := XRES.GetColValByName(resultName2, 'Info')

XFAS.AddCells(mlsKey2,mlsText2,mlsShortText2,mlsInfo2)

var textValue     := BaseTools_MlsText_Text('Addr.LastName')
var shotTextValue := BaseTools_MlsText_ShortText('Addr.LastName')
var infoValue     := BaseTools_MlsText_Info('Addr.LastName')

BaseTools_MlsText_Text

Description: Getting MLS Text (TEXT only) with given key - creates key if not found!
Return-Type: string
Nr.
Argument
Typ
Beschreibung
1
mlsKey
string
Key of wanted mlsText.
2
uiLangNo
int
Desired UILangNo (default according context).
3
newText
string
New text if not found (german only).
4
newShortText
string
New shorttext if not found (german only).
5
newInfoText
string
New info if not found (german only).
6 - 14
replacetext<1-9>
string
Replace text for %1 - %9.

BaseTools_MlsText_ShortText

Description: Getting MLS Text (SHORTTEXT only) with given key - creates key if not found!
Return-Type: string
Nr.
Argument
Typ
Beschreibung
1
mlsKey
string
Key of wanted mlsText.
2
uiLangNo
int
Desired UILangNo (default according context).
3
newText
string
New text if not found (german only).
4
newShortText
string
New shorttext if not found (german only).
5
newInfoText
string
New info if not found (german only).
6 - 14
replacetext<1-9>
string
Replace text for %1 - %9.

BaseTools_MlsText_Info

Description: Getting MLS Text (INFO only) with given key - creates key if not found!
Return-Type: string
Nr.
Argument
Typ
Beschreibung
1
mlsKey
string
Key of wanted mlsText.
2
uiLangNo
int
Desired UILangNo (default according context).
3
newText
string
New text if not found (german only).
4
newShortText
string
New shorttext if not found (german only).
5
newInfoText
string
New info if not found (german only).
6 - 14
replacetext<1-9>
string
Replace text for %1 - %9.