ご回答いただきありがとうございます これ以上の選択を返さなければならない場合は、このためにドキュメントレベル機能を作成しました。だから私はそれが行われると信じています。
function ReturnSelection(fieldName){
// Check that Field is ComboBox or List Box
var fldField = this.getField(fieldName);
if(fldField != null && (fldField.type === "combobox" || fldField.type === "listbox")){
// combobox return the Selection by Indice
var i = fldField.currentValueIndices;
return fldField.getItemAt(i,false);
}else{
return "";
}
}
テストされていません。
と返すようにマルチ選択
よさそうだ
function ReturnSelection(fieldName){
// Check that Field is ComboBox or List Box
var fldField = this.getField(fieldName);
if(fldField != null && (fldField.type === "combobox" || fldField.type === "listbox")){
// combobox return the Selection by Indice
var i = fldField.currentValueIndices;
if(typeof i == "number"){
return fldField.getItemAt(i,false);
}else{ // Deal With Multi Selections
var arr = [];
for(var a = 0; a < i.lenght){
arr.push(fldField.getItemAt(i[a],false));
}
return arr;
}
}else{ // Not a Combo or list box
return "";
}
}
出典
2016-09-02 16:03:51
Jay