I cannot get result from query and input it in another field. There are so few examples on the net regarding this..
params["value"] = this.getValue();
$myquery = "select Code from Measures where Code='".$params["value"]."'";
$rs2 = DB::Query($myquery);
$result["meas"] = implode($data2);
var ctrlMeas = Runner.getControl(pageid, 'measID');
This doesn't work. If I change "ctrlMeas.setValue($result["meas"]);" into "ctrlMeas.setValue('10']);" = it is inputing 10 into measID control.
What am I doing wrong?