Below is a line of code I tried to use to reset the calculations in a table. It resets the data in the table but also resets everything else on the form.
xfa.host.resetData("xfa.form1.WorkSheetPage4.EngDailyRateTable");
Is there something wrong with the syntax or is there an issue related to ES2. I have used this in version 8 without a problem.
Thanks in advance for any assistance.
Paul
Views
Replies
Total Likes
Make sure that you are getting the right object by deleting the reference to the object, place the cursor where you want the object reference to appear, then hold down the ctrl key and click on the field (in the drawing area) that you want to reference. The correct expression will appear where the cursor was located.
paul
Views
Replies
Total Likes
Looks like you're missing 'form' right after xfa. Should read:
xfa.host.resetData("xfa.form.form1.WorkSheetPage4.EngDailyRateTable");
Kyle
Views
Replies
Total Likes
Thanks for the response Paul.
I did use the control key to select the table as you instructed. The reset still resets the other data on the form.
This is how the reset looks after using control-click:
xfa.host.resetData("xfa.form1.WorkSheetPage4.EngDailyRateTable");
Can I e-mail you the form to review?
Views
Replies
Total Likes
Paul
Views
Replies
Total Likes
Thanks Kyle but adding 'form' to the syntax did not resolve the issue.
Views
Replies
Total Likes
The form should be in your inbox.
Thanks
Views
Replies
Total Likes
Views
Likes
Replies