Expand my Community achievements bar.

ES2 resetData Issue

Avatar

Level 2

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

6 Replies

Avatar

Former Community Member

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

Avatar

Former Community Member

Looks like you're missing 'form' right after xfa. Should read:

xfa.host.resetData("xfa.form.form1.WorkSheetPage4.EngDailyRateTable");

Kyle

Avatar

Level 2

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?

Avatar

Level 2

Thanks Kyle but adding 'form' to the syntax did not resolve the issue.

Avatar

Level 2

The form should be in your inbox.

Thanks