I receive wrong output when i assign values to a collection
I'm trying to copy values to a collection in two methods :
- using iterate over xpath.
- using a for loop.
But time the iteration or the loop runs the all the records are assigned the value of the last record.for example :
if I'm trying to assign the value of the iteration variable "i" to a collection using this code:
for (var i=0; i<10 ; i++)
Newrecord.setXPath("Assessement.ICTPlans.EvaluationCriteria","x " + i);
ten records will be created and their value is "x 10"
I would appreciate if an online session could be arranged.