No, if the database fields are independent of the time fields, the connection
should not make a difference.
I'm afraid you probably missed a step then... The only thing I can advise
you is to try composing the formula to do the totalHours calculation,
yourself. Start out small by adding a rule on the startTime that sets the
value of totalHours to only number(substring(../my:endTime, 1, 2)); see step
16. This should return the amount of hours in the endTime. If totalHours is
being filled, continue on until the full formula is constructed. When you
have it working, you can add the conditions on the rule.
What the formula does is basically determine the total amount of minutes
after midnight for the startTime and endTime, subtract them and then divide
them by 3600 to return the total amount of hours elapsed between the two
times.
Let me know how things turn out or if you are experiencing more challenges.
---
S.Y.M. Wong-A-Ton
> Hi again,
>
[quoted text clipped - 41 lines]
> > > manner? Any suggestions where in that example I easily could have missed to
> > > reference it correctly?
Johan Nilsson - 06 Feb 2006 10:29 GMT
Hi,
Excellent suggestion, it was in the conditions set up for the rule that the
error occurred and I have now corrected it.
Thanks a million for your help =)
> No, if the database fields are independent of the time fields, the connection
> should not make a difference.
[quoted text clipped - 62 lines]
> > > > manner? Any suggestions where in that example I easily could have missed to
> > > > reference it correctly?
S.Y.M. Wong-A-Ton - 06 Feb 2006 10:37 GMT
Great! And you're very welcome!
---
S.Y.M. Wong-A-Ton
> Hi,
>
[quoted text clipped - 69 lines]
> > > > > manner? Any suggestions where in that example I easily could have missed to
> > > > > reference it correctly?