-
1. Re: Event.Value population delay
George_Johnson Mar 23, 2011 11:33 AM (in response to alexcosby)Is this a calculate script, or something else? You should get the field values using the valueAsString field property, as opposed to the value property like you are, so that any leading zeroes are retained and so that you're doing string concatenation and not numeric addition. That other code isn't necessary.
-
2. Re: Event.Value population delay
George_Johnson Mar 23, 2011 11:36 AM (in response to alexcosby)I forgot to add, the problem is likely that the field calculation order is incorrect. To set it, go into forms editing mode and
then select "Forms > Edit Fields > Set Field Calculation Order".
-
3. Re: Event.Value population delay
alexcosby Mar 23, 2011 11:54 AM (in response to George_Johnson)I tried to use the appropriate valueAsString property, but was having problems getting it to work properly. However, setting that calculation order got it all worked out. A thousand thanks, sahib. May your camels always have healthy calves.
-A.
--Edit, found the problem with the valueAsString property I was having (leftover junk from declaring a var as an int). You're correct, that's a much more efficient way to handle the same issue. For any interested parties, here's how it turned out:
var A = this.getField("FIELD1").valueAsString
var B = this.getField("FIELD2").valueAsString;
var C = this.getField("FIELD3").valueAsString;
var fieldname = (A+B+C);
event.value = fieldname;


