Hi guys.
I cannot get result from query and input it in another field. There are so few examples on the net regarding this..
Client before:
params["value"] = this.getValue();
Server:
$myquery = "select Code from Measures where Code='".$params["value"]."'";
$rs2 = DB::Query($myquery);
$data2=$rs2->fetchAssoc();
$result["meas"] = implode($data2);
Client after:
var ctrlMeas = Runner.getControl(pageid, 'measID');
ctrlMeas.setValue($result["meas"]);
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?