These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Placing ImageFields in Dynamic table

Eshwari
Registered: Jan 22 2009
Posts: 5

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

My Product Information:
LiveCycle Designer, Windows
Eshwari
Registered: Jan 22 2009
Posts: 5
I am able to resolve the above issue using below scripting,

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