The list is especially useful for Opening the viewer for option selection (/#glob/list). It allows to easily create the selection menu allowing the users to swith languages in the application runtime.
|sParams||(String) Additional parameters for defining the format of output data. Entries are in KeyVal format.|
"what:xx;" (mandatory) - Specifies the format of output data. For example "what:idlist;".
"what:idlist;" - Returns the list of identified national languages in the form of string (the separator is comma ',').
"what:idtitlearray;" - Returns the list of national language identifiers in the form of 2-dimensional array that is suitable for displaying as a selection menu by using the Opening the viewer for option selection (/#glob/list). Each row represents one national language. The column represents the identifier and localized language names.
In the sLang variable, there will be:
if (ev.CloseReason == "ok")
var sLang = ev.ReturnValue;
Pm.RtLang = sLang;
var aLangs = Pm.GetRtLangs("what:idtitlearray;");
var oCreator = Pm.CreateView(pMe.PmPanel, "/#glob/list", "autoselect:0;grid:1;title:Selection;", "target:_blank;modal:1;pos:view," + pMe.ViewX + "," + pMe.ViewY + ";");
oCreator.View.list = aLangs;
oCreator.View.onClose = onViewClose;