tmSetText
Synopsis
void tmSetText {
string sessionId,
string viewId,
string itemId,
string textId,
string lang,
DisplayText text
}
See also: DisplayText
The operation sets the text for the given language tag. In addition, it also sets the text for all language tags which are proper prefixes of the given one, and removes all texts stored for tags which have the given tag as a proper prefix. (Does not apply if tmSetText is used to set a product text (short, long, features) of an article item or the short/long text of a basket folder or text item)
Note: For best interoperability with pCon.basket offline, texts should be set for language tags consisting solely of an ISO 639-1 (Alpha 2) language code. The last text stored that way will also be stored for the undetermined language and will be used by EAIWS as a fallback if no entry matching one of the effective product data languages is found.
However, texts stored for the undetermined language are preserved but otherwise ignored by pCon.basket offline. If an OBK/OBX file created by EAIWS containing such a text is loaded into pCon.basket offline, the text of the row gets changed (a text with an Alpha 2 language code is added or changed), and the file is saved and loaded again in EAIWS, EAIWS will see the new text for the specific language, but will continue to use the old fallback text.
Similarly, if an OBK/OBX file created by pCon.basket offline contains such texts in one or more languages (using Alpha 2 language codes), the file is loaded by EAIWS, and the effective list of product data languages used by EAIWS contains none of these languages, EAIWS will return none of the stored texts (unless operation tmGetTexts with parameter allLanguages set to true is used).