Date Diff Calculation VBScript - Help Repeating Section

S

Scott

I used a Date Difference Calculation function and sub routine using three
fields in a repeating section, two date pickers and one text, same as
outlined in other posts which works fine. This is the link to the procedure.
http://enterprise-solutions.swits.net/infopath/datediff-vbscript-infopath.htm

I run into problems when I repeat the section in that I can select the
dates I want in date picker fields, but the Date Difference field doesn't
calculate the difference. It only works the first time, not for subsequent
sections.

How can I get this to work in a repeating section so I can enter in all new
date information every time I repeat the section. This is for call center
tracking and each issue has potential different start and end date and I need
to track how long each call is taking.

Thanks for help
 
S

Scott

That Suresh. I read that article and it was created using the .Net Framework.
My form is using VB and Windows Scripting, so I can't use this example.

Any thoughts? Should I change the scripting for my form?
 
S

Scott

Thanks. I took that date time diff script and tried to use it in a repeating
section, but it didn't calculate. Its very frustrating because I have tried
numerous ways, but it doesn't appear possible to have a Date Difference
function in a repeating section, so that each time the section repeats it
will calculate the new Date Difference.
 
S

S.Y.M. Wong-A-Ton

Scott,
I'm unable to take a closer look at using the code with a repeating section
right now since I'm out of the office and don't have InfoPath available, but
if you can hang on for another 2-3 weeks, I can look into your problem.
 
S

S.Y.M. Wong-A-Ton

Hi Scott,

Thank you for your patience. I substituted the repeating table for a
repeating section in a form and it worked. The only thing I can think of why
it isn't working on your side is that you probably removed the time fields
and did not remove the corresponding checks on these fields being empty from
the functions that perform the calculations?
 
S

Scott

SYM,

Your process works fine on first section, but when the section repeats it
stops working. Any thoughts? Were you able to get this process working on a
repeating section, so that is calculate differently for each new section
added?

Scott
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top