Hi, I created a computed field in which I have code like this (gives random values from column):
var range = @DbColumn("","view",1);
function rand(range_from,range_to)
{
var r = Math.random();
r = r * (range_to-range_from) + range_from;
return Math.round(r);
}
var result = range[rand(0,range.length-1)];
return result
Needs to fill in the Edit Box values located in the second column.
JS - gives me the result of a field ID.
I would like to the value of the ID field:
ID filled the field EditBox1
info filled the field EditBox2
data filled the field EditBox3
My view looks like this: