Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Row Index Problem in Table

$
0
0

I am having a problem assigning data to fields in a table.

 

I have a table with three columns, one row, and I have a button to delete a row and a button to add a new row.  My problem is that when I add information to three other fields on my form and click the add button it won't assign that data to the fields in the table.  Here is a one of the lines of code that I am having a problem with.

 

--------- Begin Code -----------

 

var rowIndex = subGroupData.tblComments.rowGroupData.instanceManager.count - 1;

subGroupData.tblComments.rowGroupData[rowIndex].rowEmplName.rawValue = $.strFullName.rawValue;

 

--------- End Code -----------

 

The problem lies in the brackets.  When I put a 0 in the brackets it copies the data fine into the table.  When I use a variable that is assigned a number it doesn't work at all.  I have verified using a message box that I am getting the correct index number using my rowIndex variable.

 

Any thoughts?  I have tried even using parseInt() but that doesn't work either.

 

Thanks,

 

John


Viewing all articles
Browse latest Browse all 5571

Trending Articles



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