sParams | (String) Additional parameters for specifying the format of output data. Entries are in the 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 a text string (the separator is comma ',').
"what:idtitlearray;" - Returns the list of national language identifiers as 2-dimensional array that is suitable for displaying as a selection menu using the Opening the viewer for option selection (/#glob/list).
Each row represents one national language. The column represents the identifier and localized language name. |
---|
function onViewClose(ev)
{
if (ev.CloseReason == "ok")
{
var sLang = ev.ReturnValue;
if (Pm.IsValid(sLang))
{
Pm.RtLang = sLang;
}
}
}
var aLangs = Pm.GetRtLangs("what:idtitlearray;");
var oCreator = Pm.CreateView(null, "/#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;
oCreator.Open();