?
Solved

Infopath Repeating Section

Posted on 2009-04-06
1
Medium Priority
?
906 Views
Last Modified: 2012-05-06
I am working on a Infopath form with a repeating section that has four fields.

txtPreviousOnHand
txtRecived
txtSent
txtOnHand


I have it set so that "txtOnHand" is calulated by txtRecieved - txtSend.  So if we Recived 10 boxes and sent 8 boxes, we should have 2 boxes on hand.  txtPreviousOnHand has an Function value of "number(preceding-sibling::my:txtOnHand)", so the next repeating row would start with a txtPrevioiusOnHand of 2.

The problem comes into play when we create an additional row in the repeating section.  The txtPreviousOnHand field is suppose to pull the txtOnHand value from the PREVIOUS row, and it does work about 75% of the time.  FOr some reason the other 25% of the time, I get a "NaN" error.  This error seems to be random.  It can happen on the second repeating row or the seventh.

Any help would be GREAT!
0
Comment
Question by:tyty4u2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
tyty4u2 earned 0 total points
ID: 24180450
I found the solution by using the following xpath.

../preceding-sibling::my:group2[1]/my:field1
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Before you can digitally sign infopath forms, you must have a digital certificate. Microsoft Certificate Services will need to be enabled on a Windows Server 2008 to facilitate the creation and verification of the digital certifciates on the web ser…
We are witnesses that everyone is saying that our children shouldn't "play" with a technology because it is dangerous. This article is going to prove that they are wrong.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question