Answered
Can anyone tell me why this will work:
var NewPos = 250;
xfa.form.CMMSurvey.Page1.ModelType.ModelMarker.x = (NewPos + "pt");
but this will not (the x coordinate does not change):
var NewPos = xfa.form.CMMSurvey.Page1.MarkerValue.rawValue;
xfa.form.CMMSurvey.Page1.ModelType.ModelMarker.x = (NewPos + "pt");
The MarkerValue is a numeric field with a value of 280. This script is in the calculate event of the form. The NewPos variable in the second script does not seem to be recognized as a number. The ModelMarker object is a circle in a subform. The initial value of x is 36.
Thanks,
George Kaiser