This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Jan 28, 2012, 11:04 AM
46 Posts

Filling EditBox from view

  • Category: Server Side JavaScript
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 0
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:
 
 
 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal