Entry location causes summary to be incorrect | Community
Skip to main content
ReluctantProgrammer
Level 4
November 9, 2022
Solved

Entry location causes summary to be incorrect

  • November 9, 2022
  • 1 reply
  • 577 views

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.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Vijay_Katoch

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);

1 reply

Vijay_Katoch
Community Advisor
Vijay_KatochCommunity AdvisorAccepted solution
Community Advisor
November 10, 2022

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);