Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Entry location causes summary to be incorrect

Avatar

Level 4

I have a form which is updated by users all throughout the year.  They have been instructed to add payroll classifications in order of seniority.  If the form was completed and saved at the beginning of the year and then later in the year a new classification needs to be added, to be kept in order they add the new classification where it fits in seniority.  This might not be at the end of the form.  

 

When a new classification is added within the current classifications, this messes up the payroll classification summary on the last page of the form.  So in this example of a completed form, the user has entered 33 payroll classifications but only 6 show up on the summary because all but those 6 were not entered at the end.  I.E. # 3, Real Estate Specialist was apparently physically entered after #2, Principal in Charge instead of at the end of all the other classifications, causing it to be ignored in the payroll summary page.  

 

Is there any way new items can be entered any where in the form and still appear in the summary?  Is there some indexing that causes this error?  I have been unable to find anything that would be affecting this.

 

1 Accepted Solution

Avatar

Correct answer by
Level 4

Hello,

Try to use the below code, XPath may be not resolved and can cause an issue.

 

form1.Page1.subPayRollInfo.btnAdd::click - (JavaScript, client)
var subAdd = this.parent.index + 1;
this.parent.instanceManager.insertInstance(subAdd);
//this.subSummary.tblSummary.summaryRepeatingRow.instanceManager.insertInstance(subAdd);
xfa.resolveNode("form1.#subform[1].subSummary.tblSummary.summaryRepeatingRow").instanceManager.insertInstance(subAdd);

View solution in original post

1 Reply

Avatar

Correct answer by
Level 4

Hello,

Try to use the below code, XPath may be not resolved and can cause an issue.

 

form1.Page1.subPayRollInfo.btnAdd::click - (JavaScript, client)
var subAdd = this.parent.index + 1;
this.parent.instanceManager.insertInstance(subAdd);
//this.subSummary.tblSummary.summaryRepeatingRow.instanceManager.insertInstance(subAdd);
xfa.resolveNode("form1.#subform[1].subSummary.tblSummary.summaryRepeatingRow").instanceManager.insertInstance(subAdd);