I have to place images in a dynamic table. This table has one row and within that row I have placed an ImageField. I am trying to increment the table row at the initialize event of the page where the table is placed. How to assign values to the imageField when the rows are incremented… The images are read from a byte stream….rendering images are not a problem, but placing these images within the growing table row is not working.
obj = xfa.datasets.data.Appraisal.Photos.nodes;
for(i=0;i < obj.length;i++){
form.pg_page1.sf_subForm1.tbl_Photos.Row1.instanceManager.addInstance(true);
}
Hope someone could answer my question….
Thanks
Esh
obj = xfa.datasets.data.Appraisal.Photos.nodes;
for(i=0;i < obj.length;i++){
var oRowInstance = Appraisal.pg_ImageTesting.sf_ImageTesting.tbl_Photos.resolveNode(”Row1[" + i + "]“);
oRowInstance.ImageField5.rawValue=obj.item(i).value.toString();
oRowInstance.instanceManager.addInstance(true);
}
But somehow an extra rows is created. It tried to eliminate it with xfa.Appraisal.recalculate(); But still one extra row is created. Kindly let me know how to resolve this. Appraisal is the name of the form and pg_ImageTesting is a page.
Thanks
Esh