epa.treebox.set(this,
{sqlName :"TREEKONU",
cpsWhere :"_BRM=$[BIRIM_ID]&_KULLANIM=$[KULLANIM]&_BASVURU=%1360005%",
kidsQuery :"KONUALT-KONUALT_KONU=$[VAR-ID]",
kidsSqlName:"TREEKONUALT",
filter :{sqlName :"LEVELKONU",
cpsWhere :"_BRM=$[BIRIM_ID]&_KULLANIM=$[KULLANIM]&_BASVURU=%1360005%",
kidsQuery :"KONUALT-KONUALT_KONU=$[VAR-ID1]",
kidsSqlName :"LEVELKONUALT"},
onload:function(ids) {
ids[0] = this.entry.getFieldValue("KONU_ID");
ids[1] = this.entry.getFieldValue("KONUALT_ID");
return true;
},
onselect:function(ids,texts) {
this.entry.assignFieldValue("KONU_ID",["",ids[0]]);
this.entry.assignFieldValue("KONUALT_ID",["",ids[1]],true);
return true;
}
});