Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Designer
Viewing all articles
Browse latest Browse all 16286

Reading Data from a Table using loop

$
0
0

I have a dynamic table inside the PDF form. I want to loop through the table rows and read the cell contents. I successfully get the rows count in the table. But can't read the values from the cells. I have put editable TextField (txtName) control in each cell and trying to read its value.

 

screenshot is below.

 

table_loop_error.jpg

 

 

Code I am using is:

 

 form1.Page1.Subform1.btnReadTable::click - (JavaScript, client)

var rowCount = MyTable._Row1.count;
app.alert("Row Count: " + rowCount);
var i = 0;

for(i=0 ; i<rowCount ; i++)
{    //app.alert(MyTable.Row1[i].txtName.rawValue); // NOT WORKING       app.alert(MyTable.Row1.txtName.rawValue); // WORKING, But just giving the value for the first row.
}

 

 

Please tell me how can I get the value of each name in every row by looping.

 

Thanks in advance.

 

-

Abhinav


Viewing all articles
Browse latest Browse all 16286

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>