Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
Hi all,
I have an infotable1 (list) in which there is a field called hours(rowcount is 33)
I have another infotable2 (Monthavg) of the same datashape as linfotable1 but the rowcount is 35
var rem = me.Monthavg();
for(j=0;j<count;j++) //Here count is row count of Infotable 2 (that is 35)
{
var rec ={ };
if(rem.rows
{
rec.days = rem.rows
}
if(rem.rows
{
rec.days = 0;
}
infotable2.AddRow(rec);
}
For this code snippet I'm getting this error
where 33 is the row count of infotable 2 (rem in the above code)
How do I copy values? What is the alternative here?
Solved! Go to Solution.
Try myinfotablename2.rows[35].fieldname = myInfotablename1.rows[33].hours
Try myinfotablename2.rows[35].fieldname = myInfotablename1.rows[33].hours