In Progress

I receive wrong output when i assign values to a collection

I'm trying to copy values to a collection in two methods :

  1. using iterate over xpath.
  2. 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++)

{

var Newrecord;

Newrecord=Me.newCollectionItem("Assessement.ICTPlans");

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.

Best Answer
photo

Dear Ahmad,

According to your question, it has been working at: how-can-i-copy-data-from-on-collection-to-another.

Regards

photo
0

Dear Ahmad,

According to your question, it has been working at: how-can-i-copy-data-from-on-collection-to-another.

Regards